forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#298581 from stv0g/add-ethercat
ethercat: init at 1.6-alpha
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ]; | ||
}; | ||
}) |