nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv
2, fetchurl
3, python3
4, pkg-config
5, readline
6, talloc
7, libxslt
8, docbook-xsl-nons
9, docbook_xml_dtd_42
10, which
11, wafHook
12}:
13
14stdenv.mkDerivation rec {
15 pname = "tevent";
16 version = "0.10.2";
17
18 src = fetchurl {
19 url = "mirror://samba/tevent/${pname}-${version}.tar.gz";
20 sha256 = "15k6i8ad5lpxfjsjyq9h64zlyws8d3cm0vwdnaw8z1xjwli7hhpq";
21 };
22
23 nativeBuildInputs = [
24 pkg-config
25 which
26 python3
27 libxslt
28 docbook-xsl-nons
29 docbook_xml_dtd_42
30 wafHook
31 ];
32
33 buildInputs = [
34 python3
35 readline # required to build python
36 talloc
37 ];
38
39 wafPath = "buildtools/bin/waf";
40
41 wafConfigureFlags = [
42 "--bundled-libraries=NONE"
43 "--builtin-libraries=replace"
44 ];
45
46 meta = with lib; {
47 description = "An event system based on the talloc memory management library";
48 homepage = "https://tevent.samba.org/";
49 license = licenses.lgpl3Plus;
50 platforms = platforms.all;
51 };
52}