Add victor-mono

This commit is contained in:
EEva (JPotier) 2019-07-13 11:05:12 +03:00
parent 8957f3066a
commit 1dd6155b7d
2 changed files with 27 additions and 0 deletions

View File

@ -29,6 +29,7 @@ self: super:
scientifica-font = super.callPackage ./scientifica-font {};
curie-font = super.callPackage ./curie-font {};
victor-mono = super.callPackage ./victor-mono {};
ripmime = super.ripmime.override {
stdenv = super.overrideCC super.stdenv super.gcc6;

View File

@ -0,0 +1,26 @@
{ lib, fetchFromGitHub }:
let
_name = "victor-mono";
version = "1.2.1";
in fetchFromGitHub {
name = "${_name}-${version}";
owner = "rubjo";
repo = "victor-mono";
rev = "v${version}";
postFetch = ''
tar xf $downloadedFile --strip=1
unzip public/VictorMonoAll.zip TTF/\*
mkdir -p $out/share/fonts/truetype/${_name}
cp TTF/*.ttf $out/share/fonts/truetype/${_name}
'';
sha256 = "0gisjcywmn3kjgwfmzcv8ibxqd126s93id2w0zjly0c7m3ckamh8";
meta = with lib; {
homepage = https://rubjo.github.io/victor-mono;
description = "A free programming font with cursive italics and ligatures";
license = with licenses; [ mit ] ;
maintainers = with maintainers; [ jpotier ];
platforms = platforms.all;
};
}