at v192 31 lines 793 B view raw
1{ stdenv, fetchurl, pkgconfig, libxml2, libxslt }: 2 3stdenv.mkDerivation rec { 4 name = "xmlstarlet-1.6.1"; 5 6 src = fetchurl { 7 url = "mirror://sourceforge/xmlstar/${name}.tar.gz"; 8 sha256 = "1jp737nvfcf6wyb54fla868yrr39kcbijijmjpyk4lrpyg23in0m"; 9 }; 10 11 buildInputs = [ pkgconfig libxml2 libxslt ]; 12 13 preConfigure = 14 '' 15 export LIBXSLT_PREFIX=${libxslt} 16 export LIBXML_PREFIX=${libxml2} 17 export LIBXSLT_LIBS=$(pkg-config --libs libxslt libexslt) 18 export LIBXML_LIBS=$(pkg-config --libs libxml-2.0) 19 ''; 20 21 postInstall = 22 '' 23 ln -s xml $out/bin/xmlstarlet 24 ''; 25 26 meta = { 27 description = "A command line tool for manipulating and querying XML data"; 28 homepage = http://xmlstar.sourceforge.net/; 29 license = stdenv.lib.licenses.mit; 30 }; 31}