mirror of
https://git.adityakumar.xyz/nix-matlab.git
synced 2024-11-09 16:19:45 +00:00
Fix path to executable in desktop item
This commit is contained in:
parent
7e19c8863c
commit
29d945ce67
1 changed files with 4 additions and 1 deletions
|
@ -32,7 +32,8 @@
|
||||||
desktopItem = pkgs.makeDesktopItem {
|
desktopItem = pkgs.makeDesktopItem {
|
||||||
desktopName = "Matlab";
|
desktopName = "Matlab";
|
||||||
name = "matlab";
|
name = "matlab";
|
||||||
exec = "${builtins.placeholder "out"}/bin/matlab %F";
|
# We use substituteInPlace after we run `install`
|
||||||
|
exec = "@out@/bin/matlab %F";
|
||||||
icon = "matlab";
|
icon = "matlab";
|
||||||
# Most of the following are copied from octave's desktop launcher
|
# Most of the following are copied from octave's desktop launcher
|
||||||
categories = "Utility;TextEditor;Development;IDE;";
|
categories = "Utility;TextEditor;Development;IDE;";
|
||||||
|
@ -48,6 +49,8 @@
|
||||||
inherit targetPkgs;
|
inherit targetPkgs;
|
||||||
extraInstallCommands = ''
|
extraInstallCommands = ''
|
||||||
install -Dm644 ${desktopItem}/share/applications/matlab.desktop $out/share/applications/matlab.desktop
|
install -Dm644 ${desktopItem}/share/applications/matlab.desktop $out/share/applications/matlab.desktop
|
||||||
|
substituteInPlace $out/share/applications/matlab.desktop \
|
||||||
|
--replace "@out@" ${placeholder "out"}
|
||||||
install -Dm644 ${./icons/hicolor/256x256/matlab.png} $out/share/icons/hicolor/256x256/matlab.png
|
install -Dm644 ${./icons/hicolor/256x256/matlab.png} $out/share/icons/hicolor/256x256/matlab.png
|
||||||
install -Dm644 ${./icons/hicolor/512x512/matlab.png} $out/share/icons/hicolor/512x512/matlab.png
|
install -Dm644 ${./icons/hicolor/512x512/matlab.png} $out/share/icons/hicolor/512x512/matlab.png
|
||||||
install -Dm644 ${./icons/hicolor/64x64/matlab.png} $out/share/icons/hicolor/64x64/matlab.png
|
install -Dm644 ${./icons/hicolor/64x64/matlab.png} $out/share/icons/hicolor/64x64/matlab.png
|
||||||
|
|
Loading…
Reference in a new issue