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/quattrocento | |
parent | ea27fb07efe68cb426593a4d7c2efe469621021d (diff) |
78 fonts: Fix build after #173430 changed postFetch semantics
Diffstat (limited to 'pkgs/data/fonts/quattrocento')
-rw-r--r-- | pkgs/data/fonts/quattrocento/default.nix | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/data/fonts/quattrocento/default.nix b/pkgs/data/fonts/quattrocento/default.nix index aa23175a04d48..12f146c0e8fcd 100644 --- a/pkgs/data/fonts/quattrocento/default.nix +++ b/pkgs/data/fonts/quattrocento/default.nix @@ -1,18 +1,14 @@ +# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' { lib, fetchzip }: let version = "1.1"; -in fetchzip rec { name = "quattrocento-${version}"; +in (fetchzip rec { + inherit name; url = "https://web.archive.org/web/20170707001804/http://www.impallari.com/media/releases/quattrocento-v${version}.zip"; - postFetch = '' - mkdir -p $out/share/{fonts,doc} - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype - unzip -j $downloadedFile \*FONTLOG.txt -d $out/share/doc/${name} - ''; - sha256 = "0f8l19y61y20sszn8ni8h9kgl0zy1gyzychg22z5k93ip4h7kfd0"; meta = with lib; { @@ -22,4 +18,10 @@ in fetchzip rec { platforms = platforms.all; maintainers = [maintainers.rycee]; }; -} +}).overrideAttrs (_: { + postFetch = '' + mkdir -p $out/share/{fonts,doc} + unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype + unzip -j $downloadedFile \*FONTLOG.txt -d $out/share/doc/${name} + ''; +}) |