2015-10-22 14:16:32 +01:00
|
|
|
{ stdenv, fetchurl, libxml2, gnutls, libxslt, pkgconfig, libgcrypt, libtool
|
2017-09-16 19:28:26 +01:00
|
|
|
, openssl, nss, makeWrapper }:
|
2013-03-30 23:07:35 +00:00
|
|
|
|
|
|
|
let
|
2019-05-04 18:42:55 +01:00
|
|
|
version = "1.2.28";
|
2013-03-30 23:07:35 +00:00
|
|
|
in
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "xmlsec";
|
|
|
|
inherit version;
|
2013-03-30 23:07:35 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://www.aleksey.com/xmlsec/download/xmlsec1-${version}.tar.gz";
|
2019-05-04 18:42:55 +01:00
|
|
|
sha256 = "1m12caglhyx08g8lh2sl3nkldlpryzdx2d572q73y3m33s0w9vhk";
|
2013-03-30 23:07:35 +00:00
|
|
|
};
|
|
|
|
|
2017-09-25 18:49:21 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2017-09-28 17:32:57 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ libxml2 gnutls libxslt libgcrypt libtool openssl nss ];
|
2017-09-25 18:49:21 +01:00
|
|
|
|
2013-03-30 23:07:35 +00:00
|
|
|
enableParallelBuilding = true;
|
2015-10-22 14:16:32 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2017-09-18 16:47:21 +01:00
|
|
|
# enable deprecated soap headers required by lasso
|
|
|
|
# https://dev.entrouvert.org/issues/18771
|
|
|
|
configureFlags = [ "--enable-soap" ];
|
|
|
|
|
2016-03-29 11:14:31 +01:00
|
|
|
# otherwise libxmlsec1-gnutls.so won't find libgcrypt.so, after #909
|
2019-10-30 02:23:29 +00:00
|
|
|
NIX_LDFLAGS = "-lgcrypt";
|
2016-03-29 11:14:31 +01:00
|
|
|
|
2017-09-25 18:49:21 +01:00
|
|
|
postInstall = ''
|
|
|
|
moveToOutput "bin/xmlsec1-config" "$dev"
|
|
|
|
moveToOutput "lib/xmlsec1Conf.sh" "$dev"
|
|
|
|
'';
|
|
|
|
|
2015-10-22 14:16:32 +01:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram "$out/bin/xmlsec1" --prefix LD_LIBRARY_PATH ":" "$out/lib"
|
|
|
|
'';
|
2013-03-30 23:07:35 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.aleksey.com/xmlsec";
|
|
|
|
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 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.mit;
|
2015-09-23 05:25:53 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
2017-09-16 19:28:26 +01:00
|
|
|
updateWalker = true;
|
2013-03-30 23:07:35 +00:00
|
|
|
};
|
|
|
|
}
|