2019-05-13 02:55:32 +01:00
|
|
|
{ lib, 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";
|
|
|
|
|
2019-05-13 02:55:32 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/akryukov/theano";
|
2015-06-11 23:17:53 +01:00
|
|
|
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
|
|
|
}
|