1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00
nixpkgs/pkgs/data/fonts/theano/default.nix
Robert Helgesson d7f36310d0 Remove use of builderDefsPackage in font packages.
With this change they now use `stdenv.mkDerivation` instead. Also some
minor cleanups such as URL fixes, adding version numbers, adding
descriptions, etc.
2015-06-12 19:43:18 +02:00

30 lines
872 B
Nix

{ 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;
};
}