Files
nixpkgs/pkgs/by-name/et/ethercat/package.nix
2026-07-20 09:01:07 +00:00

52 lines
1.0 KiB
Nix

{
autoreconfHook,
lib,
pkg-config,
stdenv,
fetchFromGitLab,
gitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ethercat";
version = "1.6.10";
src = fetchFromGitLab {
owner = "etherlab.org";
repo = "ethercat";
tag = finalAttrs.version;
hash = "sha256-ZlvlWSZz7oWMvl3XorS2lb4i33RRv8dBwOe2uLDeOjQ=";
};
separateDebugInfo = true;
nativeBuildInputs = [
autoreconfHook
pkg-config
];
configureFlags = [
"--enable-userlib=yes"
"--enable-kernel=no"
];
passthru = {
kernelModule = import ./kernel-module.nix finalAttrs.finalPackage;
updateScript = gitUpdater { };
};
meta = {
description = "IgH EtherCAT Master for Linux";
homepage = "https://etherlab.org/ethercat";
changelog = "https://gitlab.com/etherlab.org/ethercat/-/blob/${finalAttrs.version}/NEWS";
license = with lib.licenses; [
gpl2Only
lgpl21Only
];
maintainers = with lib.maintainers; [
ninelore
stv0g
];
platforms = [ "x86_64-linux" ];
};
})