Add symlinks
This commit is contained in:
@@ -4,6 +4,11 @@ let
|
|||||||
inherit (builtins) filter map pathExists listToAttrs;
|
inherit (builtins) filter map pathExists listToAttrs;
|
||||||
linuxcncWithEC = pkgs.linuxcnc.overrideAttrs (oldAttrs: {
|
linuxcncWithEC = pkgs.linuxcnc.overrideAttrs (oldAttrs: {
|
||||||
buildInputs = oldAttrs.buildInputs ++ [ pkgs.linuxcnc-ethercat pkgs.hal-cia402 ];
|
buildInputs = oldAttrs.buildInputs ++ [ pkgs.linuxcnc-ethercat pkgs.hal-cia402 ];
|
||||||
|
postInstall = oldAttrs.postInstall + ''
|
||||||
|
ln -s ${pkgs.linuxcnc-ethercat}/bin/* $out/bin/
|
||||||
|
ln -s ${pkgs.linuxcnc-ethercat}/lib/linuxcnc/modules/* $out/lib/linuxcnc/modules/
|
||||||
|
ln -s ${pkgs.linuxcnc-ethercat}/share/linuxcnc-ethercat $out/share/
|
||||||
|
'';
|
||||||
});
|
});
|
||||||
linuxcncEnv = pkgs.buildEnv {
|
linuxcncEnv = pkgs.buildEnv {
|
||||||
name = "linuxcnc-env";
|
name = "linuxcnc-env";
|
||||||
|
|||||||
Reference in New Issue
Block a user