Merge pull request #208487 from OPNA2608/fix/dmz_themes

authored by Sandro and committed by GitHub f603b265 79a60660

+20 -8
+20 -8
pkgs/data/icons/vanilla-dmz/default.nix
··· 25 25 dontDropIconThemeCache = true; 26 26 27 27 buildPhase = '' 28 - cd DMZ-White/pngs; ./make.sh; cd - 29 - cd DMZ-Black/pngs; ./make.sh; cd - 28 + runHook preBuild 29 + 30 + for theme in DMZ-{White,Black}; do 31 + pushd $theme/pngs 32 + ./make.sh 33 + popd 34 + done 35 + 36 + runHook postBuild 30 37 ''; 31 38 32 39 installPhase = '' 33 - install -d $out/share/icons/Vanilla-DMZ/cursors 34 - cp -a DMZ-White/xcursors/* $out/share/icons/Vanilla-DMZ/cursors 35 - install -Dm644 DMZ-White/index.theme $out/share/icons/Vanilla-DMZ/index.theme 40 + runHook preInstall 36 41 37 - install -d $out/share/icons/Vanilla-DMZ-AA/cursors 38 - cp -a DMZ-Black/xcursors/* $out/share/icons/Vanilla-DMZ-AA/cursors 39 - install -Dm644 DMZ-Black/index.theme $out/share/icons/Vanilla-DMZ-AA/index.theme 42 + for theme in DMZ-{White,Black}; do 43 + mkdir -p $out/share/icons/$theme/cursors 44 + cp -a $theme/xcursors/* $out/share/icons/$theme/cursors/ 45 + install -m644 $theme/index.theme $out/share/icons/$theme/index.theme 46 + done 47 + 48 + ln -s $out/share/icons/{DMZ-White,Vanilla-DMZ} 49 + ln -s $out/share/icons/{DMZ-Black,Vanilla-DMZ-AA} 50 + 51 + runHook postInstall 40 52 ''; 41 53 42 54 meta = with lib; {