From 208edec09a9175ce6d4e79a4cab741b8ed502e8f Mon Sep 17 00:00:00 2001 From: wheatdog Date: Thu, 6 Jul 2017 14:44:43 +0800 Subject: [PATCH] ttf-envy-code-r: init at preview7 --- lib/maintainers.nix | 1 + pkgs/data/fonts/ttf-envy-code-r/default.nix | 28 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 31 insertions(+) create mode 100644 pkgs/data/fonts/ttf-envy-code-r/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 69bb69c8e201..cf42543a48e5 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -315,6 +315,7 @@ luispedro = "Luis Pedro Coelho "; lukego = "Luke Gorrie "; lw = "Sergey Sofeychuk "; + lyt = "Tim Liou "; m3tti = "Mathaeus Sander "; ma27 = "Maximilian Bosch "; madjar = "Georges Dubus "; diff --git a/pkgs/data/fonts/ttf-envy-code-r/default.nix b/pkgs/data/fonts/ttf-envy-code-r/default.nix new file mode 100644 index 000000000000..6b178de137d8 --- /dev/null +++ b/pkgs/data/fonts/ttf-envy-code-r/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl, unzip }: + +stdenv.mkDerivation rec { + name = "ttf-envy-code-r"; + version = "PR7"; + + src = fetchurl { + url = "http://download.damieng.com/fonts/original/EnvyCodeR-${version}.zip"; + sha256 = "9f7e9703aaf21110b4e1a54d954d57d4092727546348598a5a8e8101e4597aff"; + }; + + buildInputs = [unzip]; + + installPhase = '' + for f in *.ttf; do + install -Dm 644 "$f" "$out/share/fonts/truetype/$f" + done + install -Dm 644 Read\ Me.txt "$out/share/doc/readme.txt" + ''; + + meta = with stdenv.lib; { + homepage = http://damieng.com/blog/tag/envy-code-r; + description = "Free scalable coding font by DamienG"; + license = licenses.unfree; + platforms = platforms.linux; + maintainers = [ maintainers.lyt ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 316076f3fe86..45d5dab326cd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13096,6 +13096,8 @@ with pkgs; ttf_bitstream_vera = callPackage ../data/fonts/ttf-bitstream-vera { }; + ttf-envy-code-r = callPackage ../data/fonts/ttf-envy-code-r {}; + tzdata = callPackage ../data/misc/tzdata { }; ubuntu_font_family = callPackage ../data/fonts/ubuntu-font-family { };