Skip to content

Commit

Permalink
Merge pull request NixOS#298581 from stv0g/add-ethercat
Browse files Browse the repository at this point in the history
ethercat: init at 1.6-alpha
  • Loading branch information
a-n-n-a-l-e-e authored Mar 27, 2024
2 parents d3c4cab + 3c31ed9 commit 05c97b5
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions pkgs/by-name/et/ethercat/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{ autoreconfHook
, cmake
, lib
, pkg-config
, stdenv
, fetchFromGitLab
, gitUpdater
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ethercat";
version = "1.6-alpha";

src = fetchFromGitLab {
owner = "etherlab.org";
repo = "ethercat";
rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-kzyA6h0rZFEROLcFZoU+2fIQ/Y0NwtdPuliKDbwkHrE=";
};

separateDebugInfo = true;

nativeBuildInputs = [ autoreconfHook pkg-config ];

configureFlags = [
"--enable-userlib=yes"
"--enable-kernel=no"
];

passthru.updateScript = gitUpdater { };

meta = with lib; {
description = "IgH EtherCAT Master for Linux";
homepage = "https://etherlab.org/ethercat";
changelog = "https://gitlab.com/etherlab.org/ethercat/-/blob/${finalAttrs.version}/NEWS";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ stv0g ];
platforms = [ "x86_64-linux" ];
};
})

0 comments on commit 05c97b5

Please sign in to comment.