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