Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
48 lines
978 B
Nix
48 lines
978 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
lksctp-tools,
|
|
sctpSupport ? true,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "cannelloni";
|
|
version = "2.0.0";
|
|
src = fetchFromGitHub {
|
|
owner = "mguentner";
|
|
repo = "cannelloni";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-b3pBC2XFK+pyONvnkPw/0YUXAG2cRD1OaN7k2ONzFV8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = lib.optionals sctpSupport [ lksctp-tools ];
|
|
|
|
cmakeFlags = [
|
|
"-DSCTP_SUPPORT=${lib.boolToString sctpSupport}"
|
|
];
|
|
|
|
nativeInstallInputs = [
|
|
versionCheckHook
|
|
];
|
|
doInstallCheck = true;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "SocketCAN over Ethernet tunnel";
|
|
mainProgram = "cannelloni";
|
|
homepage = "https://github.com/mguentner/cannelloni";
|
|
platforms = lib.platforms.linux;
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = [ lib.maintainers.samw ];
|
|
};
|
|
})
|