11 stdenv.mkDerivation rec {
16 url = "mirror://sourceforge/xmlstar/xmlstarlet-${version}.tar.gz";
17 sha256 = "1jp737nvfcf6wyb54fla868yrr39kcbijijmjpyk4lrpyg23in0m";
20 nativeBuildInputs = [ autoreconfHook pkg-config ];
21 buildInputs = [ libxml2 libxslt ];
25 name = "0001-Fix-build-with-libxml2-2.12.patch";
26 url = "https://sourceforge.net/p/xmlstar/patches/_discuss/thread/890e29655a/66ca/attachment/0001-Fix-build-with-libxml2-2.12.patch";
27 hash = "sha256-XEk7aFOdrzdec1j2ffERJQbLH0AUNJA52QwA9jf4XWA=";
32 export LIBXSLT_PREFIX=${libxslt.dev}
33 export LIBXML_PREFIX=${libxml2.dev}
34 export LIBXSLT_LIBS=$($PKG_CONFIG --libs libxslt libexslt)
35 export LIBXML_LIBS=$($PKG_CONFIG --libs libxml-2.0)
39 ln -s xml $out/bin/xmlstarlet
43 description = "Command line tool for manipulating and querying XML data";
44 homepage = "https://xmlstar.sourceforge.net/";
45 license = lib.licenses.mit;
46 mainProgram = "xmlstarlet";
47 platforms = lib.platforms.unix;