diff --git a/pkgs/default.nix b/pkgs/default.nix index ff09ec6..e22bd00 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -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; diff --git a/pkgs/victor-mono/default.nix b/pkgs/victor-mono/default.nix new file mode 100644 index 0000000..b81b696 --- /dev/null +++ b/pkgs/victor-mono/default.nix @@ -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; + }; +}