diff --git a/pkgs/os-specific/linux/cannelloni/default.nix b/pkgs/os-specific/linux/cannelloni/default.nix new file mode 100644 index 000000000000..fb7ad90259be --- /dev/null +++ b/pkgs/os-specific/linux/cannelloni/default.nix @@ -0,0 +1,25 @@ +{ stdenv, lib, fetchFromGitHub, cmake, lksctp-tools, sctpSupport ? true }: +stdenv.mkDerivation (finalAttrs: { + pname = "cannelloni"; + version = "1.1.0"; + src = fetchFromGitHub { + owner = "mguentner"; + repo = "cannelloni"; + rev = "v${finalAttrs.version}"; + hash = "sha256-pAXHo9NCXMFKYcIJogytBiPkQE0nK6chU5TKiDNCKA8="; + }; + buildInputs = [ cmake ] ++ lib.optionals sctpSupport [ lksctp-tools ]; + + cmakeFlags = [ + "-DCMAKE_BUILD_TYPE=Release" + "-DSCTP_SUPPORT=${lib.boolToString sctpSupport}" + ]; + + meta = with lib; { + description = "A SocketCAN over Ethernet tunnel"; + homepage = "https://github.com/mguentner/cannelloni"; + platforms = platforms.linux; + license = licenses.gpl2Only; + maintainers = [ maintainers.samw ]; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 02655c72d66a..5c6cbd190f05 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6241,6 +6241,8 @@ with pkgs; can-utils = callPackage ../os-specific/linux/can-utils { }; + cannelloni = callPackage ../os-specific/linux/cannelloni { }; + caudec = callPackage ../applications/audio/caudec { }; ccd2iso = callPackage ../tools/cd-dvd/ccd2iso { };