2017-07-29 00:44:00 +01:00
|
|
|
{ stdenv, fetchurl, autoreconfHook, perl, zlib, gnutls, gss, openssl
|
2017-10-08 20:43:35 +01:00
|
|
|
, libidn }:
|
2014-04-28 06:20:37 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-07-29 00:44:00 +01:00
|
|
|
version = "7.54.1";
|
2014-04-28 06:20:37 +01:00
|
|
|
|
|
|
|
name = "libgnurl-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2017-07-29 00:44:00 +01:00
|
|
|
url = "https://gnunet.org/sites/default/files/gnurl-${version}.tar.bz2";
|
|
|
|
sha256 = "0szbj352h95sgc9kbx9wzkgjksmg3g5k6cvlc7hz3wrbdh5gb0a4";
|
2014-04-28 06:20:37 +01:00
|
|
|
};
|
|
|
|
|
2017-07-29 00:44:00 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2017-10-08 20:43:35 +01:00
|
|
|
buildInputs = [ perl gnutls gss openssl zlib libidn ];
|
2016-07-05 01:51:28 +01:00
|
|
|
|
2014-04-28 06:20:37 +01:00
|
|
|
preConfigure = ''
|
|
|
|
sed -e 's|/usr/bin|/no-such-path|g' -i.bak configure
|
|
|
|
'';
|
|
|
|
|
2016-07-05 03:29:58 +01:00
|
|
|
configureFlags = [
|
2017-10-08 20:43:35 +01:00
|
|
|
"--enable-ipv6" "--with-gnutls" "--without-libmetalink" "--without-winidn"
|
|
|
|
"--without-librtmp" "--without-nghttp2" "--without-nss" "--without-cyassl"
|
|
|
|
"--without-polarssl" "--without-ssl" "--without-winssl"
|
|
|
|
"--without-darwinssl" "--disable-sspi" "--disable-ntlm-wb" "--disable-ldap"
|
|
|
|
"--disable-rtsp" "--disable-dict" "--disable-telnet" "--disable-tftp"
|
|
|
|
"--disable-pop3" "--disable-imap" "--disable-smtp" "--disable-gopher"
|
|
|
|
"--disable-file" "--disable-ftp" "--disable-smb"
|
2016-07-05 03:29:58 +01:00
|
|
|
];
|
|
|
|
|
2014-04-28 06:20:37 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A fork of libcurl used by GNUnet";
|
|
|
|
homepage = https://gnunet.org/gnurl;
|
2016-07-05 01:51:28 +01:00
|
|
|
maintainers = with maintainers; [ falsifian vrthra ];
|
2016-08-02 15:50:15 +01:00
|
|
|
platforms = platforms.linux;
|
2014-04-28 06:20:37 +01:00
|
|
|
};
|
|
|
|
}
|