btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / li / libgnurl / package.nix
blobb3db03d0240b7da18281ab789f2ec6077c3d8bfa
1 { lib, stdenv, fetchurl, libtool, perl, pkg-config, python3, zlib, gnutls
2 , libidn2, libunistring }:
4 stdenv.mkDerivation rec {
5   pname = "libgnurl";
6   version = "7.72.0";
8   src = fetchurl {
9     url = "mirror://gnu/gnunet/gnurl-${version}.tar.gz";
10     sha256 = "1y4laraq37kw8hc8jlzgcw7y37bfd0n71q0sy3d3z6yg7zh2prxi";
11   };
13   nativeBuildInputs = [ libtool perl pkg-config python3 ];
15   buildInputs = [ gnutls zlib libidn2 libunistring ];
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   ];
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   };