about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/fonts/profont/default.nix
blob: c28c9283a9bcd097b6269599438ff9c28f6409b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, fetchzip }:

fetchzip rec {
  name = "profont";

  url = "http://web.archive.org/web/20160707013914/http://tobiasjung.name/downloadfile.php?file=profont-x11.zip";

  postFetch = ''
    unzip -j $downloadedFile

    mkdir -p $out/share/doc/$name $out/share/fonts/misc

    cp LICENSE $out/share/doc/$name/LICENSE

    for f in *.pcf; do
      gzip -c "$f" > $out/share/fonts/misc/"$f".gz
    done
  '';

  sha256 = "1calqmvrfv068w61f614la8mg8szas6m5i9s0lsmwjhb4qwjyxbw";

  meta = with lib; {
    homepage = http://tobiasjung.name;
    description = "A monospaced font created to be a most readable font for programming";
    maintainers = with lib.maintainers; [ myrl ];
    license = licenses.mit;
    platforms = platforms.all;
  };
}