diff options
Diffstat (limited to 'pkgs/data/fonts/courier-prime/default.nix')
-rw-r--r-- | pkgs/data/fonts/courier-prime/default.nix | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/pkgs/data/fonts/courier-prime/default.nix b/pkgs/data/fonts/courier-prime/default.nix index 81788b322cf..59a823727b8 100644 --- a/pkgs/data/fonts/courier-prime/default.nix +++ b/pkgs/data/fonts/courier-prime/default.nix @@ -1,19 +1,15 @@ +# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation' { lib, fetchzip }: let version = "unstable-2019-12-05"; repo = "CourierPrime"; rev = "7f6d46a766acd9391d899090de467c53fd9c9cb0"; -in fetchzip rec { +in (fetchzip rec { name = "courier-prime-${version}"; url = "https://github.com/quoteunquoteapps/${repo}/archive/${rev}/${name}.zip"; sha256 = "1xh4pkksm6zrafhb69q4lq093q6pl245zi9qhqw3x6c1ab718704"; - postFetch = '' - unzip $downloadedFile - install -m444 -Dt $out/share/fonts/truetype ${repo}-${rev}/fonts/ttf/*.ttf - ''; - meta = with lib; { description = "Monospaced font designed specifically for screenplays"; homepage = "https://github.com/quoteunquoteapps/CourierPrime"; @@ -21,4 +17,9 @@ in fetchzip rec { maintainers = [ maintainers.austinbutler ]; platforms = platforms.all; }; -} +}).overrideAttrs (_: { + postFetch = '' + unzip $downloadedFile + install -m444 -Dt $out/share/fonts/truetype ${repo}-${rev}/fonts/ttf/*.ttf + ''; +}) |