Fix linuxcnc-ethercat

This commit is contained in:
2023-09-27 18:37:55 +03:00
parent 184454b695
commit e6d6ca1177
3 changed files with 82 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
{ config, lib, pkgs, stdenv, linuxcnc, fetchGit }:
{ config, lib, pkgs, stdenv, linuxcnc, etherlab }:
stdenv.mkDerivation rec {
enableParalellBuilding = true;
@@ -7,15 +7,17 @@ stdenv.mkDerivation rec {
version = "5ad53da25b";
name = "${pname}-${version}";
src = fetchGit {
src = pkgs.fetchgit {
url = "https://git.dripco.eu/nic/linuxcnc-ethercat.git";
ref = "master";
rev = "5ad53da25bdb5633e39ae1b9b8bfa9e5acb10674";
#ref = "refs/tags/1.9";
#sha256 = lib.fakeSha256;
sha256 = "SjFkcNl/4AlsMeIw5Hg9Kp5mIIV9KFUYodXV6lAi3/A=";
};
buildInputs = [ linuxcnc ];
nativeBuildInputs = with pkgs; [ which expat ];
buildInputs = [ linuxcnc etherlab.ethercat ];
installFlags = [ "DESTDIR=${placeholder "out"}" ];
meta = with lib; {
description = "LinuxCNC ethercat interop";