28 lines
672 B
Nix
28 lines
672 B
Nix
{ config, lib, pkgs, stdenv, linuxcnc-base, ethercat }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
enableParallelBuilding = true;
|
|
|
|
pname = "linuxcnc-ethercat";
|
|
version = "5ad53da25b";
|
|
name = "${pname}-${version}";
|
|
|
|
src = pkgs.fetchgit {
|
|
url = "https://git.dripco.eu/nic/linuxcnc-ethercat.git";
|
|
rev = "5ad53da25bdb5633e39ae1b9b8bfa9e5acb10674";
|
|
sha256 = "SjFkcNl/4AlsMeIw5Hg9Kp5mIIV9KFUYodXV6lAi3/A=";
|
|
};
|
|
|
|
nativeBuildInputs = with pkgs; [ which expat ];
|
|
|
|
buildInputs = [ linuxcnc-base ethercat ];
|
|
|
|
installFlags = [ "DESTDIR=${placeholder "out"}" ];
|
|
|
|
meta = with lib; {
|
|
description = "LinuxCNC ethercat interop";
|
|
platforms = platforms.linux;
|
|
};
|
|
|
|
}
|