@@ -1,4 +1,4 @@
1−{ fetchFromGitHub, lib, stdenv, autoreconfHook, pkg-config, libxml2, gd, glib, getopt, libxslt, nix }:
1+{ fetchFromGitHub, lib, stdenv, autoreconfHook, pkg-config, libxml2, gd, glib, getopt, libxslt, nix, bash}:
22
33stdenv.mkDerivation {
44 pname = "libnixxml";
@@ -11,11 +11,15 @@ stdenv.mkDerivation {
1111 sha256 = "sha256-HKQnCkO1TDs1e0MDil0Roq4YRembqRHQvb7lK3GAftQ=";
1212 };
1313
14− postPatch = ''
14+ prePatch = ''
1515 # Remove broken test
1616 substituteInPlace tests/draw/Makefile.am \
1717 --replace "draw-wrong.sh" ""
1818 rm tests/draw/draw-wrong.sh
19+
20+ # Fix bash path
21+ substituteInPlace scripts/nixexpr2xml.in \
22+ --replace "/bin/bash" "${bash}/bin/bash"
1923 '';
2024
2125 preAutoreconf = ''
@@ -35,6 +39,7 @@ stdenv.mkDerivation {
3539 libxslt
3640 ];
3741 buildInputs = [
42+ bash
3843 libxml2
3944 gd.dev
4045 glib