nixpkgs-suyu/pkgs/data/fonts/profont/default.nix

30 lines
740 B
Nix
Raw Normal View History

{ lib, fetchzip }:
2016-04-13 16:42:06 +02:00
2019-08-13 23:52:01 +02:00
fetchzip {
2016-04-13 16:42:06 +02:00
name = "profont";
url = "http://web.archive.org/web/20160707013914/http://tobiasjung.name/downloadfile.php?file=profont-x11.zip";
2017-08-10 21:43:49 +02:00
postFetch = ''
unzip -j $downloadedFile
2016-04-13 16:42:06 +02:00
2017-08-10 21:43:49 +02:00
mkdir -p $out/share/doc/$name $out/share/fonts/misc
2016-04-13 16:42:06 +02:00
2017-08-10 21:43:49 +02:00
cp LICENSE $out/share/doc/$name/LICENSE
2016-04-13 16:42:06 +02:00
2017-08-10 21:43:49 +02:00
for f in *.pcf; do
gzip -c "$f" > $out/share/fonts/misc/"$f".gz
done
'';
2016-04-13 16:42:06 +02:00
2017-08-10 21:43:49 +02:00
sha256 = "1calqmvrfv068w61f614la8mg8szas6m5i9s0lsmwjhb4qwjyxbw";
2016-04-13 16:42:06 +02:00
meta = with lib; {
2016-04-13 16:42:06 +02:00
homepage = http://tobiasjung.name;
description = "A monospaced font created to be a most readable font for programming";
maintainers = with lib.maintainers; [ myrl ];
2016-04-13 16:42:06 +02:00
license = licenses.mit;
platforms = platforms.all;
};
}