diff options
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/multibootusb/default.nix | 24 | ||||
-rw-r--r-- | pkgs/applications/misc/plover/default.nix | 7 |
2 files changed, 17 insertions, 14 deletions
diff --git a/pkgs/applications/misc/multibootusb/default.nix b/pkgs/applications/misc/multibootusb/default.nix index 1420148329436..ab8802a1b6917 100644 --- a/pkgs/applications/misc/multibootusb/default.nix +++ b/pkgs/applications/misc/multibootusb/default.nix @@ -52,17 +52,6 @@ python36Packages.buildPythonApplication rec { python36Packages.six ]; - makeWrapperArgs = [ - # Firstly, add all necessary QT variables - "\${qtWrapperArgs[@]}" - - # Then, add the installed scripts/ directory to the python path - "--prefix" "PYTHONPATH" ":" "$out/lib/${python36Packages.python.libPrefix}/site-packages" - - # Finally, move to directory that contains data - "--run" "\"cd $out/share/${pname}\"" - ]; - postInstall = '' # This script doesn't work and it doesn't add much anyway rm $out/bin/multibootusb-pkexec @@ -72,6 +61,19 @@ python36Packages.buildPythonApplication rec { cp -r data "$out/share/${pname}/data" ''; + preFixup = '' + makeWrapperArgs+=( + # Firstly, add all necessary QT variables + "''${qtWrapperArgs[@]}" + + # Then, add the installed scripts/ directory to the python path + --prefix "PYTHONPATH" ":" "$out/lib/${python36Packages.python.libPrefix}/site-packages" + + # Finally, move to directory that contains data + --run "cd $out/share/${pname}" + ) + ''; + meta = with stdenv.lib; { description = "Multiboot USB creator for Linux live disks"; homepage = http://multibootusb.org/; diff --git a/pkgs/applications/misc/plover/default.nix b/pkgs/applications/misc/plover/default.nix index 77e93eaba7e97..8ecc4f974b455 100644 --- a/pkgs/applications/misc/plover/default.nix +++ b/pkgs/applications/misc/plover/default.nix @@ -47,8 +47,9 @@ propagatedBuildInputs = [ Babel pyqt5 xlib pyserial appdirs wcwidth setuptools ]; dontWrapQtApps = true; - makeWrapperArgs = [ - "\${qtWrapperArgs[@]}" - ]; + + preFixup = '' + makeWrapperArgs+=("''${qtWrapperArgs[@]}") + ''; }; } |