vanilla-dmz: Expose themes under DMZ-{White,Black} names

This commit is contained in:
OPNA2608 2022-12-31 12:53:09 +01:00
parent a73f033cc7
commit b7ebd1f897

View file

@ -25,18 +25,30 @@ stdenvNoCC.mkDerivation rec {
dontDropIconThemeCache = true; dontDropIconThemeCache = true;
buildPhase = '' buildPhase = ''
cd DMZ-White/pngs; ./make.sh; cd - runHook preBuild
cd DMZ-Black/pngs; ./make.sh; cd -
for theme in DMZ-{White,Black}; do
pushd $theme/pngs
./make.sh
popd
done
runHook postBuild
''; '';
installPhase = '' installPhase = ''
install -d $out/share/icons/Vanilla-DMZ/cursors runHook preInstall
cp -a DMZ-White/xcursors/* $out/share/icons/Vanilla-DMZ/cursors
install -Dm644 DMZ-White/index.theme $out/share/icons/Vanilla-DMZ/index.theme
install -d $out/share/icons/Vanilla-DMZ-AA/cursors for theme in DMZ-{White,Black}; do
cp -a DMZ-Black/xcursors/* $out/share/icons/Vanilla-DMZ-AA/cursors mkdir -p $out/share/icons/$theme/cursors
install -Dm644 DMZ-Black/index.theme $out/share/icons/Vanilla-DMZ-AA/index.theme 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}
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {