libnixxml: patch /bin/bash path
This commit is contained in:
parent
bf434ca1a1
commit
3d770c1aa5
|
@ -1,4 +1,4 @@
|
||||||
{ fetchFromGitHub, lib, stdenv, autoreconfHook, pkg-config, libxml2, gd, glib, getopt, libxslt, nix }:
|
{ fetchFromGitHub, lib, stdenv, autoreconfHook, pkg-config, libxml2, gd, glib, getopt, libxslt, nix, bash}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "libnixxml";
|
pname = "libnixxml";
|
||||||
|
@ -11,11 +11,15 @@ stdenv.mkDerivation {
|
||||||
sha256 = "sha256-HKQnCkO1TDs1e0MDil0Roq4YRembqRHQvb7lK3GAftQ=";
|
sha256 = "sha256-HKQnCkO1TDs1e0MDil0Roq4YRembqRHQvb7lK3GAftQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
prePatch = ''
|
||||||
# Remove broken test
|
# Remove broken test
|
||||||
substituteInPlace tests/draw/Makefile.am \
|
substituteInPlace tests/draw/Makefile.am \
|
||||||
--replace "draw-wrong.sh" ""
|
--replace "draw-wrong.sh" ""
|
||||||
rm tests/draw/draw-wrong.sh
|
rm tests/draw/draw-wrong.sh
|
||||||
|
|
||||||
|
# Fix bash path
|
||||||
|
substituteInPlace scripts/nixexpr2xml.in \
|
||||||
|
--replace "/bin/bash" "${bash}/bin/bash"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preAutoreconf = ''
|
preAutoreconf = ''
|
||||||
|
@ -35,6 +39,7 @@ stdenv.mkDerivation {
|
||||||
libxslt
|
libxslt
|
||||||
];
|
];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
bash
|
||||||
libxml2
|
libxml2
|
||||||
gd.dev
|
gd.dev
|
||||||
glib
|
glib
|
||||||
|
|
Loading…
Reference in New Issue