This commit is contained in:
2023-11-07 16:12:04 +02:00
parent f0cffa8e71
commit 6c66015eb1

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, python3Full, ... }:
let let
cfg = config.local.packages.linuxcnc; cfg = config.local.packages.linuxcnc;
inherit (builtins) filter map pathExists listToAttrs; inherit (builtins) filter map pathExists listToAttrs;
@@ -13,9 +13,13 @@ let
''; '';
}); });
pythonPkg = (python3Full.withPackages (ps: [
ps.pyserial # for camera feedback into linuxcnc
]));
linuxcncEnv = pkgs.buildEnv { linuxcncEnv = pkgs.buildEnv {
name = "linuxcnc-env"; name = "linuxcnc-env";
paths = with pkgs; [ linuxcncWithEC hal-cia402 linuxcnc-ethercat ] ++ linuxcncWithEC.buildInputs; paths = with pkgs; [ linuxcncWithEC hal-cia402 linuxcnc-ethercat pythonPkg ];
}; };
in { in {