diff options
Diffstat (limited to 'pkgs/data/fonts/sudo/default.nix')
-rw-r--r-- | pkgs/data/fonts/sudo/default.nix | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/data/fonts/sudo/default.nix b/pkgs/data/fonts/sudo/default.nix index e1b43e39c60..c4af97c7cc2 100644 --- a/pkgs/data/fonts/sudo/default.nix +++ b/pkgs/data/fonts/sudo/default.nix @@ -1,16 +1,13 @@ +# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' { lib, fetchzip }: let version = "0.64"; -in fetchzip { +in (fetchzip { name = "sudo-font-${version}"; url = "https://github.com/jenskutilek/sudo-font/releases/download/v${version}/sudo.zip"; sha256 = "sha256-ewLTeIVY76eq5mHTnjIsJ5Q2CMuBqXJzxvjZTONPsr8="; - postFetch = '' - mkdir -p $out/share/fonts/ - unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype/ - ''; meta = with lib; { description = "Font for programmers and command line users"; homepage = "https://www.kutilek.de/sudo-font/"; @@ -19,4 +16,9 @@ in fetchzip { maintainers = with maintainers; [ dtzWill ]; platforms = platforms.all; }; -} +}).overrideAttrs (_: { + postFetch = '' + mkdir -p $out/share/fonts/ + unzip -j $downloadedFile \*.ttf -d $out/share/fonts/truetype/ + ''; +}) |