nixpkgs/pkgs/development/libraries/xmlsec/default.nix

50 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, libxml2, gnutls, libxslt, pkgconfig, libgcrypt, libtool
, openssl, nss, makeWrapper }:
let
version = "1.2.28";
in
stdenv.mkDerivation rec {
2019-08-13 22:52:01 +01:00
pname = "xmlsec";
inherit version;
src = fetchurl {
url = "https://www.aleksey.com/xmlsec/download/xmlsec1-${version}.tar.gz";
sha256 = "1m12caglhyx08g8lh2sl3nkldlpryzdx2d572q73y3m33s0w9vhk";
};
2017-09-25 18:49:21 +01:00
outputs = [ "out" "dev" ];
nativeBuildInputs = [ makeWrapper pkgconfig ];
buildInputs = [ libxml2 gnutls libxslt libgcrypt libtool openssl nss ];
2017-09-25 18:49:21 +01:00
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" ];
2017-09-25 18:49:21 +01:00
postInstall = ''
moveToOutput "bin/xmlsec1-config" "$dev"
moveToOutput "lib/xmlsec1Conf.sh" "$dev"
'';
postFixup = ''
wrapProgram "$out/bin/xmlsec1" --prefix LD_LIBRARY_PATH ":" "$out/lib"
'';
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;
2015-09-23 05:25:53 +01:00
platforms = with stdenv.lib.platforms; linux ++ darwin;
updateWalker = true;
};
}