Skip to content

Commit

Permalink
libnixxml: patch /bin/bash path
Browse files Browse the repository at this point in the history
  • Loading branch information
Mindavi authored and tomberek committed May 12, 2021
1 parent bf434ca commit 3d770c1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pkgs/development/libraries/libnixxml/default.nix
@@ -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 {
pname = "libnixxml";
Expand All @@ -11,11 +11,15 @@ stdenv.mkDerivation {
sha256 = "sha256-HKQnCkO1TDs1e0MDil0Roq4YRembqRHQvb7lK3GAftQ=";
};

postPatch = ''
prePatch = ''
# Remove broken test
substituteInPlace tests/draw/Makefile.am \
--replace "draw-wrong.sh" ""
rm tests/draw/draw-wrong.sh
# Fix bash path
substituteInPlace scripts/nixexpr2xml.in \
--replace "/bin/bash" "${bash}/bin/bash"
'';

preAutoreconf = ''
Expand All @@ -35,6 +39,7 @@ stdenv.mkDerivation {
libxslt
];
buildInputs = [
bash
libxml2
gd.dev
glib
Expand Down

0 comments on commit 3d770c1

Please sign in to comment.