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/national-park | |
parent | ea27fb07efe68cb426593a4d7c2efe469621021d (diff) |
78 fonts: Fix build after #173430 changed postFetch semantics
Diffstat (limited to 'pkgs/data/fonts/national-park')
-rw-r--r-- | pkgs/data/fonts/national-park/default.nix | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/pkgs/data/fonts/national-park/default.nix b/pkgs/data/fonts/national-park/default.nix index 8ed251de53d51..cfa36870ed4bc 100644 --- a/pkgs/data/fonts/national-park/default.nix +++ b/pkgs/data/fonts/national-park/default.nix @@ -1,17 +1,13 @@ +# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' { lib, fetchzip }: let pname = "national-park-typeface"; version = "206464"; -in fetchzip { +in (fetchzip { name = "${pname}-${version}"; url = "https://files.cargocollective.com/c${version}/NationalPark.zip"; - postFetch = '' - mkdir -p $out/share/fonts - unzip -j $downloadedFile National\*.otf -d $out/share/fonts/opentype/ - ''; - sha256 = "044gh4xcasp8i9ny6z4nmns1am2pk5krc4ann2afq35v9bnl2q5d"; meta = with lib; { @@ -21,4 +17,9 @@ in fetchzip { license = licenses.ofl; maintainers = with maintainers; [ dtzWill ]; }; -} +}).overrideAttrs (_: { + postFetch = '' + mkdir -p $out/share/fonts + unzip -j $downloadedFile National\*.otf -d $out/share/fonts/opentype/ + ''; +}) |