Merge pull request #97254 from r-ryantm/auto-update/sumorobot-manager
sumorobot-manager: 0.9.0 -> 1.0.0
This commit is contained in:
commit
921460b715
@ -1,22 +1,22 @@
|
|||||||
{ lib, stdenv, python3, qt5, fetchFromGitHub, wrapPython, pyqt5, pyserial }:
|
{ lib, stdenv, python3, qt5, fetchFromGitHub, wrapPython, pyqt5, pyserial, dos2unix }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "sumorobot-manager";
|
pname = "sumorobot-manager";
|
||||||
version = "0.9.0";
|
version = "1.0.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "robokoding";
|
owner = "robokoding";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "03zhb54c259a66hsahmv2ajbzwcjnfjj050wbjhw51zqzxinlgqr";
|
sha256 = "07snhwmqqp52vdgr66vx50zxx0nmpmns5cdjgh50hzlhji2z1fl9";
|
||||||
};
|
};
|
||||||
|
|
||||||
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…
Reference in New Issue
Block a user