nix/pkgs/oxylite-icon-theme.nix

56 lines
1.3 KiB
Nix
Raw Normal View History

2024-07-04 01:14:24 +02:00
{
lib,
stdenv,
fetchFromGitHub,
gtk3,
hicolor-icon-theme,
}:
2024-06-13 15:38:40 +02:00
stdenv.mkDerivation {
pname = "oxylite-icon-theme";
version = "2024-04-22";
src = fetchFromGitHub {
owner = "mx-2";
repo = "oxylite-icon-theme";
rev = "3dec1990dddd4d51513ee1d2b1fb762c0ba80f50";
hash = "sha256-syjFs2gkscdlpOmWgraj4l1+WwIaIVFZlhDY4nP99Oo=";
};
2024-07-04 01:14:24 +02:00
# propagatedBuildInputs = [ hicolor-icon-theme ];
2024-06-13 15:38:40 +02:00
2024-07-04 01:14:24 +02:00
nativeBuildInputs = [gtk3];
# dontDropIconThemeCache = true;
2024-06-13 15:38:40 +02:00
buildPhase = ''
runHook preBuild
runHook postBuild
'';
installPhase = ''
runHook preInstall
2024-07-04 01:14:24 +02:00
prefix="$out/share/icons/oxylite";
mkdir -p "$prefix";
2024-06-13 15:38:40 +02:00
for d in actions apps categories devices emblems emotes mimetypes places status ui; do
2024-07-04 01:14:24 +02:00
install -d "$prefix/$d";
cp -ar "$d" "$prefix";
chmod -R u=rwX,g=rX,o=rX "$prefix/$d";
done;
2024-06-13 15:38:40 +02:00
2024-07-04 01:14:24 +02:00
install -m 644 index.theme "$prefix/index.theme";
install -m 644 licenses.yml "$prefix/licenses.yml";
install -m 644 README.md "$prefix/README.md";
2024-06-13 15:38:40 +02:00
gtk-update-icon-cache --force "$prefix"
2024-07-04 01:14:24 +02:00
2024-06-13 15:38:40 +02:00
runHook postInstall
'';
meta = with lib; {
description = "Oxylite Icon Theme";
homepage = "https://github.com/mx-2/oxylite-icon-theme";
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}