about summary refs log tree commit diff
path: root/pkgs/development/libraries/tevent
diff options
context:
space:
mode:
authorArtturin <Artturin@artturin.com>2023-02-11 17:03:26 +0200
committerArtturin <Artturin@artturin.com>2023-02-11 17:20:13 +0200
commit30826d6035ffff0ccc16b53f5f42111661214882 (patch)
tree40d34469f368a2c3e4f29acf78b3e23ca1f6642d /pkgs/development/libraries/tevent
parentd4e299de09ab7401629340ec903056af066b6f93 (diff)
tevent: copy cross fix from talloc & add libxcrypt
testing pyembed configuration : Could not build a python embedded interpreter

tevent-aarch64-unknown-linux-gnu> In file included from ../../pytevent.c:26:
tevent-aarch64-unknown-linux-gnu> ../../lib/replace/replace.h:885:10: fatal error: crypt.h: No such file or directory
tevent-aarch64-unknown-linux-gnu>   885 | #include <crypt.h>
tevent-aarch64-unknown-linux-gnu>       |          ^~~~~~~~~
tevent-aarch64-unknown-linux-gnu> compilation terminated.
Diffstat (limited to 'pkgs/development/libraries/tevent')
-rw-r--r--pkgs/development/libraries/tevent/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/libraries/tevent/default.nix b/pkgs/development/libraries/tevent/default.nix
index f10235650c4a3..7b798d00b01e1 100644
--- a/pkgs/development/libraries/tevent/default.nix
+++ b/pkgs/development/libraries/tevent/default.nix
@@ -10,6 +10,7 @@
 , docbook_xml_dtd_42
 , which
 , wafHook
+, libxcrypt
 }:
 
 stdenv.mkDerivation rec {
@@ -36,6 +37,7 @@ stdenv.mkDerivation rec {
     cmocka
     readline # required to build python
     talloc
+    libxcrypt
   ];
 
   # otherwise the configure script fails with
@@ -52,6 +54,11 @@ stdenv.mkDerivation rec {
     "--builtin-libraries=replace"
   ];
 
+  # python-config from build Python gives incorrect values when cross-compiling.
+  # If python-config is not found, the build falls back to using the sysconfig
+  # module, which works correctly in all cases.
+  PYTHON_CONFIG = "/invalid";
+
   meta = with lib; {
     description = "An event system based on the talloc memory management library";
     homepage = "https://tevent.samba.org/";