diff options
author | Nick Cao <nickcao@nichi.co> | 2023-11-27 23:26:44 -0500 |
---|---|---|
committer | Nick Cao <nickcao@nichi.co> | 2023-11-27 23:27:30 -0500 |
commit | 0461296c62baf3a029b09c2ac39b2977acb24ad6 (patch) | |
tree | 791db8ea5334a02b0ccd93d45e6e6edfae18c4fa /pkgs/tools/text/xml | |
parent | cc0257d0632d2645030f2b22ee8aa96b0c8c1859 (diff) |
xmlstarlet: add autoreconfHook, fix cross compilation
Diffstat (limited to 'pkgs/tools/text/xml')
-rw-r--r-- | pkgs/tools/text/xml/xmlstarlet/default.nix | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/pkgs/tools/text/xml/xmlstarlet/default.nix b/pkgs/tools/text/xml/xmlstarlet/default.nix index 99c97452fe58e..111e95c9508d8 100644 --- a/pkgs/tools/text/xml/xmlstarlet/default.nix +++ b/pkgs/tools/text/xml/xmlstarlet/default.nix @@ -1,4 +1,11 @@ -{ lib, stdenv, fetchurl, pkg-config, libxml2, libxslt }: +{ lib +, stdenv +, fetchurl +, autoreconfHook +, pkg-config +, libxml2 +, libxslt +}: stdenv.mkDerivation rec { pname = "xmlstarlet"; @@ -9,7 +16,7 @@ stdenv.mkDerivation rec { sha256 = "1jp737nvfcf6wyb54fla868yrr39kcbijijmjpyk4lrpyg23in0m"; }; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ autoreconfHook pkg-config ]; buildInputs = [ libxml2 libxslt ]; patches = [ @@ -17,18 +24,16 @@ stdenv.mkDerivation rec { ./fix-incompatible-function-pointer.patch ]; - preConfigure = - '' - export LIBXSLT_PREFIX=${libxslt.dev} - export LIBXML_PREFIX=${libxml2.dev} - export LIBXSLT_LIBS=$(pkg-config --libs libxslt libexslt) - export LIBXML_LIBS=$(pkg-config --libs libxml-2.0) - ''; + preConfigure = '' + export LIBXSLT_PREFIX=${libxslt.dev} + export LIBXML_PREFIX=${libxml2.dev} + export LIBXSLT_LIBS=$($PKG_CONFIG --libs libxslt libexslt) + export LIBXML_LIBS=$($PKG_CONFIG --libs libxml-2.0) + ''; - postInstall = - '' - ln -s xml $out/bin/xmlstarlet - ''; + postInstall = '' + ln -s xml $out/bin/xmlstarlet + ''; meta = { description = "A command line tool for manipulating and querying XML data"; |