Unverified Commit 3bfd1d9f authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

Merge pull request #222367 from wlcx/init-cannelloni

cannelloni: init at 1.1.0
parents 91667290 d9a45f20
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
{ 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 ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -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 { };