Skip to content

Commit

Permalink
Merge pull request #218525 from amjoseph-nixpkgs/pr/baresip/cross
Browse files Browse the repository at this point in the history
baresip: use cmake for configurePhase, fixes cross
  • Loading branch information
Adam Joseph authored Mar 21, 2023
2 parents 6c93d2d + 1682265 commit b405738
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
, spandsp3
, libuuid
, libvpx
, cmake
, dbusSupport ? true
}:
stdenv.mkDerivation rec {
version = "2.9.0";
Expand All @@ -33,7 +35,10 @@ stdenv.mkDerivation rec {
rev = "v${version}";
sha256 = "sha256-B4d8D4IfLYAIYVN80Lrh5bywD5iacSnUVwEzbc6Xq7g=";
};
nativeBuildInputs = [ pkg-config ];
prePatch = lib.optionalString (!dbusSupport) ''
substituteInPlace cmake/modules.cmake --replace 'list(APPEND MODULES ctrl_dbus)' ""
'';
nativeBuildInputs = [ pkg-config cmake ];
buildInputs = [
zlib
openssl
Expand All @@ -56,9 +61,14 @@ stdenv.mkDerivation rec {
libuuid
libvpx
] ++ (with gst_all_1; [ gstreamer gst-libav gst-plugins-base gst-plugins-bad gst-plugins-good ]);

cmakeFlags = [
"-DCMAKE_SKIP_BUILD_RPATH=ON"
"-Dre_DIR=${libre}/include/re"
];

makeFlags = [
"LIBRE_MK=${libre}/share/re/re.mk"
"LIBRE_INC=${libre}/include/re"
"LIBRE_SO=${libre}/lib"
"LIBREM_PATH=${librem}"
"PREFIX=$(out)"
Expand Down

0 comments on commit b405738

Please sign in to comment.