diff options
author | Doron Behar <doron.behar@gmail.com> | 2024-05-15 16:02:43 +0300 |
---|---|---|
committer | Doron Behar <doron.behar@gmail.com> | 2024-05-15 16:05:16 +0300 |
commit | 2bf27860a05787cff0f43675761310bf6f04ec9a (patch) | |
tree | 584bd0eb80e8cc576f4533d0a9d393d0f2aa250f /pkgs | |
parent | 52493b0dfa0031b9b5f3edff7a96aea74d5a741b (diff) |
octave.buildEnv: fix Exec= line in .desktop file
Fixes #311926.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/interpreters/octave/build-env.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/octave/build-env.nix b/pkgs/development/interpreters/octave/build-env.nix index 59575f95fc4b0..e7da04b38144e 100644 --- a/pkgs/development/interpreters/octave/build-env.nix +++ b/pkgs/development/interpreters/octave/build-env.nix @@ -63,6 +63,14 @@ in buildEnv { addPkgLocalList $out ${octave} wrapOctavePrograms "${lib.concatStringsSep " " packages}" + # We also need to modify the Exec= line of the desktop file, so it will point + # to the wrapper we generated above. + rm $out/share/applications # should be a symlink to ${octave}/share/applications + mkdir $out/share/applications + substitute \ + ${octave}/share/applications/org.octave.Octave.desktop \ + $out/share/applications/org.octave.Octave.desktop \ + --replace-fail ${octave}/bin/octave $out/bin/octave '' + postBuild; inherit (octave) meta; |