···183183184184 <listitem>
185185 <para>
186186- Enabling wireless networking now requires specifying at least one network
187187- interface using <xref linkend="opt-networking.wireless.interfaces"/>.
188188- This is to avoid a race condition with the card initialisation (see
189189- <link xlink:href="https://github.com/NixOS/nixpkgs/issues/101963">issue
190190- #101963</link> for more information).
191191- </para>
192192- </listitem>
193193- <listitem>
194194- <para>
195186 If you are using <option>services.udev.extraRules</option> to assign
196187 custom names to network interfaces, this may stop working due to a change
197188 in the initialisation of dhcpcd and systemd networkd. To avoid this, either
···4040 default = [];
4141 example = [ "wlan0" "wlan1" ];
4242 description = ''
4343- The interfaces <command>wpa_supplicant</command> will use.
4343+ The interfaces <command>wpa_supplicant</command> will use. If empty, it will
4444+ automatically use all wireless interfaces.
4545+ <warning><para>
4646+ The automatic discovery of interfaces does not work reliably on boot:
4747+ it may fail and leave the system without network. When possible, specify
4848+ a known interface name.
4949+ </para></warning>
4450 '';
4551 };
4652···219225 };
220226221227 config = mkIf cfg.enable {
222222- assertions = [
223223- { assertion = cfg.interfaces != [];
224224- message = ''
225225- No network interfaces for wpa_supplicant have been configured.
226226- Please, specify at least one using networking.wireless.interfaces.
227227- '';
228228- }
229229- ] ++ flip mapAttrsToList cfg.networks (name: cfg: {
228228+ assertions = flip mapAttrsToList cfg.networks (name: cfg: {
230229 assertion = with cfg; count (x: x != null) [ psk pskRaw auth ] <= 1;
231230 message = ''options networking.wireless."${name}".{psk,pskRaw,auth} are mutually exclusive'';
232231 });
232232+233233+ warnings =
234234+ optional (cfg.interfaces == [] && config.systemd.services.wpa_supplicant.wantedBy != [])
235235+ ''
236236+ No network interfaces for wpa_supplicant have been configured: the service
237237+ may randomly fail to start at boot. You should specify at least one using the option
238238+ networking.wireless.interfaces.
239239+ '';
233240234241 environment.systemPackages = [ package ];
235242···261268 then echo >&2 "<3>/etc/wpa_supplicant.conf present but ignored. Generated ${configFile} is used instead."
262269 fi
263270 iface_args="-s -u -D${cfg.driver} ${configStr}"
264264- args="${concatMapStringsSep " -N " (i: "-i${i} $iface_args") ifaces}"
271271+ ${if ifaces == [] then ''
272272+ for i in $(cd /sys/class/net && echo *); do
273273+ DEVTYPE=
274274+ UEVENT_PATH=/sys/class/net/$i/uevent
275275+ if [ -e "$UEVENT_PATH" ]; then
276276+ source "$UEVENT_PATH"
277277+ if [ "$DEVTYPE" = "wlan" -o -e /sys/class/net/$i/wireless ]; then
278278+ args+="''${args:+ -N} -i$i $iface_args"
279279+ fi
280280+ fi
281281+ done
282282+ '' else ''
283283+ args="${concatMapStringsSep " -N " (i: "-i${i} $iface_args") ifaces}"
284284+ ''}
265285 exec wpa_supplicant $args
266286 '';
267287 };
···11-{ lib, stdenv, fetchFromGitHub, duktape, curl, pcre, readline, openssl, perl, html-tidy }:
11+{ lib
22+, stdenv
33+, fetchFromGitHub
44+, curl
55+, duktape
66+, html-tidy
77+, openssl
88+, pcre
99+, perl
1010+, pkg-config
1111+, quickjs
1212+, readline
1313+, which
1414+}:
215316stdenv.mkDerivation rec {
417 pname = "edbrowse";
55- version = "3.7.7";
1818+ version = "3.8.0";
1919+2020+ src = fetchFromGitHub {
2121+ owner = "CMB";
2222+ repo = pname;
2323+ rev = "v${version}";
2424+ hash = "sha256-ZXxzQBAmu7kM3sjqg/rDLBXNucO8sFRFKXV8UxQVQZU=";
2525+ };
62677- buildInputs = [ curl pcre readline openssl duktape perl html-tidy ];
2727+ nativeBuildInputs = [
2828+ pkg-config
2929+ which
3030+ ];
3131+ buildInputs = [
3232+ curl
3333+ duktape
3434+ html-tidy
3535+ openssl
3636+ pcre
3737+ perl
3838+ quickjs
3939+ readline
4040+ ];
4141+4242+ patches = [
4343+ # Fixes some small annoyances on src/makefile
4444+ ./0001-small-fixes.patch
4545+ ];
846947 postPatch = ''
1010- for i in ./tools/*.pl
1111- do
1212- substituteInPlace $i --replace "/usr/bin/perl" "${perl}/bin/perl"
4848+ substituteInPlace src/makefile --replace\
4949+ '-L/usr/local/lib/quickjs' '-L${quickjs}/lib/quickjs'
5050+ for i in $(find ./tools/ -type f ! -name '*.c'); do
5151+ patchShebangs $i
1352 done
1453 '';
15541655 makeFlags = [
1756 "-C" "src"
1818- "prefix=${placeholder "out"}"
5757+ "PREFIX=${placeholder "out"}"
1958 ];
20592121- src = fetchFromGitHub {
2222- owner = "CMB";
2323- repo = "edbrowse";
2424- rev = "v${version}";
2525- sha256 = "0cw9d60mdhwna57r1vxn53s8gl81rr3cxnvm769ifq3xyh49vfcf";
2626- };
2760 meta = with lib; {
6161+ homepage = "https://edbrowse.org/";
2862 description = "Command Line Editor Browser";
2963 longDescription = ''
3030- Edbrowse is a combination editor, browser, and mail client that is 100% text based.
3131- The interface is similar to /bin/ed, though there are many more features, such as editing multiple files simultaneously, and rendering html.
3232- This program was originally written for blind users, but many sighted users have taken advantage of the unique scripting capabilities of this program, which can be found nowhere else.
3333- A batch job, or cron job, can access web pages on the internet, submit forms, and send email, with no human intervention whatsoever.
3434- edbrowse can also tap into databases through odbc. It was primarily written by Karl Dahlke.
3535- '';
6464+ Edbrowse is a combination editor, browser, and mail client that is 100%
6565+ text based. The interface is similar to /bin/ed, though there are many
6666+ more features, such as editing multiple files simultaneously, and
6767+ rendering html. This program was originally written for blind users, but
6868+ many sighted users have taken advantage of the unique scripting
6969+ capabilities of this program, which can be found nowhere else. A batch
7070+ job, or cron job, can access web pages on the internet, submit forms, and
7171+ send email, with no human intervention whatsoever. edbrowse can also tap
7272+ into databases through odbc. It was primarily written by Karl Dahlke.
7373+ '';
3674 license = licenses.gpl1Plus;
3737- homepage = "https://edbrowse.org/";
3875 maintainers = with maintainers; [ schmitthenner vrthra equirosa ];
3976 platforms = platforms.linux;
4077 };
4178}
7979+# TODO: send the patch to upstream developers
···9393 patchelf --set-rpath $out/lib:${stdenv.cc.cc.lib}/lib $out/lib/libboost_thread.so.*
9494 ''}
9595 '' +
9696- # On all versions before c9f51e87057652db0013289a95deffba495b35e7,
9797- # released with 2.3.8, we need to patch around an issue where the Nix
9898- # configure step pulls in the build system's bash and other utilities
9999- # when cross-compiling.
9696+ # On all versions before c9f51e87057652db0013289a95deffba495b35e7, which
9797+ # removes config.nix entirely and is not present in 2.3.x, we need to
9898+ # patch around an issue where the Nix configure step pulls in the build
9999+ # system's bash and other utilities when cross-compiling.
100100 lib.optionalString (
101101- stdenv.buildPlatform != stdenv.hostPlatform &&
102102- (lib.versionOlder "2.3.8" version && !is24)
103103- # The additional is24 condition is required as versionOlder doesn't understand nixUnstable version strings
101101+ stdenv.buildPlatform != stdenv.hostPlatform && !is24
104102 ) ''
105103 mkdir tmp/
106104 substitute corepkgs/config.nix.in tmp/config.nix.in \
+15-7
pkgs/tools/security/pass/extensions/checkup.nix
···11{ lib, stdenv, fetchFromGitHub
22-, curl, findutils, gnugrep, gnused }:
22+, curl, findutils, gnugrep, gnused, shellcheck }:
3344-stdenv.mkDerivation rec {
44+let
55 pname = "pass-checkup";
66- version = "0.2.0";
66+ version = "0.2.1";
77+in stdenv.mkDerivation {
88+ inherit pname version;
79810 src = fetchFromGitHub {
911 owner = "etu";
1010- repo = "pass-checkup";
1212+ repo = pname;
1113 rev = version;
1212- sha256 = "17fyf8zj535fg43yddjww1jhxfb3nbdkn622wjxaai2nf46jzh7y";
1414+ sha256 = "18b6rx59r7g0hvqs2affvw0g0jyifyzhanwgz2q2b8nhjgqgnar2";
1315 };
14161515- patchPhase = ''
1717+ nativeBuildInputs = [ shellcheck ];
1818+1919+ postPatch = ''
1620 substituteInPlace checkup.bash \
1721 --replace curl ${curl}/bin/curl \
1822 --replace find ${findutils}/bin/find \
···2125 '';
22262327 installPhase = ''
2828+ runHook preInstall
2929+2430 install -D -m755 checkup.bash $out/lib/password-store/extensions/checkup.bash
3131+3232+ runHook postInstall
2533 '';
26342735 meta = with lib; {
2836 description = "A pass extension to check against the Have I been pwned API to see if your passwords are publicly leaked or not";
2937 homepage = "https://github.com/etu/pass-checkup";
3030- license = licenses.gpl3;
3838+ license = licenses.gpl3Plus;
3139 maintainers = with maintainers; [ etu ];
3240 platforms = platforms.unix;
3341 };
+1
pkgs/top-level/aliases.nix
···482482 mxisd = throw "mxisd has been removed from nixpkgs as it has reached end of life, see https://github.com/kamax-matrix/mxisd/blob/535e0a5b96ab63cb0ddef90f6f42c5866407df95/EOL.md#end-of-life-notice . ma1sd may be a suitable alternative."; # added 2021-04-15
483483 mysqlWorkbench = mysql-workbench; # added 2017-01-19
484484 nagiosPluginsOfficial = monitoring-plugins;
485485+ navit = throw "navit has been removed from nixpkgs, due to being unmaintained"; # added 2021-06-07
485486 ncat = nmap; # added 2016-01-26
486487 netcat-openbsd = libressl.nc; # added 2018-04-25
487488 netease-cloud-music = throw "netease-cloud-music has been removed together with deepin"; # added 2020-08-31