2017-07-06 08:44:43 +02:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
2017-07-08 10:18:53 +02:00
|
|
|
let
|
|
|
|
pname = "ttf-envy-code-r";
|
2017-07-06 08:44:43 +02:00
|
|
|
version = "PR7";
|
2017-07-08 10:18:53 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-0.${version}";
|
2017-07-06 08:44:43 +02:00
|
|
|
|
|
|
|
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
|
2017-07-08 10:18:53 +02:00
|
|
|
install -Dm 644 Read\ Me.txt "$out/share/doc/${pname}/readme.txt"
|
2017-07-06 08:44:43 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://damieng.com/blog/tag/envy-code-r;
|
|
|
|
description = "Free scalable coding font by DamienG";
|
|
|
|
license = licenses.unfree;
|
2017-07-08 10:18:53 +02:00
|
|
|
platforms = platforms.unix;
|
2017-07-06 08:44:43 +02:00
|
|
|
maintainers = [ maintainers.lyt ];
|
|
|
|
};
|
|
|
|
}
|