summary refs log tree commit diff
path: root/pkgs/data/fonts/weather-icons
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/weather-icons
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/weather-icons')
-rw-r--r--pkgs/data/fonts/weather-icons/default.nix16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/data/fonts/weather-icons/default.nix b/pkgs/data/fonts/weather-icons/default.nix
index a979dca4477..7171f65cb68 100644
--- a/pkgs/data/fonts/weather-icons/default.nix
+++ b/pkgs/data/fonts/weather-icons/default.nix
@@ -1,19 +1,14 @@
+# when changing this expression convert it from 'fetchzip' to 'stdenvNoCC.mkDerivation'
 { lib, fetchzip }:
 
 let
   version = "2.0.12";
-in fetchzip {
+in (fetchzip {
   name = "weather-icons-${version}";
 
   url = "https://github.com/erikflowers/weather-icons/archive/refs/tags/${version}.zip";
   sha256 = "sha256-NGPzAloeZa1nCazb+mjAbYw7ZYYDoKpLwcvzg1Ly9oM=";
 
-  postFetch = ''
-    mkdir -p $out/share/fonts
-    unzip -j $downloadedFile weather-icons-${version}/_docs/font-source/weathericons-regular.otf -d $out/share/fonts/opentype
-  '';
-
-
   meta = with lib; {
     description = "Weather Icons";
     longDescription = ''
@@ -26,4 +21,9 @@ in fetchzip {
     platforms = platforms.all;
     maintainers = with maintainers; [ pnelson ];
   };
-}
+}).overrideAttrs (_: {
+  postFetch = ''
+    mkdir -p $out/share/fonts
+    unzip -j $downloadedFile weather-icons-${version}/_docs/font-source/weathericons-regular.otf -d $out/share/fonts/opentype
+  '';
+})