about summary refs log tree commit diff
path: root/pkgs/data/icons/capitaine-cursors-themed
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-31 16:35:18 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-01-31 16:35:18 +0100
commite8d71d70cea05c5d17d8eda9aa2e49ffbb603139 (patch)
tree9f3f604399e200696935aa9519c2d8286612cd1c /pkgs/data/icons/capitaine-cursors-themed
parent6527aa6d68944d0c53bc44947bccba050cf766ad (diff)
treewide: data: convert to stdenvNoCC.mkDerivation
Diffstat (limited to 'pkgs/data/icons/capitaine-cursors-themed')
-rw-r--r--pkgs/data/icons/capitaine-cursors-themed/default.nix20
1 files changed, 14 insertions, 6 deletions
diff --git a/pkgs/data/icons/capitaine-cursors-themed/default.nix b/pkgs/data/icons/capitaine-cursors-themed/default.nix
index d86ce3f8161ae..bd0147fecde31 100644
--- a/pkgs/data/icons/capitaine-cursors-themed/default.nix
+++ b/pkgs/data/icons/capitaine-cursors-themed/default.nix
@@ -1,14 +1,22 @@
-{ lib, fetchzip }:
-fetchzip rec {
+{ lib, stdenvNoCC, fetchzip }:
+
+stdenvNoCC.mkDerivation rec {
   pname = "capitaine-cursors-themed";
   version = "5";
-  stripRoot = false;
-  url = "https://github.com/sainnhe/capitaine-cursors/releases/download/r${version}/Linux.zip";
-  sha256 = "jQNAXuR/OtvohWziGYgb5Ni2/tEIGaY9HIyUUW793EY=";
 
-  postFetch = ''
+  src = fetchzip {
+    url = "https://github.com/sainnhe/capitaine-cursors/releases/download/r${version}/Linux.zip";
+    stripRoot = false;
+    hash = "sha256-ipPpmZKU/xLA45fdOvxVbtFDCUsCYIvzeps/DjhFkNg=";
+  };
+
+  installPhase = ''
+    runHook preInstall
+
     mkdir -p $out/share/icons
     cp -r ./ $out/share/icons
+
+    runHook postInstall
   '';
 
   meta = with lib; {