klipper: install klippy to $out/bin
This commit is contained in:
parent
0881ec4731
commit
ea47233988
|
@ -3,6 +3,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, python3
|
, python3
|
||||||
, unstableGitUpdater
|
, unstableGitUpdater
|
||||||
|
, makeWrapper
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -19,7 +20,10 @@ stdenv.mkDerivation rec {
|
||||||
sourceRoot = "source/klippy";
|
sourceRoot = "source/klippy";
|
||||||
|
|
||||||
# NB: This is needed for the postBuild step
|
# NB: This is needed for the postBuild step
|
||||||
nativeBuildInputs = [ (python3.withPackages ( p: with p; [ cffi ] )) ];
|
nativeBuildInputs = [
|
||||||
|
(python3.withPackages ( p: with p; [ cffi ] ))
|
||||||
|
makeWrapper
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [ (python3.withPackages (p: with p; [ cffi pyserial greenlet jinja2 markupsafe numpy ])) ];
|
buildInputs = [ (python3.withPackages (p: with p; [ cffi pyserial greenlet jinja2 markupsafe numpy ])) ];
|
||||||
|
|
||||||
|
@ -49,7 +53,9 @@ stdenv.mkDerivation rec {
|
||||||
cp -r $src/docs $out/lib/docs
|
cp -r $src/docs $out/lib/docs
|
||||||
cp -r $src/config $out/lib/config
|
cp -r $src/config $out/lib/config
|
||||||
|
|
||||||
|
mkdir -p $out/bin
|
||||||
chmod 755 $out/lib/klipper/klippy.py
|
chmod 755 $out/lib/klipper/klippy.py
|
||||||
|
makeWrapper $out/lib/klipper/klippy.py $out/bin/klippy --chdir $out/lib/klipper
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue