summary refs log tree commit diff
path: root/pkgs/data/fonts/hasklig
diff options
context:
space:
mode:
authorScott Worley <scottworley@scottworley.com>2022-09-29 00:52:55 -0700
committerArtturin <Artturin@artturin.com>2023-01-17 01:03:11 +0200
commitaf89d3a2be6f70edb187dd817377d6c4360134fa (patch)
tree432c3ff8a5c9e40ac5fef7d6387e12db60310cc9 /pkgs/data/fonts/hasklig
parentea27fb07efe68cb426593a4d7c2efe469621021d (diff)
downloadnixpkgs-af89d3a2be6f70edb187dd817377d6c4360134fa.tar
nixpkgs-af89d3a2be6f70edb187dd817377d6c4360134fa.tar.gz
nixpkgs-af89d3a2be6f70edb187dd817377d6c4360134fa.tar.bz2
nixpkgs-af89d3a2be6f70edb187dd817377d6c4360134fa.tar.lz
nixpkgs-af89d3a2be6f70edb187dd817377d6c4360134fa.tar.xz
nixpkgs-af89d3a2be6f70edb187dd817377d6c4360134fa.tar.zst
nixpkgs-af89d3a2be6f70edb187dd817377d6c4360134fa.zip
78 fonts: Fix build after #173430 changed postFetch semantics
Diffstat (limited to 'pkgs/data/fonts/hasklig')
-rw-r--r--pkgs/data/fonts/hasklig/default.nix15
1 files changed, 8 insertions, 7 deletions
diff --git a/pkgs/data/fonts/hasklig/default.nix b/pkgs/data/fonts/hasklig/default.nix
index d9deef80c0d..8c81bf52042 100644
--- a/pkgs/data/fonts/hasklig/default.nix
+++ b/pkgs/data/fonts/hasklig/default.nix
@@ -1,17 +1,13 @@
+# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
 { lib, fetchzip }:
 
 let
   version = "1.1";
-in fetchzip {
+in (fetchzip {
   name = "hasklig-${version}";
 
   url = "https://github.com/i-tu/Hasklig/releases/download/${version}/Hasklig-${version}.zip";
 
-  postFetch = ''
-    unzip $downloadedFile
-    install -m444 -Dt $out/share/fonts/opentype *.otf
-  '';
-
   sha256 = "0xxyx0nkapviqaqmf3b610nq17k20afirvc72l32pfspsbxz8ybq";
 
   meta = with lib; {
@@ -21,4 +17,9 @@ in fetchzip {
     platforms = platforms.all;
     maintainers = with maintainers; [ davidrusu Profpatsch ];
   };
-}
+}).overrideAttrs (_: {
+  postFetch = ''
+    unzip $downloadedFile
+    install -m444 -Dt $out/share/fonts/opentype *.otf
+  '';
+})