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 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 5 21 , enableUpnp ? false 6 22 , disableWallet ? false 7 23 , disableDaemon ? false 8 - , withGui ? false }: 24 + , withGui ? false 25 + }: 9 26 10 - with lib; 11 27 stdenv.mkDerivation rec { 12 - name = "pivx-${version}"; 28 + pname = "pivx"; 13 29 version = "4.1.1"; 14 30 15 31 src = fetchFromGitHub { 16 32 owner = "PIVX-Project"; 17 - repo= "PIVX"; 33 + repo = "PIVX"; 18 34 rev = "v${version}"; 19 35 sha256 = "03ndk46h6093v8s18d5iffz48zhlshq7jrk6vgpjfs6z2iqgd2sy"; 20 36 }; 21 37 22 - nativeBuildInputs = [ pkg-config autoreconfHook ] ++ optionals withGui [ wrapQtAppsHook ]; 38 + nativeBuildInputs = [ pkg-config autoreconfHook ] 39 + ++ lib.optionals withGui [ wrapQtAppsHook ]; 40 + 23 41 buildInputs = [ glib gmp openssl db48 yasm boost zlib libevent miniupnpc protobuf util-linux ] 24 - ++ optionals withGui [ qtbase qttools qrencode ]; 42 + ++ lib.optionals withGui [ qtbase qttools qrencode ]; 25 43 26 44 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 - ]; 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 + ]; 33 52 34 53 enableParallelBuilding = true; 35 - doChecks = true; 54 + doCheck = true; 36 55 postBuild = '' 37 56 mkdir -p $out/share/applications $out/share/icons 38 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 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 4 16 }: 5 17 6 18 stdenv.mkDerivation rec {
+4 -8
pkgs/servers/dns/knot-dns/default.nix
··· 3 3 , autoreconfHook, nixosTests 4 4 }: 5 5 6 - let inherit (lib) optional optionals; in 7 - 8 6 stdenv.mkDerivation rec { 9 7 pname = "knot-dns"; 10 8 version = "3.1.0"; ··· 39 37 libmnl # required for knot >= 3.1 40 38 # without sphinx &al. for developer documentation 41 39 # 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 40 + ] ++ lib.optionals stdenv.isLinux [ 41 + libcap_ng systemd 42 + libbpf # XDP support 43 + ] ++ lib.optional stdenv.isDarwin zlib; # perhaps due to gnutls 48 44 49 45 enableParallelBuilding = true; 50 46
+15 -16
pkgs/tools/networking/ssmtp/default.nix
··· 1 - {lib, stdenv, fetchurl, tlsSupport ? true, openssl ? null}: 2 - 3 - assert tlsSupport -> openssl != null; 1 + { lib, stdenv, fetchurl, tlsSupport ? true, openssl }: 4 2 5 - stdenv.mkDerivation { 6 - name = "ssmtp-2.64"; 3 + stdenv.mkDerivation rec { 4 + pname = "ssmtp"; 5 + version = "2.64"; 7 6 8 7 src = fetchurl { 9 - url = "mirror://debian/pool/main/s/ssmtp/ssmtp_2.64.orig.tar.bz2"; 8 + url = "mirror://debian/pool/main/s/ssmtp/ssmtp_${version}.orig.tar.bz2"; 10 9 sha256 = "0dps8s87ag4g3jr6dk88hs9zl46h3790marc5c2qw7l71k4pvhr2"; 11 10 }; 12 11 ··· 19 18 (lib.enableFeature tlsSupport "ssl") 20 19 ]; 21 20 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 - ''; 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 + ''; 32 30 33 31 installFlags = [ "etcdir=$(out)/etc" ]; 34 32 ··· 39 37 NIX_LDFLAGS = lib.optionalString tlsSupport "-lcrypto"; 40 38 41 39 meta = with lib; { 40 + description = "simple MTA to deliver mail from a computer to a mail hub"; 42 41 platforms = platforms.linux; 43 42 license = licenses.gpl2; 44 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; 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , cmake 5 + , nlohmann_json 6 + , libtoxcore 7 + , libsodium 8 + , libcap 9 + , zeromq 10 + , systemd 11 + }: 6 12 7 13 stdenv.mkDerivation { 8 - name = "toxvpn-2019-09-09"; 14 + name = "toxvpn"; 15 + version = "unstable-2019-09-09"; 9 16 10 17 src = fetchFromGitHub { 11 - owner = "cleverca22"; 12 - repo = "toxvpn"; 13 - rev = "45083dec172ce167f7ed84d571ec2822ebe4d51a"; 18 + owner = "cleverca22"; 19 + repo = "toxvpn"; 20 + rev = "45083dec172ce167f7ed84d571ec2822ebe4d51a"; 14 21 sha256 = "193crarrx6q0zd2p6dn67pzv8kngwi440zm1y54njgcz0v3fpxmb"; 15 22 }; 16 23 17 24 buildInputs = [ libtoxcore nlohmann_json libsodium zeromq ] 18 - ++ optionals stdenv.isLinux [ libcap systemd ]; 25 + ++ lib.optionals stdenv.isLinux [ libcap systemd ]; 19 26 20 27 nativeBuildInputs = [ cmake ]; 21 28 22 - cmakeFlags = optional stdenv.isLinux [ "-DSYSTEMD=1" ]; 29 + cmakeFlags = lib.optional stdenv.isLinux [ "-DSYSTEMD=1" ]; 23 30 24 31 postInstall = "$out/bin/toxvpn -h"; 25 32 26 33 meta = with lib; { 27 34 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; 35 + homepage = "https://github.com/cleverca22/toxvpn"; 36 + license = licenses.gpl3; 30 37 maintainers = with maintainers; [ cleverca22 obadz toonn ]; 31 - platforms = platforms.linux ++ platforms.darwin; 38 + platforms = platforms.unix; 32 39 }; 33 40 }
+3
pkgs/top-level/all-packages.nix
··· 28781 28781 pivx = libsForQt5.callPackage ../applications/blockchains/pivx { withGui = true; }; 28782 28782 pivxd = callPackage ../applications/blockchains/pivx { 28783 28783 withGui = false; 28784 + qtbase = null; 28785 + qttools = null; 28786 + wrapQtAppsHook = null; 28784 28787 autoreconfHook = buildPackages.autoreconfHook269; 28785 28788 }; 28786 28789