From 6ac1f552bae09bbf4c19eccf47583a58cc2738bd Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Thu, 11 Jul 2024 11:23:57 +0200 Subject: [PATCH] pt2-clone: fix NixOS test failure due to whitespace in icon name --- pkgs/applications/audio/pt2-clone/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/pt2-clone/default.nix b/pkgs/applications/audio/pt2-clone/default.nix index 98ff39c0f5b4..3ebe1375671f 100644 --- a/pkgs/applications/audio/pt2-clone/default.nix +++ b/pkgs/applications/audio/pt2-clone/default.nix @@ -22,9 +22,13 @@ stdenv.mkDerivation (finalAttrs: { postInstall = '' install -Dm444 "$src/release/other/Freedesktop.org Resources/ProTracker 2 clone.desktop" \ - -t $out/share/applications + $out/share/applications/pt2-clone.desktop install -Dm444 "$src/release/other/Freedesktop.org Resources/ProTracker 2 clone.png" \ - -t $out/share/icons/hicolor/512x512/apps + $out/share/icons/hicolor/512x512/apps/pt2-clone.png + # gtk-update-icon-cache does not like whitespace. Note that removing this + # will not make the build fail, but it will make the NixOS test fail. + substituteInPlace $out/share/applications/pt2-clone.desktop \ + --replace-fail "Icon=ProTracker 2 clone" Icon=pt2-clone ''; passthru.tests = {