3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/xmlsec/default.nix
Fabian Möller be4406edee
xmlsec: add library path to lt_dladdsearchdir
This makes it easier to use libxmlsec in other libraries like
python-xmlsec.
2019-09-11 10:00:56 +02:00

53 lines
1.3 KiB
Nix

{ stdenv, fetchurl, libxml2, gnutls, libxslt, pkgconfig, libgcrypt, libtool
, openssl, nss }:
let
version = "1.2.28";
in
stdenv.mkDerivation {
pname = "xmlsec";
inherit version;
src = fetchurl {
url = "https://www.aleksey.com/xmlsec/download/xmlsec1-${version}.tar.gz";
sha256 = "1m12caglhyx08g8lh2sl3nkldlpryzdx2d572q73y3m33s0w9vhk";
};
patches = [
./lt_dladdsearchdir.patch
];
postPatch = ''
substituteAllInPlace src/dl.c
'';
outputs = [ "out" "dev" ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ libxml2 gnutls libxslt libgcrypt libtool openssl nss ];
enableParallelBuilding = true;
doCheck = true;
# enable deprecated soap headers required by lasso
# https://dev.entrouvert.org/issues/18771
configureFlags = [ "--enable-soap" ];
# otherwise libxmlsec1-gnutls.so won't find libgcrypt.so, after #909
NIX_LDFLAGS = [ "-lgcrypt" ];
postInstall = ''
moveToOutput "bin/xmlsec1-config" "$dev"
moveToOutput "lib/xmlsec1Conf.sh" "$dev"
'';
meta = {
homepage = http://www.aleksey.com/xmlsec;
downloadPage = https://www.aleksey.com/xmlsec/download.html;
description = "XML Security Library in C based on libxml2";
license = stdenv.lib.licenses.mit;
platforms = with stdenv.lib.platforms; linux ++ darwin;
updateWalker = true;
};
}