summary refs log tree commit diff
path: root/pkgs/data/fonts/encode-sans/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/data/fonts/encode-sans/default.nix')
-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 3fd0115ddb4..a6836afbc87 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}"
+  '';
+})