Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 autoreconfHook, 3 lib, 4 pkg-config, 5 stdenv, 6 fetchFromGitLab, 7 gitUpdater, 8}: 9stdenv.mkDerivation (finalAttrs: { 10 pname = "ethercat"; 11 version = "1.6.6"; 12 13 src = fetchFromGitLab { 14 owner = "etherlab.org"; 15 repo = "ethercat"; 16 rev = "refs/tags/${finalAttrs.version}"; 17 hash = "sha256-11Y4qGJlbZYnFZ3pI18kjE2aIht30ZtN4eTsYhWqg+g="; 18 }; 19 20 separateDebugInfo = true; 21 22 nativeBuildInputs = [ 23 autoreconfHook 24 pkg-config 25 ]; 26 27 configureFlags = [ 28 "--enable-userlib=yes" 29 "--enable-kernel=no" 30 ]; 31 32 passthru.updateScript = gitUpdater { }; 33 34 meta = with lib; { 35 description = "IgH EtherCAT Master for Linux"; 36 homepage = "https://etherlab.org/ethercat"; 37 changelog = "https://gitlab.com/etherlab.org/ethercat/-/blob/${finalAttrs.version}/NEWS"; 38 license = licenses.gpl2Plus; 39 maintainers = with maintainers; [ stv0g ]; 40 platforms = [ "x86_64-linux" ]; 41 }; 42})