Add linuxcnc-ethercat

This commit is contained in:
2023-09-27 18:09:55 +03:00
parent 0f4aac93fa
commit 184454b695
2 changed files with 26 additions and 1 deletions

View File

@@ -6,7 +6,7 @@ in {
options.local.packages.linuxcnc.enable = lib.mkEnableOption "Enable linuxcnc"; options.local.packages.linuxcnc.enable = lib.mkEnableOption "Enable linuxcnc";
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [ linuxcnc ]; environment.systemPackages = with pkgs; [ linuxcnc linuxcnc-ethercat ];
security.wrappers = listToAttrs (map (f: { security.wrappers = listToAttrs (map (f: {
name = f; name = f;

View File

@@ -0,0 +1,25 @@
{ config, lib, pkgs, stdenv, linuxcnc, fetchGit }:
stdenv.mkDerivation rec {
enableParalellBuilding = true;
pname = "linuxcnc-ethercat";
version = "5ad53da25b";
name = "${pname}-${version}";
src = fetchGit {
url = "https://git.dripco.eu/nic/linuxcnc-ethercat.git";
ref = "master";
rev = "5ad53da25bdb5633e39ae1b9b8bfa9e5acb10674";
#ref = "refs/tags/1.9";
#sha256 = lib.fakeSha256;
};
buildInputs = [ linuxcnc ];
meta = with lib; {
description = "LinuxCNC ethercat interop";
platforms = platforms.linux;
};
}