Merge pull request #132406 from SuperSandro2000/cleanup

authored by Sandro and committed by GitHub f4271211 bbc054ab

+94 -58
+36 -17
pkgs/applications/blockchains/pivx/default.nix
··· 1 - { fetchFromGitHub, lib, stdenv, pkg-config, autoreconfHook, wrapQtAppsHook ? null 2 - , openssl, db48, boost, zlib, miniupnpc, gmp 3 - , qrencode, glib, protobuf, yasm, libevent 4 - , util-linux, qtbase ? null, qttools ? null 5 , enableUpnp ? false 6 , disableWallet ? false 7 , disableDaemon ? false 8 - , withGui ? false }: 9 10 - with lib; 11 stdenv.mkDerivation rec { 12 - name = "pivx-${version}"; 13 version = "4.1.1"; 14 15 src = fetchFromGitHub { 16 owner = "PIVX-Project"; 17 - repo= "PIVX"; 18 rev = "v${version}"; 19 sha256 = "03ndk46h6093v8s18d5iffz48zhlshq7jrk6vgpjfs6z2iqgd2sy"; 20 }; 21 22 - nativeBuildInputs = [ pkg-config autoreconfHook ] ++ optionals withGui [ wrapQtAppsHook ]; 23 buildInputs = [ glib gmp openssl db48 yasm boost zlib libevent miniupnpc protobuf util-linux ] 24 - ++ optionals withGui [ qtbase qttools qrencode ]; 25 26 configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ] 27 - ++ optional enableUpnp "--enable-upnp-default" 28 - ++ optional disableWallet "--disable-wallet" 29 - ++ optional disableDaemon "--disable-daemon" 30 - ++ optionals withGui [ "--with-gui=yes" 31 - "--with-qt-bindir=${qtbase.dev}/bin:${qttools.dev}/bin" 32 - ]; 33 34 enableParallelBuilding = true; 35 - doChecks = true; 36 postBuild = '' 37 mkdir -p $out/share/applications $out/share/icons 38 cp contrib/debian/pivx-qt.desktop $out/share/applications/
··· 1 + { fetchFromGitHub 2 + , lib 3 + , stdenv 4 + , pkg-config 5 + , autoreconfHook 6 + , wrapQtAppsHook 7 + , openssl 8 + , db48 9 + , boost 10 + , zlib 11 + , miniupnpc 12 + , gmp 13 + , qrencode 14 + , glib 15 + , protobuf 16 + , yasm 17 + , libevent 18 + , util-linux 19 + , qtbase 20 + , qttools 21 , enableUpnp ? false 22 , disableWallet ? false 23 , disableDaemon ? false 24 + , withGui ? false 25 + }: 26 27 stdenv.mkDerivation rec { 28 + pname = "pivx"; 29 version = "4.1.1"; 30 31 src = fetchFromGitHub { 32 owner = "PIVX-Project"; 33 + repo = "PIVX"; 34 rev = "v${version}"; 35 sha256 = "03ndk46h6093v8s18d5iffz48zhlshq7jrk6vgpjfs6z2iqgd2sy"; 36 }; 37 38 + nativeBuildInputs = [ pkg-config autoreconfHook ] 39 + ++ lib.optionals withGui [ wrapQtAppsHook ]; 40 + 41 buildInputs = [ glib gmp openssl db48 yasm boost zlib libevent miniupnpc protobuf util-linux ] 42 + ++ lib.optionals withGui [ qtbase qttools qrencode ]; 43 44 configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ] 45 + ++ lib.optional enableUpnp "--enable-upnp-default" 46 + ++ lib.optional disableWallet "--disable-wallet" 47 + ++ lib.optional disableDaemon "--disable-daemon" 48 + ++ lib.optionals withGui [ 49 + "--with-gui=yes" 50 + "--with-qt-bindir=${lib.getDev qtbase}/bin:${lib.getDev qttools}/bin" 51 + ]; 52 53 enableParallelBuilding = true; 54 + doCheck = true; 55 postBuild = '' 56 mkdir -p $out/share/applications $out/share/icons 57 cp contrib/debian/pivx-qt.desktop $out/share/applications/
+15 -3
pkgs/development/libraries/grpc/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, fetchpatch, buildPackages 2 - , cmake, zlib, c-ares, pkg-config, re2, openssl, protobuf, grpc 3 - , abseil-cpp, libnsl 4 }: 5 6 stdenv.mkDerivation rec {
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , fetchpatch 5 + , buildPackages 6 + , cmake 7 + , zlib 8 + , c-ares 9 + , pkg-config 10 + , re2 11 + , openssl 12 + , protobuf 13 + , grpc 14 + , abseil-cpp 15 + , libnsl 16 }: 17 18 stdenv.mkDerivation rec {
+4 -8
pkgs/servers/dns/knot-dns/default.nix
··· 3 , autoreconfHook, nixosTests 4 }: 5 6 - let inherit (lib) optional optionals; in 7 - 8 stdenv.mkDerivation rec { 9 pname = "knot-dns"; 10 version = "3.1.0"; ··· 39 libmnl # required for knot >= 3.1 40 # without sphinx &al. for developer documentation 41 # TODO: add dnstap support? 42 - ] 43 - ++ optionals stdenv.isLinux [ 44 - libcap_ng systemd 45 - libbpf # XDP support 46 - ] 47 - ++ optional stdenv.isDarwin zlib; # perhaps due to gnutls 48 49 enableParallelBuilding = true; 50
··· 3 , autoreconfHook, nixosTests 4 }: 5 6 stdenv.mkDerivation rec { 7 pname = "knot-dns"; 8 version = "3.1.0"; ··· 37 libmnl # required for knot >= 3.1 38 # without sphinx &al. for developer documentation 39 # TODO: add dnstap support? 40 + ] ++ lib.optionals stdenv.isLinux [ 41 + libcap_ng systemd 42 + libbpf # XDP support 43 + ] ++ lib.optional stdenv.isDarwin zlib; # perhaps due to gnutls 44 45 enableParallelBuilding = true; 46
+15 -16
pkgs/tools/networking/ssmtp/default.nix
··· 1 - {lib, stdenv, fetchurl, tlsSupport ? true, openssl ? null}: 2 - 3 - assert tlsSupport -> openssl != null; 4 5 - stdenv.mkDerivation { 6 - name = "ssmtp-2.64"; 7 8 src = fetchurl { 9 - url = "mirror://debian/pool/main/s/ssmtp/ssmtp_2.64.orig.tar.bz2"; 10 sha256 = "0dps8s87ag4g3jr6dk88hs9zl46h3790marc5c2qw7l71k4pvhr2"; 11 }; 12 ··· 19 (lib.enableFeature tlsSupport "ssl") 20 ]; 21 22 - postConfigure = 23 - '' 24 - # Don't run the script that interactively generates a config file. 25 - # Also don't install the broken, cyclic symlink /lib/sendmail. 26 - sed -e '/INSTALLED_CONFIGURATION_FILE/d' \ 27 - -e 's|/lib/sendmail|$(TMPDIR)/sendmail|' \ 28 - -i Makefile 29 - substituteInPlace Makefile \ 30 - --replace '$(INSTALL) -s' '$(INSTALL) -s --strip-program $(STRIP)' 31 - ''; 32 33 installFlags = [ "etcdir=$(out)/etc" ]; 34 ··· 39 NIX_LDFLAGS = lib.optionalString tlsSupport "-lcrypto"; 40 41 meta = with lib; { 42 platforms = platforms.linux; 43 license = licenses.gpl2; 44 maintainers = with maintainers; [ basvandijk ];
··· 1 + { lib, stdenv, fetchurl, tlsSupport ? true, openssl }: 2 3 + stdenv.mkDerivation rec { 4 + pname = "ssmtp"; 5 + version = "2.64"; 6 7 src = fetchurl { 8 + url = "mirror://debian/pool/main/s/ssmtp/ssmtp_${version}.orig.tar.bz2"; 9 sha256 = "0dps8s87ag4g3jr6dk88hs9zl46h3790marc5c2qw7l71k4pvhr2"; 10 }; 11 ··· 18 (lib.enableFeature tlsSupport "ssl") 19 ]; 20 21 + postConfigure = '' 22 + # Don't run the script that interactively generates a config file. 23 + # Also don't install the broken, cyclic symlink /lib/sendmail. 24 + sed -e '/INSTALLED_CONFIGURATION_FILE/d' \ 25 + -e 's|/lib/sendmail|$(TMPDIR)/sendmail|' \ 26 + -i Makefile 27 + substituteInPlace Makefile \ 28 + --replace '$(INSTALL) -s' '$(INSTALL) -s --strip-program $(STRIP)' 29 + ''; 30 31 installFlags = [ "etcdir=$(out)/etc" ]; 32 ··· 37 NIX_LDFLAGS = lib.optionalString tlsSupport "-lcrypto"; 38 39 meta = with lib; { 40 + description = "simple MTA to deliver mail from a computer to a mail hub"; 41 platforms = platforms.linux; 42 license = licenses.gpl2; 43 maintainers = with maintainers; [ basvandijk ];
+21 -14
pkgs/tools/networking/toxvpn/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, nlohmann_json, 2 - libtoxcore, libsodium, libcap, zeromq, 3 - systemd ? null }: 4 - 5 - with lib; 6 7 stdenv.mkDerivation { 8 - name = "toxvpn-2019-09-09"; 9 10 src = fetchFromGitHub { 11 - owner = "cleverca22"; 12 - repo = "toxvpn"; 13 - rev = "45083dec172ce167f7ed84d571ec2822ebe4d51a"; 14 sha256 = "193crarrx6q0zd2p6dn67pzv8kngwi440zm1y54njgcz0v3fpxmb"; 15 }; 16 17 buildInputs = [ libtoxcore nlohmann_json libsodium zeromq ] 18 - ++ optionals stdenv.isLinux [ libcap systemd ]; 19 20 nativeBuildInputs = [ cmake ]; 21 22 - cmakeFlags = optional stdenv.isLinux [ "-DSYSTEMD=1" ]; 23 24 postInstall = "$out/bin/toxvpn -h"; 25 26 meta = with lib; { 27 description = "A powerful tool that allows one to make tunneled point to point connections over Tox"; 28 - homepage = "https://github.com/cleverca22/toxvpn"; 29 - license = licenses.gpl3; 30 maintainers = with maintainers; [ cleverca22 obadz toonn ]; 31 - platforms = platforms.linux ++ platforms.darwin; 32 }; 33 }
··· 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + , nlohmann_json 6 + , libtoxcore 7 + , libsodium 8 + , libcap 9 + , zeromq 10 + , systemd 11 + }: 12 13 stdenv.mkDerivation { 14 + name = "toxvpn"; 15 + version = "unstable-2019-09-09"; 16 17 src = fetchFromGitHub { 18 + owner = "cleverca22"; 19 + repo = "toxvpn"; 20 + rev = "45083dec172ce167f7ed84d571ec2822ebe4d51a"; 21 sha256 = "193crarrx6q0zd2p6dn67pzv8kngwi440zm1y54njgcz0v3fpxmb"; 22 }; 23 24 buildInputs = [ libtoxcore nlohmann_json libsodium zeromq ] 25 + ++ lib.optionals stdenv.isLinux [ libcap systemd ]; 26 27 nativeBuildInputs = [ cmake ]; 28 29 + cmakeFlags = lib.optional stdenv.isLinux [ "-DSYSTEMD=1" ]; 30 31 postInstall = "$out/bin/toxvpn -h"; 32 33 meta = with lib; { 34 description = "A powerful tool that allows one to make tunneled point to point connections over Tox"; 35 + homepage = "https://github.com/cleverca22/toxvpn"; 36 + license = licenses.gpl3; 37 maintainers = with maintainers; [ cleverca22 obadz toonn ]; 38 + platforms = platforms.unix; 39 }; 40 }
+3
pkgs/top-level/all-packages.nix
··· 28781 pivx = libsForQt5.callPackage ../applications/blockchains/pivx { withGui = true; }; 28782 pivxd = callPackage ../applications/blockchains/pivx { 28783 withGui = false; 28784 autoreconfHook = buildPackages.autoreconfHook269; 28785 }; 28786
··· 28781 pivx = libsForQt5.callPackage ../applications/blockchains/pivx { withGui = true; }; 28782 pivxd = callPackage ../applications/blockchains/pivx { 28783 withGui = false; 28784 + qtbase = null; 28785 + qttools = null; 28786 + wrapQtAppsHook = null; 28787 autoreconfHook = buildPackages.autoreconfHook269; 28788 }; 28789