2019-05-13 03:55:32 +02:00
|
|
|
{ lib, fetchzip }:
|
2011-05-28 17:59:45 +02:00
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
let
|
2015-06-12 00:17:53 +02:00
|
|
|
version = "2.0";
|
2017-08-10 21:43:49 +02:00
|
|
|
in fetchzip rec {
|
|
|
|
name = "theano-${version}";
|
2015-06-12 00:17:53 +02:00
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
url = "https://github.com/akryukov/theano/releases/download/v${version}/theano-${version}.otf.zip";
|
2011-05-28 17:59:45 +02:00
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
postFetch = ''
|
2015-06-12 00:17:53 +02:00
|
|
|
mkdir -p $out/share/fonts/opentype
|
|
|
|
mkdir -p $out/share/doc/${name}
|
2017-08-10 21:43:49 +02:00
|
|
|
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
|
|
|
unzip -j $downloadedFile \*.txt -d "$out/share/doc/${name}"
|
2015-06-12 00:17:53 +02:00
|
|
|
'';
|
2011-05-28 17:59:45 +02:00
|
|
|
|
2017-08-10 21:43:49 +02:00
|
|
|
sha256 = "1my1symb7k80ys33iphsxvmf6432wx6vjdnxhzhkgrang1rhx1h8";
|
|
|
|
|
2019-05-13 03:55:32 +02:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/akryukov/theano";
|
2015-06-12 00:17:53 +02:00
|
|
|
description = "An old-style font designed from historic samples";
|
|
|
|
maintainers = with maintainers; [ raskin rycee ];
|
|
|
|
license = licenses.ofl;
|
|
|
|
platforms = platforms.all;
|
2011-05-28 17:59:45 +02:00
|
|
|
};
|
2015-06-12 00:17:53 +02:00
|
|
|
}
|