blob: aea3ab2bd9683599fe9439c92f77e7387c692737 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
{ stdenv, fetchurl, pkgconfig, libxml2, libxslt }:
stdenv.mkDerivation rec {
name = "xmlstarlet-1.5.0";
src = fetchurl {
url = "mirror://sourceforge/xmlstar/${name}.tar.gz";
sha256 = "1fmvqvzrzyfcg53j39sdz01v7klzyhd011m3y9br54525q2fvd27";
};
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 = stdenv.lib.licenses.mit;
};
}
|