about summary refs log tree commit diff
path: root/pkgs/data/fonts/work-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/work-sans
parentea27fb07efe68cb426593a4d7c2efe469621021d (diff)
78 fonts: Fix build after #173430 changed postFetch semantics
Diffstat (limited to 'pkgs/data/fonts/work-sans')
-rw-r--r--pkgs/data/fonts/work-sans/default.nix15
1 files changed, 8 insertions, 7 deletions
diff --git a/pkgs/data/fonts/work-sans/default.nix b/pkgs/data/fonts/work-sans/default.nix
index 49722fc3e01ab..208f370105798 100644
--- a/pkgs/data/fonts/work-sans/default.nix
+++ b/pkgs/data/fonts/work-sans/default.nix
@@ -1,18 +1,14 @@
+# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
 { lib, fetchzip }:
 
 let
   version = "2.010";
 in
-fetchzip {
+(fetchzip {
   name = "work-sans-${version}";
 
   url = "https://github.com/weiweihuanghuang/Work-Sans/archive/refs/tags/v${version}.zip";
 
-  postFetch = ''
-    mkdir -p $out/share/fonts
-    unzip -j $downloadedFile "*/fonts/*.ttf" -d $out/share/fonts/opentype
-  '';
-
   sha256 = "sha256-S4O5EoKY4w/p+MHeHRCmPyQRAOUfEwNiETxMgNcsrws=";
 
   meta = with lib; {
@@ -22,4 +18,9 @@ fetchzip {
     maintainers = [ maintainers.marsam ];
     platforms = platforms.all;
   };
-}
+}).overrideAttrs (_: {
+  postFetch = ''
+    mkdir -p $out/share/fonts
+    unzip -j $downloadedFile "*/fonts/*.ttf" -d $out/share/fonts/opentype
+  '';
+})