Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-16.03 32 lines 935 B view raw
1{ stdenv, fetchurl, libxml2, gnutls, libxslt, pkgconfig, libgcrypt, libtool 2, openssl, makeWrapper }: 3 4let 5 version = "1.2.20"; 6in 7stdenv.mkDerivation rec { 8 name = "xmlsec-${version}"; 9 10 src = fetchurl { 11 url = "http://www.aleksey.com/xmlsec/download/xmlsec1-${version}.tar.gz"; 12 sha256 = "01bkbv2y3x8d1sf4dcln1x3y2jyj391s3208d9a2ndhglly5j89j"; 13 }; 14 15 buildInputs = [ makeWrapper libxml2 gnutls libxslt pkgconfig libgcrypt libtool openssl ]; 16 enableParallelBuilding = true; 17 doCheck = true; 18 19 # otherwise libxmlsec1-gnutls.so won't find libgcrypt.so, after #909 20 NIX_LDFLAGS = [ "-lgcrypt" ]; 21 22 postFixup = '' 23 wrapProgram "$out/bin/xmlsec1" --prefix LD_LIBRARY_PATH ":" "$out/lib" 24 ''; 25 26 meta = { 27 homepage = http://www.aleksey.com/xmlsec; 28 description = "XML Security Library in C based on libxml2"; 29 license = stdenv.lib.licenses.mit; 30 platforms = with stdenv.lib.platforms; linux ++ darwin; 31 }; 32}