diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-08-20 10:07:35 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-08-20 10:07:35 +0000 |
commit | 3be78e74fbb96f974bbd00d093cbc07dab6a8877 (patch) | |
tree | 50fe732c595278b0e76a97e20d4cde7b38124ef1 /pkgs/tools/text/xml | |
parent | 2e230288bf1050c59139c3543ef5a88c6beef329 (diff) |
* Added xmlstarlet.
svn path=/nixpkgs/trunk/; revision=23271
Diffstat (limited to 'pkgs/tools/text/xml')
-rw-r--r-- | pkgs/tools/text/xml/xmlstarlet/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/text/xml/xmlstarlet/default.nix b/pkgs/tools/text/xml/xmlstarlet/default.nix new file mode 100644 index 0000000000000..ffeb9a8cd7c1b --- /dev/null +++ b/pkgs/tools/text/xml/xmlstarlet/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl, pkgconfig, libxml2, libxslt }: + +stdenv.mkDerivation rec { + name = "xmlstarlet-1.0.2"; + + src = fetchurl { + url = "mirror://sourceforge/xmlstar/${name}.tar.gz"; + sha256 = "07a5c3fhqpvyy07pggl3ky7ahvlcpsmppy71x4h4albvanfbpjwj"; + }; + + 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/; + license = "bsd"; + }; +} |