depot/third_party/nixpkgs/pkgs/data/fonts/theano/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

28 lines
883 B
Nix

# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
{ lib, fetchzip }:
let
version = "2.0";
name = "theano-${version}";
in (fetchzip rec {
inherit name;
url = "https://github.com/akryukov/theano/releases/download/v${version}/theano-${version}.otf.zip";
sha256 = "1my1symb7k80ys33iphsxvmf6432wx6vjdnxhzhkgrang1rhx1h8";
meta = with 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;
};
}).overrideAttrs (_: {
postFetch = ''
mkdir -p $out/share/fonts/opentype
mkdir -p $out/share/doc/${name}
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
unzip -j $downloadedFile \*.txt -d "$out/share/doc/${name}"
'';
})