mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-29 03:34:46 +01:00
41 lines
741 B
Nix
41 lines
741 B
Nix
{ stdenvNoCC
|
|
, fetchurl
|
|
, unar
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "candy-icons";
|
|
version = "2023-12-07";
|
|
|
|
src = fetchurl {
|
|
name = "Candy Icons.zip";
|
|
url = "https://files.catbox.moe/zn84ts.zip";
|
|
hash = "sha256-X2P4SAERpXEkNX0w6qLS3BEbdYtQiST/cimdmrfFY6E=";
|
|
};
|
|
|
|
nativeBuildInputs = [ unar ];
|
|
|
|
unpackPhase = /* bash */ ''
|
|
runHook preUnpack
|
|
|
|
cp "$src" $(stripHash "$src")
|
|
unar $(stripHash "$src")
|
|
|
|
runHook postUnpack
|
|
'';
|
|
|
|
installPhase = /* bash */ ''
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/eww
|
|
cp -r */ $out/share/eww
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/EliverLara/candy-icons";
|
|
description = "Candy folder icons converted to png";
|
|
};
|
|
}
|