2023-09-08 12:27:34 +01:00
|
|
|
{ stdenvNoCC, fetchFromGitHub, gtk3, }:
|
2023-06-12 10:39:46 +01:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
pname = "delta-icon-theme";
|
2023-09-08 12:27:34 +01:00
|
|
|
version = "7b5bc269516845518da5095ed8b8cbbc34d68edb";
|
2023-06-12 10:39:46 +01:00
|
|
|
dontBuild = true;
|
2023-05-18 11:50:27 +01:00
|
|
|
|
2023-06-12 10:39:46 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Delta-Icons";
|
|
|
|
repo = "linux";
|
|
|
|
rev = version;
|
2023-09-08 12:27:34 +01:00
|
|
|
sha256 = "sha256-/QraIVlgCT4AH+LU5gMtBmIZo3TBdwyeXRyBUxP8KJA=";
|
2023-06-12 10:39:46 +01:00
|
|
|
};
|
2023-05-18 11:50:27 +01:00
|
|
|
|
2023-09-08 12:27:34 +01:00
|
|
|
nativeBuildInputs = [ gtk3 ];
|
2023-05-18 11:50:27 +01:00
|
|
|
|
2023-06-12 10:39:46 +01:00
|
|
|
dontDropIconThemeCache = true;
|
2023-05-18 11:50:27 +01:00
|
|
|
|
2023-06-12 10:39:46 +01:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
mkdir -p $out/share/icons
|
|
|
|
mv Delta $out/share/icons
|
2023-05-18 11:50:27 +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-05-18 11:50:27 +01:00
|
|
|
|
2023-06-12 10:39:46 +01:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2023-05-18 11:50:27 +01:00
|
|
|
}
|