data/fonts: simpler cleanups
This commit is contained in:
@@ -1,24 +1,21 @@
|
||||
{ stdenv, fetchzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "theano-${version}";
|
||||
let
|
||||
version = "2.0";
|
||||
in fetchzip rec {
|
||||
name = "theano-${version}";
|
||||
|
||||
src = fetchzip {
|
||||
stripRoot = false;
|
||||
url = "https://github.com/akryukov/theano/releases/download/v${version}/theano-${version}.otf.zip";
|
||||
sha256 = "1z3c63rcp4vfjyfv8xwc3br10ydwjyac3ipbl09y01s7qhfz02gp";
|
||||
};
|
||||
url = "https://github.com/akryukov/theano/releases/download/v${version}/theano-${version}.otf.zip";
|
||||
|
||||
phases = [ "unpackPhase" "installPhase" ];
|
||||
|
||||
installPhase = ''
|
||||
postFetch = ''
|
||||
mkdir -p $out/share/fonts/opentype
|
||||
mkdir -p $out/share/doc/${name}
|
||||
find . -name "*.otf" -exec cp -v {} $out/share/fonts/opentype \;
|
||||
find . -name "*.txt" -exec cp -v {} $out/share/doc/${name} \;
|
||||
unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype
|
||||
unzip -j $downloadedFile \*.txt -d "$out/share/doc/${name}"
|
||||
'';
|
||||
|
||||
sha256 = "1my1symb7k80ys33iphsxvmf6432wx6vjdnxhzhkgrang1rhx1h8";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/akryukov/theano;
|
||||
description = "An old-style font designed from historic samples";
|
||||
|
||||
Reference in New Issue
Block a user