nix/pkgs/oxylite-icon-theme.nix
2024-06-13 15:38:40 +02:00

50 lines
1.3 KiB
Nix

{ lib, stdenv, fetchFromGitHub, gtk3, hicolor-icon-theme }:
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=";
};
# propagatedBuildInputs = [ hicolor-icon-theme ];
nativeBuildInputs = [ gtk3 ];
# dontDropIconThemeCache = true;
buildPhase = ''
runHook preBuild
runHook postBuild
'';
installPhase = ''
runHook preInstall
prefix="$out/share/icons/oxylite";
mkdir -p "$prefix";
for d in actions apps categories devices emblems emotes mimetypes places status ui; do
install -d "$prefix/$d";
cp -ar "$d" "$prefix";
chmod -R u=rwX,g=rX,o=rX "$prefix/$d";
done;
install -m 644 index.theme "$prefix/index.theme";
install -m 644 licenses.yml "$prefix/licenses.yml";
install -m 644 README.md "$prefix/README.md";
gtk-update-icon-cache --force "$prefix"
runHook postInstall
'';
meta = with lib; {
description = "Oxylite Icon Theme";
homepage = "https://github.com/mx-2/oxylite-icon-theme";
license = licenses.gpl3Plus;
platforms = platforms.linux;
};
}