From 18dd51567e0fa185aa44abe10f28bc3a1309f1c5 Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 25 Jul 2023 01:09:00 +0200 Subject: [PATCH] alsa-scarlett-gui: fixed desktop entry Fixed desktop entry of the app so that it shows up in the menu. In place search and replace was implemented in the postInstall phase using sed. --- pkgs/applications/audio/alsa-scarlett-gui/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/audio/alsa-scarlett-gui/default.nix b/pkgs/applications/audio/alsa-scarlett-gui/default.nix index 80db9e85d3db..19a19d85609d 100644 --- a/pkgs/applications/audio/alsa-scarlett-gui/default.nix +++ b/pkgs/applications/audio/alsa-scarlett-gui/default.nix @@ -24,6 +24,9 @@ stdenv.mkDerivation rec { sourceRoot = "source/src"; nativeBuildInputs = [ pkg-config wrapGAppsHook4 ]; buildInputs = [ gtk4 alsa-lib ]; + postInstall = '' + sed -Ei "s/(Exec\s?=\s?).*/\1alsa-scarlett-gui\nTryExec=alsa-scarlett-gui/" $out/share/applications/vu.b4.${pname}.desktop + ''; # causes redefinition of _FORTIFY_SOURCE hardeningDisable = [ "fortify3" ];