Merge pull request #326267 from fgaz/pt2-clone/icon-whitespace

pt2-clone: fix NixOS test failure due to whitespace in icon name

authored by K900 and committed by GitHub bbb60ff0 ce6a9d4a

+6 -2
+6 -2
pkgs/applications/audio/pt2-clone/default.nix
··· 22 22 23 23 postInstall = '' 24 24 install -Dm444 "$src/release/other/Freedesktop.org Resources/ProTracker 2 clone.desktop" \ 25 - -t $out/share/applications 25 + $out/share/applications/pt2-clone.desktop 26 26 install -Dm444 "$src/release/other/Freedesktop.org Resources/ProTracker 2 clone.png" \ 27 - -t $out/share/icons/hicolor/512x512/apps 27 + $out/share/icons/hicolor/512x512/apps/pt2-clone.png 28 + # gtk-update-icon-cache does not like whitespace. Note that removing this 29 + # will not make the build fail, but it will make the NixOS test fail. 30 + substituteInPlace $out/share/applications/pt2-clone.desktop \ 31 + --replace-fail "Icon=ProTracker 2 clone" Icon=pt2-clone 28 32 ''; 29 33 30 34 passthru.tests = {