27 lines
745 B
Nix
27 lines
745 B
Nix
|
{ 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;
|
||
|
};
|
||
|
}
|