Add symlinks

This commit is contained in:
2023-10-24 18:46:04 +03:00
parent b4f8952faf
commit ff24653bf6

View File

@@ -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";