Merge pull request #237358 from figsoda/cannelloni

This commit is contained in:
figsoda 2023-06-12 11:22:18 -04:00 committed by GitHub
commit 3079a556f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
{ stdenv, lib, fetchFromGitHub, cmake, lksctp-tools, sctpSupport ? true }:
{ lib, stdenv, fetchFromGitHub, cmake, lksctp-tools, sctpSupport ? true }:
stdenv.mkDerivation (finalAttrs: {
pname = "cannelloni";
version = "1.1.0";
@ -8,10 +9,14 @@ stdenv.mkDerivation (finalAttrs: {
rev = "v${finalAttrs.version}";
hash = "sha256-pAXHo9NCXMFKYcIJogytBiPkQE0nK6chU5TKiDNCKA8=";
};
buildInputs = [ cmake ] ++ lib.optionals sctpSupport [ lksctp-tools ];
nativeBuildInputs = [
cmake
];
buildInputs = lib.optionals sctpSupport [ lksctp-tools ];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
"-DSCTP_SUPPORT=${lib.boolToString sctpSupport}"
];