nixpkgs/pkgs/by-name/et/ethercat/package.nix
2026-05-27 19:21:30 +02:00

51 lines
1 KiB
Nix

{
autoreconfHook,
lib,
pkg-config,
stdenv,
fetchFromGitLab,
gitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ethercat";
version = "1.6.9";
src = fetchFromGitLab {
owner = "etherlab.org";
repo = "ethercat";
tag = finalAttrs.version;
hash = "sha256-Msx0i1SAwlSMD3+vjGRNe36Yx9qdUYokVekGytZptqk=";
};
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" ];
};
})