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/inter | |
parent | ea27fb07efe68cb426593a4d7c2efe469621021d (diff) |
78 fonts: Fix build after #173430 changed postFetch semantics
Diffstat (limited to 'pkgs/data/fonts/inter')
-rw-r--r-- | pkgs/data/fonts/inter/default.nix | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/pkgs/data/fonts/inter/default.nix b/pkgs/data/fonts/inter/default.nix index ca01acd0c54b9..16adc93a9eec2 100644 --- a/pkgs/data/fonts/inter/default.nix +++ b/pkgs/data/fonts/inter/default.nix @@ -1,17 +1,13 @@ +# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' { lib, fetchzip }: let version = "3.19"; -in fetchzip { +in (fetchzip { name = "inter-${version}"; url = "https://github.com/rsms/inter/releases/download/v${version}/Inter-${version}.zip"; - postFetch = '' - mkdir -p $out/share/fonts/opentype - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype - ''; - sha256 = "sha256-8p15thg3xyvCA/8dH2jGQoc54nzESFDyv5m47FgWrSI="; meta = with lib; { @@ -21,5 +17,10 @@ in fetchzip { platforms = platforms.all; maintainers = with maintainers; [ demize dtzWill ]; }; -} +}).overrideAttrs (_: { + postFetch = '' + mkdir -p $out/share/fonts/opentype + unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype + ''; +}) |