2015-06-11 23:17:53 +01:00
|
|
|
{ stdenv, fetchzip }:
|
2011-05-28 16:59:45 +01:00
|
|
|
|
2015-06-11 23:17:53 +01:00
|
|
|
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";
|
2011-05-28 16:59:45 +01:00
|
|
|
};
|
|
|
|
|
2015-06-11 23:17:53 +01:00
|
|
|
phases = [ "unpackPhase" "installPhase" ];
|
2011-05-28 16:59:45 +01:00
|
|
|
|
2015-06-11 23:17:53 +01:00
|
|
|
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} \;
|
|
|
|
'';
|
2011-05-28 16:59:45 +01:00
|
|
|
|
2015-06-11 23:17:53 +01:00
|
|
|
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;
|
2011-05-28 16:59:45 +01:00
|
|
|
};
|
2015-06-11 23:17:53 +01:00
|
|
|
}
|