nixos/home/desktop/pkgs/delta-icon-theme/default.nix

34 lines
643 B
Nix
Raw Normal View History

2023-05-18 11:50:27 +01:00
{
stdenvNoCC,
fetchFromGitHub,
gtk3,
}:
stdenvNoCC.mkDerivation rec {
pname = "delta-icon-theme";
version = "194df98e422c0a81912194808b76712bf5d78803";
dontBuild = true;
2023-05-18 11:50:27 +01:00
src = fetchFromGitHub {
owner = "Delta-Icons";
repo = "linux";
rev = version;
sha256 = "sha256-SSkI5Aj/TTHfDRYCWe7Ell6cWvPmBUeO/AC4xRrEUvU=";
};
2023-05-18 11:50:27 +01:00
nativeBuildInputs = [gtk3];
2023-05-18 11:50:27 +01:00
dontDropIconThemeCache = true;
2023-05-18 11:50:27 +01:00
installPhase = ''
runHook preInstall
mkdir -p $out/share/icons
mv Delta $out/share/icons
2023-05-18 11:50:27 +01:00
for theme in $out/share/icons/*; do
gtk-update-icon-cache --force $theme
done
2023-05-18 11:50:27 +01:00
runHook postInstall
'';
2023-05-18 11:50:27 +01:00
}