1{ stdenv, fetchurl, libxml2, gnutls, libxslt, pkgconfig, libgcrypt, libtool
2, openssl, makeWrapper }:
3
4let
5 version = "1.2.20";
6in
7stdenv.mkDerivation rec {
8 name = "xmlsec-${version}";
9
10 src = fetchurl {
11 url = "http://www.aleksey.com/xmlsec/download/xmlsec1-${version}.tar.gz";
12 sha256 = "01bkbv2y3x8d1sf4dcln1x3y2jyj391s3208d9a2ndhglly5j89j";
13 };
14
15 buildInputs = [ makeWrapper libxml2 gnutls libxslt pkgconfig libgcrypt libtool openssl ];
16 enableParallelBuilding = true;
17 doCheck = true;
18
19 postFixup = ''
20 wrapProgram "$out/bin/xmlsec1" --prefix LD_LIBRARY_PATH ":" "$out/lib"
21 '';
22
23 meta = {
24 homepage = http://www.aleksey.com/xmlsec;
25 description = "XML Security Library in C based on libxml2";
26 license = stdenv.lib.licenses.mit;
27 platforms = with stdenv.lib.platforms; linux ++ darwin;
28 };
29}