2015-10-22 15:16:32 +02:00
|
|
|
{ stdenv, fetchurl, libxml2, gnutls, libxslt, pkgconfig, libgcrypt, libtool
|
|
|
|
, openssl, makeWrapper }:
|
2013-03-31 00:07:35 +01:00
|
|
|
|
|
|
|
let
|
2017-02-13 14:23:07 +01:00
|
|
|
version = "1.2.23";
|
2013-03-31 00:07:35 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "xmlsec-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.aleksey.com/xmlsec/download/xmlsec1-${version}.tar.gz";
|
2017-02-13 14:23:07 +01:00
|
|
|
sha256 = "17qfw5crkqn4v6xbkjxrjvcccfc00dy053892wrwv54qdk8n7m21";
|
2013-03-31 00:07:35 +01:00
|
|
|
};
|
|
|
|
|
2015-10-22 15:16:32 +02:00
|
|
|
buildInputs = [ makeWrapper libxml2 gnutls libxslt pkgconfig libgcrypt libtool openssl ];
|
2013-03-31 00:07:35 +01:00
|
|
|
enableParallelBuilding = true;
|
2015-10-22 15:16:32 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2016-03-29 12:14:31 +02:00
|
|
|
# otherwise libxmlsec1-gnutls.so won't find libgcrypt.so, after #909
|
|
|
|
NIX_LDFLAGS = [ "-lgcrypt" ];
|
|
|
|
|
2015-10-22 15:16:32 +02:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram "$out/bin/xmlsec1" --prefix LD_LIBRARY_PATH ":" "$out/lib"
|
|
|
|
'';
|
2013-03-31 00:07:35 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.aleksey.com/xmlsec;
|
|
|
|
description = "XML Security Library in C based on libxml2";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2015-09-23 06:25:53 +02:00
|
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
2013-03-31 00:07:35 +01:00
|
|
|
};
|
|
|
|
}
|