about summary refs log tree commit diff
path: root/pkgs/development/libraries/tevent
diff options
context:
space:
mode:
authorWanja Zaeske <wanja.zaeske@dlr.de>2023-01-02 20:08:51 +0100
committerwucke13 <wucke13@gmail.com>2023-01-15 22:20:36 +0100
commita36d319f2d85aa7eec06051e6d5b524ad2e66781 (patch)
tree50ecc5d09d5091f9222d43f39785346b954c6786 /pkgs/development/libraries/tevent
parent0b1723ccbf160f7e4dc0cb54798a599ca160267d (diff)
tevent: 0.10.2 -> 0.13.0
Diffstat (limited to 'pkgs/development/libraries/tevent')
-rw-r--r--pkgs/development/libraries/tevent/default.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/development/libraries/tevent/default.nix b/pkgs/development/libraries/tevent/default.nix
index 568751f48aa33..f10235650c4a3 100644
--- a/pkgs/development/libraries/tevent/default.nix
+++ b/pkgs/development/libraries/tevent/default.nix
@@ -2,6 +2,7 @@
 , fetchurl
 , python3
 , pkg-config
+, cmocka
 , readline
 , talloc
 , libxslt
@@ -13,11 +14,11 @@
 
 stdenv.mkDerivation rec {
   pname = "tevent";
-  version = "0.10.2";
+  version = "0.13.0";
 
   src = fetchurl {
     url = "mirror://samba/tevent/${pname}-${version}.tar.gz";
-    sha256 = "15k6i8ad5lpxfjsjyq9h64zlyws8d3cm0vwdnaw8z1xjwli7hhpq";
+    sha256 = "sha256-uUN6kX+lU0Q2G+tk7J4AQumcroh5iCpi3Tj2q+I3HQw=";
   };
 
   nativeBuildInputs = [
@@ -32,10 +33,18 @@ stdenv.mkDerivation rec {
 
   buildInputs = [
     python3
+    cmocka
     readline # required to build python
     talloc
   ];
 
+  # otherwise the configure script fails with
+  # PYTHONHASHSEED=1 missing! Don't use waf directly, use ./configure and make!
+  preConfigure = ''
+    export PKGCONFIG="$PKG_CONFIG"
+    export PYTHONHASHSEED=1
+  '';
+
   wafPath = "buildtools/bin/waf";
 
   wafConfigureFlags = [