diff --git a/pkgs/tools/misc/ntfy-sh/default.nix b/pkgs/tools/misc/ntfy-sh/default.nix index 4fbb4994394b..de5063135f84 100644 --- a/pkgs/tools/misc/ntfy-sh/default.nix +++ b/pkgs/tools/misc/ntfy-sh/default.nix @@ -1,6 +1,6 @@ -{ lib, pkgs, stdenv, buildGoModule, fetchFromGitHub, buildNpmPackage +{ lib, buildGoModule, fetchFromGitHub, buildNpmPackage , nixosTests, debianutils, mkdocs, python3, python3Packages -, pkg-config, pixman, cairo, pango }: +}: buildGoModule rec { diff --git a/pkgs/tools/misc/rauc/default.nix b/pkgs/tools/misc/rauc/default.nix index 72cc8d8945f5..ec573473de3d 100644 --- a/pkgs/tools/misc/rauc/default.nix +++ b/pkgs/tools/misc/rauc/default.nix @@ -1,7 +1,6 @@ { curl , dbus , fetchFromGitHub -, fetchpatch , glib , json-glib , lib diff --git a/pkgs/tools/networking/cdpr/default.nix b/pkgs/tools/networking/cdpr/default.nix index 6879b7e9d707..1f9e7b1888d1 100644 --- a/pkgs/tools/networking/cdpr/default.nix +++ b/pkgs/tools/networking/cdpr/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, fetchpatch, libpcap }: +{ lib, stdenv, fetchurl, libpcap }: stdenv.mkDerivation rec { pname = "cdpr"; diff --git a/pkgs/tools/networking/dhcp/default.nix b/pkgs/tools/networking/dhcp/default.nix index 757a7208c4d2..1d07843cc48b 100644 --- a/pkgs/tools/networking/dhcp/default.nix +++ b/pkgs/tools/networking/dhcp/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, fetchpatch, perl, file, nettools, iputils, iproute2, makeWrapper +{ stdenv, fetchurl, perl, file, nettools, iputils, iproute2, makeWrapper , coreutils, gnused, openldap ? null , buildPackages, lib diff --git a/pkgs/tools/networking/dnsmasq/default.nix b/pkgs/tools/networking/dnsmasq/default.nix index f4398cdd0393..8ca5199838e1 100644 --- a/pkgs/tools/networking/dnsmasq/default.nix +++ b/pkgs/tools/networking/dnsmasq/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, pkg-config, nettle, fetchpatch +{ lib, stdenv, fetchurl, pkg-config, nettle , libidn, libnetfilter_conntrack, buildPackages , dbusSupport ? stdenv.isLinux , dbus diff --git a/pkgs/tools/networking/dsniff/default.nix b/pkgs/tools/networking/dsniff/default.nix index 24e1ef29ef31..ae663abb08dc 100644 --- a/pkgs/tools/networking/dsniff/default.nix +++ b/pkgs/tools/networking/dsniff/default.nix @@ -13,14 +13,14 @@ let */ staticdb = symlinkJoin { inherit (db) name; - paths = with db.overrideAttrs(old: { dontDisableStatic = true; }); [ out dev ]; + paths = with db.overrideAttrs { dontDisableStatic = true; }; [ out dev ]; postBuild = '' rm $out/lib/*.so* ''; }; pcap = symlinkJoin { inherit (libpcap) name; - paths = [ (libpcap.overrideAttrs(old: { dontDisableStatic = true; })) ]; + paths = [ (libpcap.overrideAttrs { dontDisableStatic = true; }) ]; postBuild = '' cp -rs $out/include/pcap $out/include/net # prevent references to libpcap @@ -29,15 +29,15 @@ let }; net = symlinkJoin { inherit (libnet) name; - paths = [ (libnet.overrideAttrs(old: { dontDisableStatic = true; })) ]; + paths = [ (libnet.overrideAttrs { dontDisableStatic = true; }) ]; postBuild = '' # prevent dynamic linking, now that we have a static library rm $out/lib/*.so* ''; }; - nids = libnids.overrideAttrs(old: { + nids = libnids.overrideAttrs { dontDisableStatic = true; - }); + }; ssl = symlinkJoin { inherit (openssl) name; paths = with openssl.override { static = true; }; [ out dev ]; diff --git a/pkgs/tools/networking/ebpf-verifier/default.nix b/pkgs/tools/networking/ebpf-verifier/default.nix index 63af32ce1a20..972c72c4e57f 100644 --- a/pkgs/tools/networking/ebpf-verifier/default.nix +++ b/pkgs/tools/networking/ebpf-verifier/default.nix @@ -9,7 +9,7 @@ , yaml-cpp }: -stdenv.mkDerivation (finalAttrs: { +stdenv.mkDerivation { pname = "ebpf-verifier"; version = "unstable-2023-07-15"; @@ -57,4 +57,4 @@ stdenv.mkDerivation (finalAttrs: { platforms = platforms.linux; maintainers = with maintainers; [ gaelreyrol ]; }; -}) +} diff --git a/pkgs/tools/networking/edgedb/default.nix b/pkgs/tools/networking/edgedb/default.nix index 1409bd070818..d1d3f3b426b4 100644 --- a/pkgs/tools/networking/edgedb/default.nix +++ b/pkgs/tools/networking/edgedb/default.nix @@ -1,6 +1,5 @@ { stdenv , lib -, runCommand , patchelf , fetchFromGitHub , rustPlatform diff --git a/pkgs/tools/networking/gnirehtet/default.nix b/pkgs/tools/networking/gnirehtet/default.nix index e9266a555480..5f6e0db6d581 100644 --- a/pkgs/tools/networking/gnirehtet/default.nix +++ b/pkgs/tools/networking/gnirehtet/default.nix @@ -2,7 +2,6 @@ , stdenv , rustPlatform , fetchFromGitHub -, fetchpatch , fetchzip , androidenv , makeWrapper diff --git a/pkgs/tools/networking/ifwifi/default.nix b/pkgs/tools/networking/ifwifi/default.nix index 86891f459871..f04c3369bacf 100644 --- a/pkgs/tools/networking/ifwifi/default.nix +++ b/pkgs/tools/networking/ifwifi/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, rustPlatform, makeWrapper, darwin, networkmanager, iw, Security }: +{ lib, stdenv, fetchFromGitHub, rustPlatform, makeWrapper, networkmanager, iw, Security }: rustPlatform.buildRustPackage rec { pname = "ifwifi"; diff --git a/pkgs/tools/networking/mtr-exporter/default.nix b/pkgs/tools/networking/mtr-exporter/default.nix index 0243774262af..62b884fe6475 100644 --- a/pkgs/tools/networking/mtr-exporter/default.nix +++ b/pkgs/tools/networking/mtr-exporter/default.nix @@ -1,6 +1,6 @@ -{ lib, buildGoModule, fetchurl, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub }: -buildGoModule rec { +buildGoModule { pname = "mtr-exporter"; version = "0.1.0"; diff --git a/pkgs/tools/networking/mtr/default.nix b/pkgs/tools/networking/mtr/default.nix index 9ce71df109e0..bf324c57d497 100644 --- a/pkgs/tools/networking/mtr/default.nix +++ b/pkgs/tools/networking/mtr/default.nix @@ -1,7 +1,6 @@ { stdenv , lib , fetchFromGitHub -, fetchpatch , autoreconfHook , pkg-config , libcap diff --git a/pkgs/tools/networking/nethoscope/default.nix b/pkgs/tools/networking/nethoscope/default.nix index 276579f361fc..9a17adc3800d 100644 --- a/pkgs/tools/networking/nethoscope/default.nix +++ b/pkgs/tools/networking/nethoscope/default.nix @@ -1,7 +1,6 @@ { lib -, stdenv -, fetchFromGitHub , rustPlatform +, fetchFromGitHub , pkg-config , alsa-lib , libpcap diff --git a/pkgs/tools/networking/networkmanager/libnma/default.nix b/pkgs/tools/networking/networkmanager/libnma/default.nix index 8f3ed67abcfb..a47b23e9634c 100644 --- a/pkgs/tools/networking/networkmanager/libnma/default.nix +++ b/pkgs/tools/networking/networkmanager/libnma/default.nix @@ -21,7 +21,6 @@ , withGnome ? true , gcr_4 , glib -, substituteAll , lib , _experimental-update-script-combinators , makeHardcodeGsettingsPatch diff --git a/pkgs/tools/networking/networkmanager/strongswan/default.nix b/pkgs/tools/networking/networkmanager/strongswan/default.nix index 545dd3d82cdc..f46fb1272087 100644 --- a/pkgs/tools/networking/networkmanager/strongswan/default.nix +++ b/pkgs/tools/networking/networkmanager/strongswan/default.nix @@ -7,7 +7,6 @@ , strongswanNM , gtk3 , gtk4 -, gnome , libsecret , libnma , libnma-gtk4 diff --git a/pkgs/tools/networking/nss-mdns/default.nix b/pkgs/tools/networking/nss-mdns/default.nix index f2af99a922fd..9c1bb43a6732 100644 --- a/pkgs/tools/networking/nss-mdns/default.nix +++ b/pkgs/tools/networking/nss-mdns/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, lib, autoreconfHook, pkg-config, stdenv, fetchpatch, fetchFromGitHub }: +{ lib, autoreconfHook, pkg-config, stdenv, fetchFromGitHub }: stdenv.mkDerivation rec { pname = "nss-mdns"; diff --git a/pkgs/tools/networking/openconnect/default.nix b/pkgs/tools/networking/openconnect/default.nix index 0da1cb1866a2..778aea8354eb 100644 --- a/pkgs/tools/networking/openconnect/default.nix +++ b/pkgs/tools/networking/openconnect/default.nix @@ -1,4 +1,4 @@ -{ callPackage, fetchFromGitLab, fetchurl, darwin }: +{ callPackage, fetchurl, darwin }: let common = opts: callPackage (import ./common.nix opts) { inherit (darwin.apple_sdk.frameworks) PCSC; diff --git a/pkgs/tools/networking/openssh/common.nix b/pkgs/tools/networking/openssh/common.nix index 28bcba68a156..f3028573c05c 100644 --- a/pkgs/tools/networking/openssh/common.nix +++ b/pkgs/tools/networking/openssh/common.nix @@ -13,7 +13,6 @@ # package without splicing See: https://github.com/NixOS/nixpkgs/pull/107606 , pkgs , fetchurl -, fetchpatch , zlib , openssl , libedit @@ -30,7 +29,7 @@ , linkOpenssl ? true }: -stdenv.mkDerivation rec { +stdenv.mkDerivation { inherit pname version src; patches = [ diff --git a/pkgs/tools/networking/openssh/default.nix b/pkgs/tools/networking/openssh/default.nix index d202ac446ba8..ba0ce50d3fba 100644 --- a/pkgs/tools/networking/openssh/default.nix +++ b/pkgs/tools/networking/openssh/default.nix @@ -1,4 +1,4 @@ -{ callPackage, lib, fetchurl, fetchpatch, fetchFromGitHub, autoreconfHook }: +{ callPackage, lib, fetchurl, fetchpatch, autoreconfHook }: let common = opts: callPackage (import ./common.nix opts) { }; in diff --git a/pkgs/tools/networking/openvpn/default.nix b/pkgs/tools/networking/openvpn/default.nix index 0ef5076eaf99..87cbd6881e27 100644 --- a/pkgs/tools/networking/openvpn/default.nix +++ b/pkgs/tools/networking/openvpn/default.nix @@ -9,7 +9,6 @@ , useSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd , systemd , update-systemd-resolved -, util-linux , pkcs11Support ? false , pkcs11helper }: diff --git a/pkgs/tools/networking/p2p/amule/default.nix b/pkgs/tools/networking/p2p/amule/default.nix index ff8ecc385cdb..6d4950b40fca 100644 --- a/pkgs/tools/networking/p2p/amule/default.nix +++ b/pkgs/tools/networking/p2p/amule/default.nix @@ -15,7 +15,6 @@ , boost # Not using boost leads to crashes with gtk3 , gettext , libpng -, autoreconfHook , pkg-config , makeWrapper , libX11 diff --git a/pkgs/tools/networking/p2p/gtk-gnutella/default.nix b/pkgs/tools/networking/p2p/gtk-gnutella/default.nix index 3c9a6e723327..16eaf0d14e97 100644 --- a/pkgs/tools/networking/p2p/gtk-gnutella/default.nix +++ b/pkgs/tools/networking/p2p/gtk-gnutella/default.nix @@ -1,6 +1,5 @@ { lib, stdenv , fetchFromGitHub -, fetchpatch , bison , pkg-config , gettext @@ -10,7 +9,6 @@ , libxml2 , libbfd , zlib -, binutils , gnutls , enableGui ? true }: @@ -40,7 +38,7 @@ stdenv.mkDerivation rec { zlib ] ++ - lib.optionals (enableGui) [ gtk2 ] + lib.optionals enableGui [ gtk2 ] ; configureScript = "./build.sh"; diff --git a/pkgs/tools/networking/persepolis/default.nix b/pkgs/tools/networking/persepolis/default.nix index f8e5e33eb465..ed449ecb992f 100644 --- a/pkgs/tools/networking/persepolis/default.nix +++ b/pkgs/tools/networking/persepolis/default.nix @@ -1,4 +1,4 @@ -{ lib, buildPythonApplication, fetchFromGitHub, makeWrapper +{ lib, buildPythonApplication, fetchFromGitHub , aria , libnotify , pulseaudio diff --git a/pkgs/tools/networking/ppp/default.nix b/pkgs/tools/networking/ppp/default.nix index 535545f42bc2..20e59167699b 100644 --- a/pkgs/tools/networking/ppp/default.nix +++ b/pkgs/tools/networking/ppp/default.nix @@ -8,7 +8,6 @@ , openssl , bash , nixosTests -, writeTextDir }: stdenv.mkDerivation rec { diff --git a/pkgs/tools/networking/rconc/default.nix b/pkgs/tools/networking/rconc/default.nix index 53fc4d0b5aa0..613c4a8a31b0 100644 --- a/pkgs/tools/networking/rconc/default.nix +++ b/pkgs/tools/networking/rconc/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchFromGitHub, rustPlatform, pkgs }: +{ lib, rustPlatform, fetchFromGitHub }: rustPlatform.buildRustPackage rec { version = "0.1.4"; diff --git a/pkgs/tools/networking/shorewall/default.nix b/pkgs/tools/networking/shorewall/default.nix index 0c9e515ce094..79fd1c17a492 100644 --- a/pkgs/tools/networking/shorewall/default.nix +++ b/pkgs/tools/networking/shorewall/default.nix @@ -7,7 +7,6 @@ , perl , perlPackages , lib, stdenv -, tree , util-linux }: let diff --git a/pkgs/tools/networking/swagger-cli/default.nix b/pkgs/tools/networking/swagger-cli/default.nix index 9c9145f327fd..5a20ce93cc7c 100644 --- a/pkgs/tools/networking/swagger-cli/default.nix +++ b/pkgs/tools/networking/swagger-cli/default.nix @@ -1,7 +1,6 @@ { lib -, stdenv -, fetchFromGitHub , buildNpmPackage +, fetchFromGitHub }: buildNpmPackage rec { diff --git a/pkgs/tools/networking/telepresence/default.nix b/pkgs/tools/networking/telepresence/default.nix index 090357fa6e61..4866cfea41ee 100644 --- a/pkgs/tools/networking/telepresence/default.nix +++ b/pkgs/tools/networking/telepresence/default.nix @@ -1,4 +1,4 @@ -{ lib, pythonPackages, fetchFromGitHub, makeWrapper, git +{ lib, pythonPackages, fetchFromGitHub, makeWrapper , sshfs-fuse, torsocks, sshuttle, conntrack-tools , openssh, coreutils , iptables, bash }: diff --git a/pkgs/tools/networking/tgt/default.nix b/pkgs/tools/networking/tgt/default.nix index 0b4e75879caa..6a7c65756a08 100644 --- a/pkgs/tools/networking/tgt/default.nix +++ b/pkgs/tools/networking/tgt/default.nix @@ -1,5 +1,5 @@ { stdenv, lib, fetchFromGitHub, libxslt, libaio, systemd, perl -, docbook_xsl, coreutils, lsof, rdma-core, makeWrapper, sg3_utils, util-linux +, docbook_xsl, coreutils, lsof, makeWrapper, sg3_utils }: stdenv.mkDerivation rec { diff --git a/pkgs/tools/networking/tinc/pre.nix b/pkgs/tools/networking/tinc/pre.nix index 24f96e63d799..f15f398dc7db 100644 --- a/pkgs/tools/networking/tinc/pre.nix +++ b/pkgs/tools/networking/tinc/pre.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, texinfo, ncurses, readline, zlib, lzo, openssl }: +{ lib, stdenv, fetchFromGitHub, autoreconfHook, texinfo, ncurses, readline, zlib, lzo, openssl }: stdenv.mkDerivation rec { pname = "tinc"; diff --git a/pkgs/tools/networking/transmission-rss/default.nix b/pkgs/tools/networking/transmission-rss/default.nix index 50056c3ebdbc..095ccfb91a5a 100644 --- a/pkgs/tools/networking/transmission-rss/default.nix +++ b/pkgs/tools/networking/transmission-rss/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchFromGitHub, rustPlatform, pkg-config, openssl }: +{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl }: rustPlatform.buildRustPackage rec { version = "0.3.1"; diff --git a/pkgs/tools/networking/trurl/default.nix b/pkgs/tools/networking/trurl/default.nix index dea517a67d3c..3b5139873209 100644 --- a/pkgs/tools/networking/trurl/default.nix +++ b/pkgs/tools/networking/trurl/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, curl, python3, python3Packages, trurl, testers }: +{ lib, stdenv, fetchFromGitHub, curl, python3, trurl, testers }: stdenv.mkDerivation rec { pname = "trurl"; diff --git a/pkgs/tools/networking/userhosts/default.nix b/pkgs/tools/networking/userhosts/default.nix index 6cec402638a1..10bfbd650aa7 100644 --- a/pkgs/tools/networking/userhosts/default.nix +++ b/pkgs/tools/networking/userhosts/default.nix @@ -1,4 +1,4 @@ -{lib, stdenv, fetchFromGitHub, pkg-config, ncurses, libnl }: +{ lib, stdenv, fetchFromGitHub }: stdenv.mkDerivation rec { pname = "userhosts"; diff --git a/pkgs/tools/networking/vpnc/default.nix b/pkgs/tools/networking/vpnc/default.nix index f9507cf459c7..d5fd324719b4 100644 --- a/pkgs/tools/networking/vpnc/default.nix +++ b/pkgs/tools/networking/vpnc/default.nix @@ -1,6 +1,6 @@ -{ lib, stdenv, fetchFromGitHub, fetchpatch +{ lib, stdenv, fetchFromGitHub , makeWrapper, pkg-config, perl -, gawk, gnutls, libgcrypt, openresolv, vpnc-scripts +, gnutls, libgcrypt, vpnc-scripts , opensslSupport ? false, openssl # Distributing this is a GPL violation. }: diff --git a/pkgs/tools/networking/wg-netmanager/default.nix b/pkgs/tools/networking/wg-netmanager/default.nix index 15dc7b163b57..2f74cd86e736 100644 --- a/pkgs/tools/networking/wg-netmanager/default.nix +++ b/pkgs/tools/networking/wg-netmanager/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, rustPlatform, darwin, wireguard-go, Security }: +{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }: rustPlatform.buildRustPackage rec { pname = "wg-netmanager"; diff --git a/pkgs/tools/networking/wtfis/default.nix b/pkgs/tools/networking/wtfis/default.nix index 06c321d99d6e..ba6175f59b33 100644 --- a/pkgs/tools/networking/wtfis/default.nix +++ b/pkgs/tools/networking/wtfis/default.nix @@ -1,7 +1,6 @@ { lib -, stdenv -, fetchFromGitHub , python3 +, fetchFromGitHub }: let diff --git a/pkgs/tools/networking/xrootd/fetchxrd.nix b/pkgs/tools/networking/xrootd/fetchxrd.nix index b7a77f80549b..2d197f8504fe 100644 --- a/pkgs/tools/networking/xrootd/fetchxrd.nix +++ b/pkgs/tools/networking/xrootd/fetchxrd.nix @@ -33,10 +33,10 @@ echo "xrdcp failed trying to download any of the urls" >&2 exit $ret fi - '').overrideAttrs (finalAttrs: prevAttrs: + '').overrideAttrs (finalAttrs: if (pname != "" && version != "") then { inherit pname version; - name = with finalAttrs; "${pname}-${version}"; + name = "${pname}-${version}"; } else { name = if (name != "") then name else (baseNameOf finalAttrs.url); }) diff --git a/pkgs/tools/networking/zrok/default.nix b/pkgs/tools/networking/zrok/default.nix index 41ae21b24c8b..bbd5c2dc260b 100644 --- a/pkgs/tools/networking/zrok/default.nix +++ b/pkgs/tools/networking/zrok/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchzip, patchelf }: +{ lib, stdenv, fetchzip }: let inherit (stdenv.hostPlatform) system;