2010-08-20 12:07:35 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libxml2, libxslt }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-10-08 19:49:10 +02:00
|
|
|
name = "xmlstarlet-1.6.1";
|
2010-08-20 12:07:35 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/xmlstar/${name}.tar.gz";
|
2014-10-08 19:49:10 +02:00
|
|
|
sha256 = "1jp737nvfcf6wyb54fla868yrr39kcbijijmjpyk4lrpyg23in0m";
|
2010-08-20 12:07:35 +02:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ libxml2 libxslt ];
|
2010-08-20 12:07:35 +02:00
|
|
|
|
|
|
|
preConfigure =
|
|
|
|
''
|
2016-04-16 19:40:27 +02:00
|
|
|
export LIBXSLT_PREFIX=${libxslt.dev}
|
2016-08-30 01:57:21 +02:00
|
|
|
export LIBXML_PREFIX=${libxml2.dev}
|
2010-08-20 12:07:35 +02:00
|
|
|
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";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://xmlstar.sourceforge.net/";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2010-08-20 12:07:35 +02:00
|
|
|
};
|
|
|
|
}
|