treewide: remove bash snippets in flags

Co-Authored-By: Jan Tojnar <jtojnar@gmail.com>
This commit is contained in:
worldofpeace
2019-12-15 00:10:41 -05:00
co-authored by Jan Tojnar
parent 7ab19b1517
commit abe3475df8
9 changed files with 68 additions and 54 deletions
+13 -11
View File
@@ -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/;