1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 23:10:02 +00:00
nixpkgs/pkgs/development/libraries/xmlsec/default.nix
Peter Simons 31b4bfe649 Revert "xmlsec: 1.2.25 -> 1.2.26 (#41655)"
This reverts commit 45eeb24701. This update
broke the build of libreoffice.

See https://github.com/NixOS/nixpkgs/issues/37619.

Ping @ryantm.
2018-06-14 17:48:38 +02:00

49 lines
1.3 KiB
Nix

{ stdenv, fetchurl, libxml2, gnutls, libxslt, pkgconfig, libgcrypt, libtool
, openssl, nss, makeWrapper }:
let
version = "1.2.25";
in
stdenv.mkDerivation rec {
name = "xmlsec-${version}";
src = fetchurl {
url = "http://www.aleksey.com/xmlsec/download/xmlsec1-${version}.tar.gz";
sha256 = "1lpwj8dxwhha54sby0v5axjk79h56jnhjjiwiasbbk15vwzahz4n";
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [ makeWrapper 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"
'';
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;
platforms = with stdenv.lib.platforms; linux ++ darwin;
updateWalker = true;
};
}