Skip to content

Commit

Permalink
libre: use cmake for configurePhase
Browse files Browse the repository at this point in the history
Although libre is a cmake-based project, our expression for this
library does not currently use cmake for the configurePhase.  This
commit causes it to do so.

This is necessary to get downstream libre and baresip to cross-compile.
  • Loading branch information
Adam Joseph committed Feb 26, 2023
1 parent a4c8109 commit 5a65a41
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/development/libraries/libre/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{ lib, stdenv, fetchFromGitHub, zlib, openssl }:
{ lib, stdenv, fetchFromGitHub, zlib, openssl
, cmake }:

stdenv.mkDerivation rec {
version = "2.9.0";
pname = "libre";
Expand All @@ -9,6 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "sha256-YNAfHmohMqGGF8N/VdndJJ32PF/GMBoNtjo/t2lt6HA=";
};
buildInputs = [ zlib openssl ];
nativeBuildInputs = [ cmake ];
makeFlags = [ "USE_ZLIB=1" "USE_OPENSSL=1" "PREFIX=$(out)" ]
++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}"
++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${lib.getDev stdenv.cc.libc}"
Expand Down

0 comments on commit 5a65a41

Please sign in to comment.