2023-06-02 11:51:08 +01:00
|
|
|
{
|
|
|
|
stdenvNoCC,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gtk3,
|
2023-06-12 10:39:46 +01:00
|
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "candy-icon-theme";
|
|
|
|
version = "6a35be5cb133c6be8314807f55da3d795e24fb86";
|
|
|
|
dontBuild = true;
|
2023-06-02 11:51:08 +01:00
|
|
|
|
2023-06-12 10:39:46 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "EliverLara";
|
|
|
|
repo = "candy-icons";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-M58ts/xyVf+ZDidd4MEp/LlU3vk2imEwOnb0/sVJUYo=";
|
|
|
|
};
|
2023-06-02 11:51:08 +01:00
|
|
|
|
2023-06-12 10:39:46 +01:00
|
|
|
nativeBuildInputs = [gtk3];
|
2023-06-02 11:51:08 +01:00
|
|
|
|
2023-06-12 10:39:46 +01:00
|
|
|
dontDropIconThemeCache = true;
|
2023-06-02 11:51:08 +01:00
|
|
|
|
2023-06-12 10:39:46 +01:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/icons/Sweet-folders
|
|
|
|
mv * $out/share/icons/Sweet-folders
|
2023-06-02 11:51:08 +01:00
|
|
|
|
2023-06-12 10:39:46 +01:00
|
|
|
for theme in $out/share/icons/*; do
|
|
|
|
gtk-update-icon-cache --force $theme
|
|
|
|
done
|
2023-06-02 11:51:08 +01:00
|
|
|
|
2023-06-12 10:39:46 +01:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2023-06-02 11:51:08 +01:00
|
|
|
}
|