nix/pkgs/winxp-icons.nix

47 lines
1.1 KiB
Nix
Raw Normal View History

2024-07-04 01:14:24 +02:00
{
lib,
stdenv,
fetchFromGitHub,
cmake,
python3,
gtk3,
}:
2024-06-13 15:38:40 +02:00
stdenv.mkDerivation {
pname = "winxp-icons";
version = "2024-03-27";
src = fetchFromGitHub {
owner = "rozniak";
repo = "xfce-winxp-tc";
fetchSubmodules = true;
rev = "82243191359060a3c3c9e168e0e10fe2114caca3";
hash = "sha256-bvkoe/L9KjMcCj5SlcNGoZKZtQwZHGYPFVSZbRfLztY=";
};
2024-07-04 01:14:24 +02:00
nativeBuildInputs = [cmake python3 gtk3];
dontUseCmakeConfigure = true;
2024-06-13 15:38:40 +02:00
buildPhase = ''
cd packaging
mkdir -p build
cd build
cmake ../../icons/luna -DWINTC_SKU=""
make
'';
installPhase = ''
mkdir -p $out/share/icons/winxp-icons/res
cp -r xdg-compiled-maps/* $out/share/icons/winxp-icons/
cp -r ../../icons/luna/res $out/share/icons/winxp-icons/
cp ../../icons/luna/index.theme $out/share/icons/winxp-icons/
gtk-update-icon-cache --force $out/share/icons/winxp-icons
'';
meta = with lib; {
description = "Windows XP Icons";
homepage = "https://github.com/rozniak/xfce-winxp-tc";
2024-07-04 01:14:24 +02:00
license = with licenses; [unfreeRedistributable gpl2Plus];
2024-06-13 15:38:40 +02:00
platforms = platforms.linux;
};
}