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