1 { lib, stdenv, fetchFromGitHub, cmake, lksctp-tools, sctpSupport ? true }:
3 stdenv.mkDerivation (finalAttrs: {
6 src = fetchFromGitHub {
9 rev = "v${finalAttrs.version}";
10 hash = "sha256-pAXHo9NCXMFKYcIJogytBiPkQE0nK6chU5TKiDNCKA8=";
17 buildInputs = lib.optionals sctpSupport [ lksctp-tools ];
20 "-DSCTP_SUPPORT=${lib.boolToString sctpSupport}"
24 description = "SocketCAN over Ethernet tunnel";
25 mainProgram = "cannelloni";
26 homepage = "https://github.com/mguentner/cannelloni";
27 platforms = platforms.linux;
28 license = licenses.gpl2Only;
29 maintainers = [ maintainers.samw ];