diff options
Diffstat (limited to 'pkgs/applications/misc/multibootusb/default.nix')
-rw-r--r-- | pkgs/applications/misc/multibootusb/default.nix | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/pkgs/applications/misc/multibootusb/default.nix b/pkgs/applications/misc/multibootusb/default.nix index 14201483294..ab8802a1b69 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/; |