From 3c31ed9feb40fc29b4c552f6f961188fbe393124 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 24 Mar 2024 10:21:01 +0100 Subject: [PATCH] ethercat: init at 1.6-alpha --- pkgs/by-name/et/ethercat/package.nix | 39 ++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 pkgs/by-name/et/ethercat/package.nix diff --git a/pkgs/by-name/et/ethercat/package.nix b/pkgs/by-name/et/ethercat/package.nix new file mode 100644 index 000000000000..3e65d5cda9cb --- /dev/null +++ b/pkgs/by-name/et/ethercat/package.nix @@ -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" ]; + }; +})