2015-10-22 06:16:32 -07:00
|
|
|
{ stdenv, fetchurl, libxml2, gnutls, libxslt, pkgconfig, libgcrypt, libtool
|
2017-09-16 11:28:26 -07:00
|
|
|
, openssl, nss, makeWrapper }:
|
2013-03-30 16:07:35 -07:00
|
|
|
|
|
|
|
let
|
2017-09-16 11:28:26 -07:00
|
|
|
version = "1.2.25";
|
2013-03-30 16:07:35 -07:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "xmlsec-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.aleksey.com/xmlsec/download/xmlsec1-${version}.tar.gz";
|
2017-09-16 11:28:26 -07:00
|
|
|
sha256 = "1lpwj8dxwhha54sby0v5axjk79h56jnhjjiwiasbbk15vwzahz4n";
|
2013-03-30 16:07:35 -07:00
|
|
|
};
|
|
|
|
|
2017-09-16 11:28:26 -07:00
|
|
|
buildInputs = [ makeWrapper libxml2 gnutls libxslt pkgconfig libgcrypt libtool openssl nss ];
|
2013-03-30 16:07:35 -07:00
|
|
|
enableParallelBuilding = true;
|
2015-10-22 06:16:32 -07:00
|
|
|
doCheck = true;
|
|
|
|
|
2017-09-18 08:47:21 -07:00
|
|
|
# enable deprecated soap headers required by lasso
|
|
|
|
# https://dev.entrouvert.org/issues/18771
|
|
|
|
configureFlags = [ "--enable-soap" ];
|
|
|
|
|
2016-03-29 03:14:31 -07:00
|
|
|
# otherwise libxmlsec1-gnutls.so won't find libgcrypt.so, after #909
|
|
|
|
NIX_LDFLAGS = [ "-lgcrypt" ];
|
|
|
|
|
2015-10-22 06:16:32 -07:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram "$out/bin/xmlsec1" --prefix LD_LIBRARY_PATH ":" "$out/lib"
|
|
|
|
'';
|
2013-03-30 16:07:35 -07:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.aleksey.com/xmlsec;
|
2017-09-16 11:28:26 -07:00
|
|
|
downloadPage = https://www.aleksey.com/xmlsec/download.html;
|
2013-03-30 16:07:35 -07:00
|
|
|
description = "XML Security Library in C based on libxml2";
|
2014-06-18 21:19:00 -07:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2015-09-22 21:25:53 -07:00
|
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
2017-09-16 11:28:26 -07:00
|
|
|
updateWalker = true;
|
2013-03-30 16:07:35 -07:00
|
|
|
};
|
|
|
|
}
|