diff options
author | Scott Worley <scottworley@scottworley.com> | 2022-09-29 00:52:55 -0700 |
---|---|---|
committer | Artturin <Artturin@artturin.com> | 2023-01-17 01:03:11 +0200 |
commit | af89d3a2be6f70edb187dd817377d6c4360134fa (patch) | |
tree | 432c3ff8a5c9e40ac5fef7d6387e12db60310cc9 /pkgs/data/fonts/theano | |
parent | ea27fb07efe68cb426593a4d7c2efe469621021d (diff) |
78 fonts: Fix build after #173430 changed postFetch semantics
Diffstat (limited to 'pkgs/data/fonts/theano')
-rw-r--r-- | pkgs/data/fonts/theano/default.nix | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/pkgs/data/fonts/theano/default.nix b/pkgs/data/fonts/theano/default.nix index 360d32f3e625c..69107f4a8e577 100644 --- a/pkgs/data/fonts/theano/default.nix +++ b/pkgs/data/fonts/theano/default.nix @@ -1,19 +1,14 @@ +# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' { lib, fetchzip }: let version = "2.0"; -in fetchzip rec { name = "theano-${version}"; +in (fetchzip rec { + inherit name; url = "https://github.com/akryukov/theano/releases/download/v${version}/theano-${version}.otf.zip"; - 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}" - ''; - sha256 = "1my1symb7k80ys33iphsxvmf6432wx6vjdnxhzhkgrang1rhx1h8"; meta = with lib; { @@ -23,4 +18,11 @@ in fetchzip rec { 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}" + ''; +}) |