Add linuxcnc-ethercat
This commit is contained in:
@@ -6,7 +6,7 @@ in {
|
||||
options.local.packages.linuxcnc.enable = lib.mkEnableOption "Enable linuxcnc";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
environment.systemPackages = with pkgs; [ linuxcnc ];
|
||||
environment.systemPackages = with pkgs; [ linuxcnc linuxcnc-ethercat ];
|
||||
|
||||
security.wrappers = listToAttrs (map (f: {
|
||||
name = f;
|
||||
|
||||
25
packages/linuxcnc-ethercat/default.nix
Normal file
25
packages/linuxcnc-ethercat/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user