1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-01 18:12:46 +00:00
nixpkgs/pkgs/development/libraries/xmlsec/default.nix

33 lines
935 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libxml2, gnutls, libxslt, pkgconfig, libgcrypt, libtool
, openssl, makeWrapper }:
let
2014-10-08 18:52:38 +01:00
version = "1.2.20";
in
stdenv.mkDerivation rec {
name = "xmlsec-${version}";
src = fetchurl {
url = "http://www.aleksey.com/xmlsec/download/xmlsec1-${version}.tar.gz";
2014-10-08 18:52:38 +01:00
sha256 = "01bkbv2y3x8d1sf4dcln1x3y2jyj391s3208d9a2ndhglly5j89j";
};
buildInputs = [ makeWrapper libxml2 gnutls libxslt pkgconfig libgcrypt libtool openssl ];
enableParallelBuilding = true;
doCheck = true;
# otherwise libxmlsec1-gnutls.so won't find libgcrypt.so, after #909
NIX_LDFLAGS = [ "-lgcrypt" ];
postFixup = ''
wrapProgram "$out/bin/xmlsec1" --prefix LD_LIBRARY_PATH ":" "$out/lib"
'';
meta = {
homepage = http://www.aleksey.com/xmlsec;
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;
};
}