about summary refs log tree commit diff
path: root/pkgs/data/fonts/encode-sans
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/encode-sans
parentea27fb07efe68cb426593a4d7c2efe469621021d (diff)
78 fonts: Fix build after #173430 changed postFetch semantics
Diffstat (limited to 'pkgs/data/fonts/encode-sans')
-rw-r--r--pkgs/data/fonts/encode-sans/default.nix21
1 files changed, 11 insertions, 10 deletions
diff --git a/pkgs/data/fonts/encode-sans/default.nix b/pkgs/data/fonts/encode-sans/default.nix
index 3fd0115ddb487..a6836afbc871f 100644
--- a/pkgs/data/fonts/encode-sans/default.nix
+++ b/pkgs/data/fonts/encode-sans/default.nix
@@ -1,16 +1,11 @@
+# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
 { lib, fetchzip }:
-
-fetchzip rec {
-  name = "encode-sans-1.002";
+let name = "encode-sans-1.002";
+in (fetchzip rec {
+  inherit name;
 
   url = "https://github.com/impallari/Encode-Sans/archive/11162b46892d20f55bd42a00b48cbf06b5871f75.zip";
 
-  postFetch = ''
-    mkdir -p $out/share/{doc,fonts}
-    unzip -j $downloadedFile \*.ttf                    -d $out/share/fonts/truetype
-    unzip -j $downloadedFile \*README.md \*FONTLOG.txt -d "$out/share/doc/${name}"
-  '';
-
   sha256 = "16mx894zqlwrhnp4rflgayxhxppmsj6k7haxdngajhb30rlwf08p";
 
   meta = with lib; {
@@ -28,4 +23,10 @@ fetchzip rec {
     maintainers = with maintainers; [ cmfwyp ];
     platforms = platforms.all;
   };
-}
+}).overrideAttrs (_: {
+  postFetch = ''
+    mkdir -p $out/share/{doc,fonts}
+    unzip -j $downloadedFile \*.ttf                    -d $out/share/fonts/truetype
+    unzip -j $downloadedFile \*README.md \*FONTLOG.txt -d "$out/share/doc/${name}"
+  '';
+})