2015-06-11 23:17:53 +01:00
|
|
|
{ stdenv, fetchzip }:
|
2011-05-28 16:59:45 +01:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
let
|
2015-06-11 23:17:53 +01:00
|
|
|
version = "2.0";
|
2017-08-10 20:43:49 +01:00
|
|
|
in fetchzip rec {
|
|
|
|
name = "theano-${version}";
|
2015-06-11 23:17:53 +01:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
url = "https://github.com/akryukov/theano/releases/download/v${version}/theano-${version}.otf.zip";
|
2011-05-28 16:59:45 +01:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
postFetch = ''
|
2015-06-11 23:17:53 +01:00
|
|
|
mkdir -p $out/share/fonts/opentype
|
|
|
|
mkdir -p $out/share/doc/${name}
|
2017-08-10 20:43:49 +01:00
|
|
|
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
|
|
|
unzip -j $downloadedFile \*.txt -d "$out/share/doc/${name}"
|
2015-06-11 23:17:53 +01:00
|
|
|
'';
|
2011-05-28 16:59:45 +01:00
|
|
|
|
2017-08-10 20:43:49 +01:00
|
|
|
sha256 = "1my1symb7k80ys33iphsxvmf6432wx6vjdnxhzhkgrang1rhx1h8";
|
|
|
|
|
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
|
|
|
}
|