nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenvNoCC, fetchzip }:
2
3stdenvNoCC.mkDerivation rec {
4 pname = "theano";
5 version = "2.0";
6
7 src = fetchzip {
8 url = "https://github.com/akryukov/theano/releases/download/v${version}/theano-${version}.otf.zip";
9 stripRoot = false;
10 hash = "sha256-9wnwHcRHB+AToOvGwZSXvHkQ8hqMd7Sdl26Ty/IwbPw=";
11 };
12
13 installPhase = ''
14 runHook preInstall
15
16 mkdir -p $out/share/fonts/opentype
17 mkdir -p $out/share/doc/${pname}-${version}
18 cp *.otf $out/share/fonts/opentype
19 cp *.txt $out/share/doc/${pname}-${version}
20
21 runHook postInstall
22 '';
23
24 meta = with lib; {
25 homepage = "https://github.com/akryukov/theano";
26 description = "An old-style font designed from historic samples";
27 maintainers = with maintainers; [ raskin rycee ];
28 license = licenses.ofl;
29 platforms = platforms.all;
30 };
31}