diff options
author | matt <gnumber13@e.mail.de> | 2023-07-25 01:09:00 +0200 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-08-01 11:05:59 +0000 |
commit | 18dd51567e0fa185aa44abe10f28bc3a1309f1c5 (patch) | |
tree | c9f29cc84b442c9d579621969a2aa4f959561587 /pkgs/applications/audio/alsa-scarlett-gui | |
parent | 8bbf6a3281b48a5e87b22af85e2db44013a2374a (diff) |
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.
Diffstat (limited to 'pkgs/applications/audio/alsa-scarlett-gui')
-rw-r--r-- | pkgs/applications/audio/alsa-scarlett-gui/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/audio/alsa-scarlett-gui/default.nix b/pkgs/applications/audio/alsa-scarlett-gui/default.nix index 80db9e85d3db8..19a19d85609d5 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" ]; |