Merge pull request #298581 from stv0g/add-ethercat

ethercat: init at 1.6-alpha

authored by a-n-n-a-l-e-e and committed by GitHub 05c97b5a d3c4cab3

+39
+39
pkgs/by-name/et/ethercat/package.nix
··· 1 + { autoreconfHook 2 + , cmake 3 + , lib 4 + , pkg-config 5 + , stdenv 6 + , fetchFromGitLab 7 + , gitUpdater 8 + }: 9 + stdenv.mkDerivation (finalAttrs: { 10 + pname = "ethercat"; 11 + version = "1.6-alpha"; 12 + 13 + src = fetchFromGitLab { 14 + owner = "etherlab.org"; 15 + repo = "ethercat"; 16 + rev = "refs/tags/${finalAttrs.version}"; 17 + hash = "sha256-kzyA6h0rZFEROLcFZoU+2fIQ/Y0NwtdPuliKDbwkHrE="; 18 + }; 19 + 20 + separateDebugInfo = true; 21 + 22 + nativeBuildInputs = [ autoreconfHook pkg-config ]; 23 + 24 + configureFlags = [ 25 + "--enable-userlib=yes" 26 + "--enable-kernel=no" 27 + ]; 28 + 29 + passthru.updateScript = gitUpdater { }; 30 + 31 + meta = with lib; { 32 + description = "IgH EtherCAT Master for Linux"; 33 + homepage = "https://etherlab.org/ethercat"; 34 + changelog = "https://gitlab.com/etherlab.org/ethercat/-/blob/${finalAttrs.version}/NEWS"; 35 + license = licenses.gpl2Plus; 36 + maintainers = with maintainers; [ stv0g ]; 37 + platforms = [ "x86_64-linux" ]; 38 + }; 39 + })