Add override
This commit is contained in:
@@ -2,9 +2,12 @@
|
|||||||
let
|
let
|
||||||
cfg = config.local.packages.linuxcnc;
|
cfg = config.local.packages.linuxcnc;
|
||||||
inherit (builtins) filter map pathExists listToAttrs;
|
inherit (builtins) filter map pathExists listToAttrs;
|
||||||
|
linuxcncWithEC = pkgs.linuxcnc.overrideAttrs (oldAttrs: {
|
||||||
|
buildInputs = oldAttrs.buildInputs ++ [ pkgs.linuxcnc-ethercat pkgs.hal-cia402 ];
|
||||||
|
});
|
||||||
linuxcncEnv = pkgs.buildEnv {
|
linuxcncEnv = pkgs.buildEnv {
|
||||||
name = "linuxcnc-env";
|
name = "linuxcnc-env";
|
||||||
paths = with pkgs; [ linuxcnc hal-cia402 linuxcnc-ethercat ];
|
paths = with pkgs; [ linuxcncWithEC hal-cia402 linuxcnc-ethercat ];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
options.local.packages.linuxcnc.enable = lib.mkEnableOption "Enable linuxcnc";
|
options.local.packages.linuxcnc.enable = lib.mkEnableOption "Enable linuxcnc";
|
||||||
|
|||||||
@@ -14,17 +14,12 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
autoPatchelfHook
|
|
||||||
which
|
which
|
||||||
expat
|
expat
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ linuxcnc ethercat ];
|
buildInputs = [ linuxcnc ethercat ];
|
||||||
|
|
||||||
preBuild = ''
|
|
||||||
#addAutoPatchelfSearchPath ${placeholder "out"}/lib/linuxcnc/modules/
|
|
||||||
'';
|
|
||||||
|
|
||||||
installFlags = [
|
installFlags = [
|
||||||
"prefix=${placeholder "out"}"
|
"prefix=${placeholder "out"}"
|
||||||
#"RUN_IN_PLACE=YES"
|
#"RUN_IN_PLACE=YES"
|
||||||
|
|||||||
Reference in New Issue
Block a user