sumorobot-manager: fix compilation
This commit is contained in:
parent
99f8bc3e03
commit
ebf371726d
@ -13,10 +13,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ python3 ];
|
buildInputs = [ python3 ];
|
||||||
pythonPath = [
|
pythonPath = [
|
||||||
pyqt5 pyserial
|
pyqt5.dev pyserial
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ wrapPython qt5.wrapQtAppsHook ];
|
nativeBuildInputs = [ wrapPython qt5.wrapQtAppsHook dos2unix ];
|
||||||
|
|
||||||
buildPhase = "true";
|
buildPhase = "true";
|
||||||
|
|
||||||
@ -25,6 +25,7 @@ stdenv.mkDerivation rec {
|
|||||||
cp -r main.py lib res $out/opt/sumorobot-manager
|
cp -r main.py lib res $out/opt/sumorobot-manager
|
||||||
chmod -R 644 $out/opt/sumorobot-manager/lib/*
|
chmod -R 644 $out/opt/sumorobot-manager/lib/*
|
||||||
mkdir $out/bin
|
mkdir $out/bin
|
||||||
|
dos2unix $out/opt/sumorobot-manager/main.py
|
||||||
makeQtWrapper $out/opt/sumorobot-manager/main.py $out/bin/sumorobot-manager \
|
makeQtWrapper $out/opt/sumorobot-manager/main.py $out/bin/sumorobot-manager \
|
||||||
--run "cd $out/opt/sumorobot-manager"
|
--run "cd $out/opt/sumorobot-manager"
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user