2017-08-10 21:43:49 +02:00
|
|
|
{ stdenv, fetchzip }:
|
|
|
|
|
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-08-10 21:43:49 +02:00
|
|
|
in fetchzip {
|
2017-07-08 10:18:53 +02:00
|
|
|
name = "${pname}-0.${version}";
|
2017-07-06 08:44:43 +02:00
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
url = "http://download.damieng.com/fonts/original/EnvyCodeR-${version}.zip";
|
2017-07-06 08:44:43 +02:00
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
postFetch = ''
|
|
|
|
mkdir -p $out/share/{doc,fonts}
|
|
|
|
unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype
|
|
|
|
unzip -j $downloadedFile \*.txt -d "$out/share/doc/${pname}"
|
2017-07-06 08:44:43 +02:00
|
|
|
'';
|
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
sha256 = "0x0r07nax68cmz7490x2crzzgdg4j8fg63wppcmjqm0230bggq2z";
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|