1 { stdenv, lib, fetchFromGitHub, cmake }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "10ndzkip8blgkw572n3dicl6mgjaa7kygwn3vls80liq92vf1sa9";
15 # usrsctp fails to build with clang 15+ due to set but unused variable and missing prototype
16 # errors. These issues are fixed in the master branch, but a new release with them has not
17 # been made. The following patch can be dropped once a release has been made.
18 ./clang-fix-build.patch
21 nativeBuildInputs = [ cmake ];
23 # https://github.com/sctplab/usrsctp/issues/662
25 substituteInPlace usrsctplib/CMakeLists.txt \
26 --replace '$'{exec_prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \
27 --replace '$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR}
31 homepage = "https://github.com/sctplab/usrsctp";
32 description = "A portable SCTP userland stack";
33 maintainers = with maintainers; [ misuzu ];
34 license = licenses.bsd3;
35 platforms = platforms.unix;