* Added xmlstarlet.
svn path=/nixpkgs/trunk/; revision=23271
This commit is contained in:
parent
2e230288bf
commit
3be78e74fb
31
pkgs/tools/text/xml/xmlstarlet/default.nix
Normal file
31
pkgs/tools/text/xml/xmlstarlet/default.nix
Normal file
@ -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";
|
||||
};
|
||||
}
|
@ -1341,6 +1341,8 @@ let
|
||||
inherit (gnome) libgnomeprint;
|
||||
};
|
||||
|
||||
xmlstarlet = callPackage ../tools/text/xml/xmlstarlet { };
|
||||
|
||||
xmlto = callPackage ../tools/typesetting/xmlto { };
|
||||
|
||||
xmltv = callPackage ../tools/misc/xmltv { };
|
||||
|
Loading…
Reference in New Issue
Block a user