nix/pkgs/winxp-icons.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2024-06-13 15:38:40 +02:00
{ lib, stdenv, fetchFromGitHub, cmake, python3, gtk3 }:
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=";
};
nativeBuildInputs = [ cmake python3 gtk3 ];
dontUseCmakeConfigure = true;
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";
license = with licenses; [ unfreeRedistributable gpl2Plus ];
platforms = platforms.linux;
};
}