diff --git a/flake.nix b/flake.nix index 1d1ad6d..739613f 100644 --- a/flake.nix +++ b/flake.nix @@ -118,9 +118,9 @@ 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 ''; - runScript = runScriptPrefix + '' + runScript = pkgs.writeScript "matlab-runner" (runScriptPrefix + '' exec $INSTALL_DIR/bin/matlab "$@" - ''; + ''); meta = metaCommon // { description = "Matlab itself - the GUI launcher"; }; @@ -128,7 +128,7 @@ packages.x86_64-linux.matlab-shell = pkgs.buildFHSUserEnv { name = "matlab-shell"; inherit targetPkgs; - runScript = shellHooksCommon + '' + runScript = pkgs.writeScript "matlab-shell-runner" '' cat <