about summary refs log tree commit diff
path: root/pkgs/development/libraries/libre
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2023-02-26 14:54:26 -0800
committerAdam Joseph <adam@westernsemico.com>2023-02-26 14:57:13 -0800
commit5a65a419627fa1746fac2d8b1a7219a47908e781 (patch)
treeb003e14cf554c38eb5913251ec8aa259404f9116 /pkgs/development/libraries/libre
parenta4c8109f60bf61a7f77f0bb580c6411cf794f0bb (diff)
libre: use cmake for configurePhase
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.
Diffstat (limited to 'pkgs/development/libraries/libre')
-rw-r--r--pkgs/development/libraries/libre/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libre/default.nix b/pkgs/development/libraries/libre/default.nix
index 7ed03f0af1179..bc33f5d2e0453 100644
--- a/pkgs/development/libraries/libre/default.nix
+++ b/pkgs/development/libraries/libre/default.nix
@@ -1,4 +1,6 @@
-{ lib, stdenv, fetchFromGitHub, zlib, openssl }:
+{ lib, stdenv, fetchFromGitHub, zlib, openssl
+, cmake }:
+
 stdenv.mkDerivation rec {
   version = "2.9.0";
   pname = "libre";
@@ -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}"