···7788let version = "0.32"; in
991010-with lib;
1111-1210stdenv.mkDerivation {
1311 pname = "bup";
1412 inherit version;
···3129 postPatch = ''
3230 patchShebangs .
3331 substituteInPlace Makefile --replace "-Werror" ""
3434- '' + optionalString par2Support ''
3232+ '' + lib.optionalString par2Support ''
3533 substituteInPlace cmd/fsck-cmd.py --replace "'par2'" "'${par2cmdline}/bin/par2'"
3634 '';
3735···4947 --prefix PATH : ${git}/bin
5048 '';
51495252- meta = {
5050+ meta = with lib; {
5351 homepage = "https://github.com/bup/bup";
5452 description = "Efficient file backup system based on the git packfile format";
5553 license = licenses.gpl2Plus;
+1-2
pkgs/tools/backup/luckybackup/default.nix
···33, rsync, ssh
44}:
5566-with lib;
76mkDerivation rec {
87 pname = "luckybackup";
98 version = "0.5.0";
···2625 done
2726 '';
28272929- meta = {
2828+ meta = with lib; {
3029 description = "A powerful, fast and reliable backup & sync tool";
3130 longDescription = ''
3231 luckyBackup is an application for data back-up and synchronization
···11{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
2233-with lib;
44-53buildGoModule rec {
64 pname = "flannel";
75 version = "0.20.2";
···23212422 passthru.tests = { inherit (nixosTests) flannel; };
25232626- meta = {
2424+ meta = with lib; {
2725 description = "Network fabric for containers, designed for Kubernetes";
2826 license = licenses.asl20;
2927 homepage = "https://github.com/flannel-io/flannel";
-2
pkgs/tools/networking/logmein-hamachi/default.nix
···11{ lib, stdenv, fetchurl }:
2233-with lib;
44-53let
64 arch =
75 if stdenv.hostPlatform.system == "x86_64-linux" then "x64"
+2-4
pkgs/tools/networking/ndjbdns/default.nix
···11{ lib, stdenv, fetchFromGitHub, autoreconfHook, systemd, pkg-config }:
2233-with lib;
44-53stdenv.mkDerivation {
64 version = "1.06";
75 pname = "ndjbdns";
···15131614 nativeBuildInputs = [ autoreconfHook pkg-config ];
1715 buildInputs = [ ]
1818- ++ optional stdenv.isLinux systemd;
1616+ ++ lib.optional stdenv.isLinux systemd;
19172020- meta = {
1818+ meta = with lib; {
2119 description = "A brand new release of the Djbdns";
2220 longDescription = ''
2321 Djbdns is a fully‐fledged Domain Name System(DNS), originally written by the eminent author of qmail, Dr. D J Bernstein.
+2-4
pkgs/tools/networking/ngrok/default.nix
···11{ lib, stdenv, fetchurl }:
2233-with lib;
44-53let versions = lib.importJSON ./versions.json;
64 arch = if stdenv.isi686 then "386"
75 else if stdenv.isx86_64 then "amd64"
···3735 # Stripping causes SEGFAULT on x86_64-darwin
3836 dontStrip = true;
39374040- meta = {
3838+ meta = with lib; {
4139 description = "Allows you to expose a web server running on your local machine to the internet";
4240 homepage = "https://ngrok.com/";
4343- sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
4141+ sourceProvenance = with sourceTypes; [ binaryNativeCode ];
4442 license = licenses.unfree;
4543 platforms = [ "i686-linux" "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
4644 maintainers = with maintainers; [ bobvanderlinden brodes ];
+12-13
pkgs/tools/networking/openssh/common.nix
···3030, linkOpenssl ? true
3131}:
32323333-with lib;
3433stdenv.mkDerivation rec {
3534 inherit pname version src;
3635···5756 # This is not the same as the libkrb5 from the inputs! pkgs.libkrb5 is
5857 # needed here to access krb5-config in order to cross compile. See:
5958 # https://github.com/NixOS/nixpkgs/pull/107606
6060- ++ optional withKerberos pkgs.libkrb5
5959+ ++ lib.optional withKerberos pkgs.libkrb5
6160 ++ extraNativeBuildInputs;
6261 buildInputs = [ zlib openssl libedit ]
6363- ++ optional withFIDO libfido2
6464- ++ optional withKerberos libkrb5
6565- ++ optional stdenv.isLinux pam;
6262+ ++ lib.optional withFIDO libfido2
6363+ ++ lib.optional withKerberos libkrb5
6464+ ++ lib.optional stdenv.isLinux pam;
66656766 preConfigure = ''
6867 # Setting LD causes `configure' and `make' to disagree about which linker
···8079 "--with-libedit=yes"
8180 "--disable-strip"
8281 (if stdenv.isLinux then "--with-pam" else "--without-pam")
8383- ] ++ optional (etcDir != null) "--sysconfdir=${etcDir}"
8484- ++ optional withFIDO "--with-security-key-builtin=yes"
8585- ++ optional withKerberos (assert libkrb5 != null; "--with-kerberos5=${libkrb5}")
8686- ++ optional stdenv.isDarwin "--disable-libutil"
8787- ++ optional (!linkOpenssl) "--without-openssl"
8282+ ] ++ lib.optional (etcDir != null) "--sysconfdir=${etcDir}"
8383+ ++ lib.optional withFIDO "--with-security-key-builtin=yes"
8484+ ++ lib.optional withKerberos (assert libkrb5 != null; "--with-kerberos5=${libkrb5}")
8585+ ++ lib.optional stdenv.isDarwin "--disable-libutil"
8686+ ++ lib.optional (!linkOpenssl) "--without-openssl"
8887 ++ extraConfigureFlags;
89889089 ${if stdenv.hostPlatform.isStatic then "NIX_LDFLAGS" else null}= [ "-laudit" ] ++ lib.optionals withKerberos [ "-lkeyutils" ];
···97969897 doCheck = true;
9998 enableParallelChecking = false;
100100- nativeCheckInputs = optional (!stdenv.isDarwin) hostname;
9999+ nativeCheckInputs = lib.optional (!stdenv.isDarwin) hostname;
101100 preCheck = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
102101 # construct a dummy HOME
103102 export HOME=$(realpath ../dummy-home)
···145144 # integration tests hard to get working on darwin with its shaky
146145 # sandbox
147146 # t-exec tests fail on musl
148148- checkTarget = optional (!stdenv.isDarwin && !stdenv.hostPlatform.isMusl) "t-exec"
147147+ checkTarget = lib.optional (!stdenv.isDarwin && !stdenv.hostPlatform.isMusl) "t-exec"
149148 # other tests are less demanding of the environment
150149 ++ [ "unit" "file-tests" "interop-tests" ];
151150···165164 borgbackup-integration = nixosTests.borgbackup;
166165 };
167166168168- meta = {
167167+ meta = with lib; {
169168 description = "An implementation of the SSH protocol${extraDesc}";
170169 homepage = "https://www.openssh.com/";
171170 changelog = "https://www.openssh.com/releasenotes.html";
+1-3
pkgs/tools/networking/snabb/default.nix
···33, fetchFromGitHub
44}:
5566-with lib;
77-86stdenv.mkDerivation rec {
97 pname = "snabb";
108 version = "2022.10";
···2119 cp src/snabb $out/bin
2220 '';
23212424- meta = {
2222+ meta = with lib; {
2523 homepage = "https://github.com/SnabbCo/snabbswitch";
2624 description = "Simple and fast packet networking toolkit";
2725 longDescription = ''