@@ -11,17 +11,40 @@ stdenv.mkDerivation {
1111 sha256 = "sha256-HKQnCkO1TDs1e0MDil0Roq4YRembqRHQvb7lK3GAftQ=";
1212 };
1313
14− preConfigure = ''
15− ./bootstrap
14+ postPatch = ''
15+ # Remove broken test
16+ substituteInPlace tests/draw/Makefile.am \
17+ --replace "draw-wrong.sh" ""
18+ rm tests/draw/draw-wrong.sh
19+ '';
20+
21+ preAutoreconf = ''
22+ # Copied from bootstrap script
23+ ln -s README.md README
24+ mkdir -p config
1625 '';
1726
1827 configureFlags = [ "--with-gd" "--with-glib" ];
1928 CFLAGS = "-Wall";
2029
21− nativeBuildInputs = [ autoreconfHook pkg-config ];
22− buildInputs = [ libxml2 gd.dev glib getopt libxslt nix ];
30+ strictDeps = true;
31+ nativeBuildInputs = [
32+ autoreconfHook
33+ pkg-config
34+ getopt
35+ libxslt
36+ ];
37+ buildInputs = [
38+ libxml2
39+ gd.dev
40+ glib
41+ nix
42+ ];
43+ checkInputs = [
44+ nix
45+ ];
2346
24− doCheck = false;
47+ doCheck = true;
2548
2649 meta = with lib; {
2750 description = "XML-based Nix-friendly data integration library";