2022-08-12 12:06:08 +00:00
|
|
|
{ stdenvNoCC
|
2020-09-25 04:45:31 +00:00
|
|
|
, lib
|
|
|
|
, fetchzip
|
|
|
|
, xorg
|
|
|
|
, hicolor-icon-theme
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
stdenvNoCC.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "vanilla-dmz";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "0.4.5";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchzip {
|
2020-09-25 04:45:31 +00:00
|
|
|
url = "mirror://debian/pool/main/d/dmz-cursor-theme/dmz-cursor-theme_${version}.tar.xz";
|
|
|
|
sha256 = "14r8fri4byyzavzdifpga6118hxqjwpzd11xxj28s16zxcanq16m";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
xorg.xcursorgen
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
hicolor-icon-theme
|
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
dontDropIconThemeCache = true;
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildPhase = ''
|
2023-02-02 18:25:31 +00:00
|
|
|
runHook preBuild
|
|
|
|
|
|
|
|
for theme in DMZ-{White,Black}; do
|
|
|
|
pushd $theme/pngs
|
|
|
|
./make.sh
|
|
|
|
popd
|
|
|
|
done
|
|
|
|
|
|
|
|
runHook postBuild
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
2023-02-02 18:25:31 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
for theme in DMZ-{White,Black}; do
|
|
|
|
mkdir -p $out/share/icons/$theme/cursors
|
|
|
|
cp -a $theme/xcursors/* $out/share/icons/$theme/cursors/
|
|
|
|
install -m644 $theme/index.theme $out/share/icons/$theme/index.theme
|
|
|
|
done
|
|
|
|
|
|
|
|
ln -s $out/share/icons/{DMZ-White,Vanilla-DMZ}
|
|
|
|
ln -s $out/share/icons/{DMZ-Black,Vanilla-DMZ-AA}
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://jimmac.musichall.cz";
|
|
|
|
description = "A style neutral scalable cursor theme";
|
|
|
|
platforms = platforms.all;
|
2020-09-25 04:45:31 +00:00
|
|
|
license = licenses.cc-by-sa-30;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|