2010-08-20 11:07:35 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libxml2, libxslt }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-10-08 18:49:10 +01:00
|
|
|
name = "xmlstarlet-1.6.1";
|
2010-08-20 11:07:35 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/xmlstar/${name}.tar.gz";
|
2014-10-08 18:49:10 +01:00
|
|
|
sha256 = "1jp737nvfcf6wyb54fla868yrr39kcbijijmjpyk4lrpyg23in0m";
|
2010-08-20 11:07:35 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pkgconfig libxml2 libxslt ];
|
|
|
|
|
|
|
|
preConfigure =
|
|
|
|
''
|
|
|
|
export LIBXSLT_PREFIX=${libxslt}
|
|
|
|
export LIBXML_PREFIX=${libxml2}
|
|
|
|
export LIBXSLT_LIBS=$(pkg-config --libs libxslt libexslt)
|
|
|
|
export LIBXML_LIBS=$(pkg-config --libs libxml-2.0)
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
ln -s xml $out/bin/xmlstarlet
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A command line tool for manipulating and querying XML data";
|
|
|
|
homepage = http://xmlstar.sourceforge.net/;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2010-08-20 11:07:35 +01:00
|
|
|
};
|
|
|
|
}
|