Skip to content

Commit a046c12

Browse files
authored
Merge pull request #326270 from NixOS/backport-326267-to-release-24.05
[Backport release-24.05] pt2-clone: fix NixOS test failure due to whitespace in icon name
2 parents 67bb22e + 23b501c commit a046c12

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pkgs/applications/audio/pt2-clone/default.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ stdenv.mkDerivation (finalAttrs: {
2222

2323
postInstall = ''
2424
install -Dm444 "$src/release/other/Freedesktop.org Resources/ProTracker 2 clone.desktop" \
25-
-t $out/share/applications
25+
$out/share/applications/pt2-clone.desktop
2626
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
2832
'';
2933

3034
passthru.tests = {

0 commit comments

Comments
 (0)