···48 scope = "Maintain Cinnamon desktop environment and applications made by the LinuxMint team.";
49 };
500000000051 deshaw = {
52 # Verify additions to this team with at least one already existing member of the team.
53 members = [
···48 scope = "Maintain Cinnamon desktop environment and applications made by the LinuxMint team.";
49 };
5051+ chia = {
52+ members = [
53+ atemu
54+ lourkeur
55+ ];
56+ scope = "Maintain the Chia blockchain and its dependencies";
57+ };
58+59 deshaw = {
60 # Verify additions to this team with at least one already existing member of the team.
61 members = [
+7
nixos/lib/build-vms.nix
···36 [ ../modules/virtualisation/qemu-vm.nix
37 ../modules/testing/test-instrumentation.nix # !!! should only get added for automated test runs
38 { key = "no-manual"; documentation.nixos.enable = false; }
000000039 { key = "nodes"; _module.args.nodes = nodes; }
40 ] ++ optional minimal ../modules/testing/minimal-kernel.nix;
41 };
···36 [ ../modules/virtualisation/qemu-vm.nix
37 ../modules/testing/test-instrumentation.nix # !!! should only get added for automated test runs
38 { key = "no-manual"; documentation.nixos.enable = false; }
39+ { key = "no-revision";
40+ # Make the revision metadata constant, in order to avoid needless retesting.
41+ # The human version (e.g. 21.05-pre) is left as is, because it is useful
42+ # for external modules that test with e.g. nixosTest and rely on that
43+ # version number.
44+ config.system.nixos.revision = "constant-nixos-revision";
45+ }
46 { key = "nodes"; _module.args.nodes = nodes; }
47 ] ++ optional minimal ../modules/testing/minimal-kernel.nix;
48 };
···2021 mkZoneFileName = name: if name == "." then "root" else name;
2200000000023 nsdEnv = pkgs.buildEnv {
24 name = "nsd-env";
25···34 echo "|- checking zone '$out/zones/$zoneFile'"
35 ${nsdPkg}/sbin/nsd-checkzone "$zoneFile" "$zoneFile" || {
36 if grep -q \\\\\\$ "$zoneFile"; then
37- echo zone "$zoneFile" contains escaped dollar signes \\\$
38- echo Escaping them is not needed any more. Please make shure \
39- to unescape them where they prefix a variable name
40 fi
4142 exit 1
···44 done
4546 echo "checking configuration file"
0000047 ${nsdPkg}/sbin/nsd-checkconf $out/nsd.conf
0048 '';
49 };
50
···2021 mkZoneFileName = name: if name == "." then "root" else name;
2223+ # replaces include: directives for keys with fake keys for nsd-checkconf
24+ injectFakeKeys = keys: concatStrings
25+ (mapAttrsToList
26+ (keyName: keyOptions: ''
27+ fakeKey="$(${pkgs.bind}/bin/tsig-keygen -a ${escapeShellArgs [ keyOptions.algorithm keyName ]} | grep -oP "\s*secret \"\K.*(?=\";)")"
28+ sed "s@^\s*include:\s*\"${stateDir}/private/${keyName}\"\$@secret: $fakeKey@" -i $out/nsd.conf
29+ '')
30+ keys);
31+32 nsdEnv = pkgs.buildEnv {
33 name = "nsd-env";
34···43 echo "|- checking zone '$out/zones/$zoneFile'"
44 ${nsdPkg}/sbin/nsd-checkzone "$zoneFile" "$zoneFile" || {
45 if grep -q \\\\\\$ "$zoneFile"; then
46+ echo zone "$zoneFile" contains escaped dollar signs \\\$
47+ echo Escaping them is not needed any more. Please make sure \
48+ to unescape them where they prefix a variable name.
49 fi
5051 exit 1
···53 done
5455 echo "checking configuration file"
56+ # Save original config file including key references...
57+ cp $out/nsd.conf{,.orig}
58+ # ...inject mock keys into config
59+ ${injectFakeKeys cfg.keys}
60+ # ...do the checkconf
61 ${nsdPkg}/sbin/nsd-checkconf $out/nsd.conf
62+ # ... and restore original config file.
63+ mv $out/nsd.conf{.orig,}
64 '';
65 };
66
···1-#!/usr/bin/env bash
2-3-###
4-### This script runs 'nix-build' with ./fetch-source.nix and copies a subset
5-### of the resulting store path into the current working directory.
6-###
7-### To disable running chmod, you may set the environment
8-### variable "FIX_RIGHTS" to "no".
9-###
10-11-set -euo pipefail
12-13-# 'nix-build' command
14-NIX_BUILD_BIN="${NIX_BUILD_BIN:-"/usr/bin/env nix-build"}"
15-16-# where to place the yarn2nix source
17-TARGET_DIR="${TARGET_DIR:-"./yarn2nix"}"
18-19-# whether to run 'chmod -R u=rwX,g=rX,o-rwx' on copied files in $TARGET_DIR
20-FIX_RIGHTS="${FIX_RIGHTS:-"yes"}"
21-22-fetch_git_source() {
23- [[ -f ./fetch-source.nix ]] && ret="$($NIX_BUILD_BIN --no-out-link ./fetch-source.nix)" && ec="$?" || ec="$?"
24- if [[ "$ec" == "0" ]]; then
25- echo "$ret"
26- else
27- printf "error: failed at 'fetch_git_source()' with '%s'" "$ret"
28- fi
29-}
30-31-result="$(fetch_git_source)"
32-if [[ "$result" == "/nix/store"* ]]; then
33- mkdir -p "$TARGET_DIR"
34- cp -Rv \
35- "${result}/"{bin,internal,lib,nix,default.nix,package.json,yarn.nix,yarn.lock,LICENSE.txt} \
36- "$TARGET_DIR"
37- [[ "$FIX_RIGHTS" = "yes" ]] \
38- && chmod -v "u=rwX,g=rX,o-rwx" -R \
39- "$TARGET_DIR/"{bin,internal,lib,nix,default.nix,package.json,yarn.nix,yarn.lock,LICENSE.txt}
40-fi
···642 rdiff_backup = rdiff-backup; # added 2014-11-23
643 rdmd = dtools; # added 2017-08-19
644 readline80 = throw "readline-8.0 is no longer supported in nixpkgs, please use 'readline' for main supported version or 'readline81' for most recent version"; # added 2021-04-22
0645 rhc = throw "rhc was deprecated on 2019-04-09: abandoned by upstream.";
646 rng_tools = rng-tools; # added 2018-10-24
647 robomongo = robo3t; #added 2017-09-28
···642 rdiff_backup = rdiff-backup; # added 2014-11-23
643 rdmd = dtools; # added 2017-08-19
644 readline80 = throw "readline-8.0 is no longer supported in nixpkgs, please use 'readline' for main supported version or 'readline81' for most recent version"; # added 2021-04-22
645+ retroshare = throw "retroshare was removed because it was broken"; # added 2021-05-17
646 rhc = throw "rhc was deprecated on 2019-04-09: abandoned by upstream.";
647 rng_tools = rng-tools; # added 2018-10-24
648 robomongo = robo3t; #added 2017-09-28