summary refs log tree commit diff
path: root/pkgs/data/fonts/theano/default.nix
blob: c385c3d40a929fd6c98436b4bd3888916b65509f (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
{ stdenv, fetchzip }:

stdenv.mkDerivation rec {
  name = "theano-${version}";
  version = "2.0";

  src = fetchzip {
    stripRoot = false;
    url = "https://github.com/akryukov/theano/releases/download/v${version}/theano-${version}.otf.zip";
    sha256 = "1z3c63rcp4vfjyfv8xwc3br10ydwjyac3ipbl09y01s7qhfz02gp";
  };

  phases = [ "unpackPhase" "installPhase" ];

  installPhase = ''
    mkdir -p $out/share/fonts/opentype
    mkdir -p $out/share/doc/${name}
    find . -name "*.otf" -exec cp -v {} $out/share/fonts/opentype \;
    find . -name "*.txt" -exec cp -v {} $out/share/doc/${name} \;
  '';

  meta = with stdenv.lib; {
    homepage = https://github.com/akryukov/theano;
    description = "An old-style font designed from historic samples";
    maintainers = with maintainers; [ raskin rycee ];
    license = licenses.ofl;
    platforms = platforms.all;
  };
}