about summary refs log tree commit diff
path: root/nixpkgs/pkgs/data/fonts/scientifica/default.nix
blob: d8eda3e92326403e5a29f1b13cddddc066ae7031 (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
30
31
32
{ lib, fetchurl }:

let
  version = "2.2";
in fetchurl rec {
  name = "scientifica-${version}";

  url = "https://github.com/NerdyPepper/scientifica/releases/download/v${version}/scientifica.tar";

  downloadToTemp = true;

  recursiveHash = true;

  sha256 = "sha256-mkZnuW+CB20t6MEpEeQR1CWkIUtqgVwrKN4sezQRaB4=";

  postFetch = ''
    tar xf $downloadedFile
    mkdir -p $out/share/fonts/truetype
    mkdir -p $out/share/fonts/misc
    install scientifica/ttf/*.ttf $out/share/fonts/truetype
    install scientifica/otb/*.otb $out/share/fonts/misc
    install scientifica/bdf/*.bdf $out/share/fonts/misc
  '';

  meta = with lib; {
    description = "Tall and condensed bitmap font for geeks";
    homepage = "https://github.com/NerdyPepper/scientifica";
    license = licenses.ofl;
    platforms = platforms.all;
    maintainers = with maintainers; [ fortuneteller2k ];
  };
}