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/cozette | |
parent | ea27fb07efe68cb426593a4d7c2efe469621021d (diff) |
78 fonts: Fix build after #173430 changed postFetch semantics
Diffstat (limited to 'pkgs/data/fonts/cozette')
-rw-r--r-- | pkgs/data/fonts/cozette/default.nix | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/pkgs/data/fonts/cozette/default.nix b/pkgs/data/fonts/cozette/default.nix index 1b0b033836645..6402cf5be5946 100644 --- a/pkgs/data/fonts/cozette/default.nix +++ b/pkgs/data/fonts/cozette/default.nix @@ -1,23 +1,16 @@ +# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' { lib, fetchzip }: let version = "1.13.0"; in -fetchzip rec { +(fetchzip rec { name = "Cozette-${version}"; url = "https://github.com/slavfox/Cozette/releases/download/v.${version}/CozetteFonts.zip"; sha256 = "sha256-xp3BCYfNUxCNewg4FfzmJnKp0PARvvnViMVwT25nWdM="; - postFetch = '' - mkdir -p $out/share/fonts - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype - unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype - unzip -j $downloadedFile \*.bdf -d $out/share/fonts/misc - unzip -j $downloadedFile \*.otb -d $out/share/fonts/misc - ''; - meta = with lib; { description = "A bitmap programming font optimized for coziness"; homepage = "https://github.com/slavfox/cozette"; @@ -25,4 +18,12 @@ fetchzip rec { platforms = platforms.all; maintainers = with maintainers; [ brettlyons marsam ]; }; -} +}).overrideAttrs (_: { + postFetch = '' + mkdir -p $out/share/fonts + unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype + unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype + unzip -j $downloadedFile \*.bdf -d $out/share/fonts/misc + unzip -j $downloadedFile \*.otb -d $out/share/fonts/misc + ''; +}) |