Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 46 lines 1.2 kB view raw
1{ lib, stdenv, fetchurl, libtool, perl, pkg-config, python3, zlib, gnutls 2, libidn2, libunistring }: 3 4stdenv.mkDerivation rec { 5 pname = "libgnurl"; 6 version = "7.72.0"; 7 8 src = fetchurl { 9 url = "mirror://gnu/gnunet/gnurl-${version}.tar.gz"; 10 sha256 = "1y4laraq37kw8hc8jlzgcw7y37bfd0n71q0sy3d3z6yg7zh2prxi"; 11 }; 12 13 nativeBuildInputs = [ libtool perl pkg-config python3 ]; 14 15 buildInputs = [ gnutls zlib libidn2 libunistring ]; 16 17 configureFlags = [ 18 "--disable-ntlm-wb" 19 "--without-ca-bundle" 20 "--with-ca-fallback" 21 # below options will cause errors if enabled 22 "--disable-ftp" 23 "--disable-tftp" 24 "--disable-file" 25 "--disable-ldap" 26 "--disable-dict" 27 "--disable-rtsp" 28 "--disable-telnet" 29 "--disable-pop3" 30 "--disable-imap" 31 "--disable-smb" 32 "--disable-smtp" 33 "--disable-gopher" 34 "--without-ssl" # disables only openssl, not ssl in general 35 "--without-libpsl" 36 "--without-librtmp" 37 ]; 38 39 meta = with lib; { 40 description = "Fork of libcurl used by GNUnet"; 41 homepage = "https://gnunet.org/en/gnurl.html"; 42 maintainers = [ ]; 43 platforms = platforms.unix; 44 license = licenses.curl; 45 }; 46}