git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/github-runner: init at v2.277.1 (#116775)

* github-runner: init at 2.277.1 * nixos/github-runner: initial version * nixos/github-runner: add warning if tokenFile in Nix store * github-runner: don't accept unexpected attrs * github-runner: formatting nits * github-runner: add pre and post hooks to checkPhase * nixos/github-runner: update ExecStartPre= comment * nixos/github-runner: adapt tokenFile option description Also note that not only a change to the option value will trigger a reconfiguration but also modifications to the file's content. * nixos/github-runner: remove mkDefault for DynamicUser= * nixos/github-runner: create a parent for systemd dirs Adds a parent directory "github-runner/" to all of the systemd lifecycle directories StateDirectory=, RuntimeDirectory= and LogDirectory=. Doing this has two motivations: 1. Something like this would required if we want to support multiple runners configurations. Please note that this is already possible using NixOS containers. 2. Having an additional parent directory makes it easier to remap any of the directories. Without a parent, systemd is going to complain if, for example, the given StateDirectory= is a symlink. * nixos/github-runner: use specifier to get abs runtime path * nixos/github-runner: use hostname as default for option `name` Until now, the runner registration did not set the `--name` argument if the configuration option was `null`, the default for the option. According to GitHub's documentation, this instructs the registration script to use the machine's hostname. This commit causes the registration to always pass the `--name` argument to the runner configuration script. The option now defaults to `networking.hostName` which should be always set on NixOS. This change becomes necessary as the systemd service name includes the name of the runner since fcfa809 and, hence, expects it to be set. Thus, an unset `name` option leads to an error. * nixos/github-runner: use types.str for `name` option Forcing a `name` option to comply with a pattern which could also be used as a hostname is probably not required by GitHub. * nixos/github-runner: pass dir paths explicitly for ExecStartPre= * nixos/github-runner: update variable and script naming * nixos/github-runner: let systemd choose the user/group User and group naming restrictions are a complex topic [1] that I don't even want to touch. Let systemd figure out the username and group and reference it in our scripts through the USER environment variable. [1] https://systemd.io/USER_NAMES/ * Revert "nixos/github-runner: use types.str for `name` option" The escaping applied to the subdirectory paths given to StateDirectory=, RuntimeDirectory= and LogsDirectory= apparently doesn't use the same strategy that is used to escape unit names (cf. systemd-escape(1)). This makes it unreasonably hard to construct reliable paths which work for StateDirectory=/RuntimeDirectory=/LogsDirectory= and ExecStartPre=. Against this background, I decided to (re-)apply restrictions to the name a user might give for the GitHub runner. The pattern for `networking.hostName` seems like a reasonable choice, also as its value is the default if the `name` option isn't set. This reverts commit 193ac67ba337990c22126da24a775c497dbc7e7d. * nixos/github-runner: use types.path for `tokenFile` option * nixos/github-runner: escape options used as shell arguments * nixos/github-runner: wait for network-online.target * github-runner: ignore additional online tests

commitf4af2f267a4a2e47277078e498b69400b6859478 authorVincent Haupert <mail@vincent-haupert.de> dateSat 10 Apr 2021, 12:17 (6 years ago) parent8cbaf51
10 files changed+1921
nixos/modules/module-list.nix+1 nixos/modules/services/continuous-integration/github-runner.nix+299 pkgs/development/tools/continuous-integration/github-runner/default.nix+265 pkgs/development/tools/continuous-integration/github-runner/deps.nix+1217 pkgs/development/tools/continuous-integration/github-runner/patches/dir-proj.patch+53 pkgs/development/tools/continuous-integration/github-runner/patches/dont-install-systemd-service.patch+15 pkgs/development/tools/continuous-integration/github-runner/patches/host-context-dirs.patch+20 pkgs/development/tools/continuous-integration/github-runner/patches/ignore-self-update.patch+24 pkgs/development/tools/continuous-integration/github-runner/patches/use-get-directory-for-diag.patch+25 pkgs/top-level/all-packages.nix+2
nixos/modules/module-list.nix+1
@@ -288,6 +288,7 @@
288288 ./services/continuous-integration/hail.nix
289289 ./services/continuous-integration/hercules-ci-agent/default.nix
290290 ./services/continuous-integration/hydra/default.nix
291+ ./services/continuous-integration/github-runner.nix
291292 ./services/continuous-integration/gitlab-runner.nix
292293 ./services/continuous-integration/gocd-agent/default.nix
293294 ./services/continuous-integration/gocd-server/default.nix
nixos/modules/services/continuous-integration/github-runner.nixnew file+299
@@ -0,0 +1,299 @@
1+{ config, pkgs, lib, ... }:
2+with lib;
3+let
4+ cfg = config.services.github-runner;
5+ svcName = "github-runner";
6+ systemdDir = "${svcName}/${cfg.name}";
7+ # %t: Runtime directory root (usually /run); see systemd.unit(5)
8+ runtimeDir = "%t/${systemdDir}";
9+ # %S: State directory root (usually /var/lib); see systemd.unit(5)
10+ stateDir = "%S/${systemdDir}";
11+ # %L: Log directory root (usually /var/log); see systemd.unit(5)
12+ logsDir = "%L/${systemdDir}";
13+in
14+{
15+ options.services.github-runner = {
16+ enable = mkOption {
17+ default = false;
18+ example = true;
19+ description = ''
20+ Whether to enable GitHub Actions runner.
21+
22+ Note: GitHub recommends using self-hosted runners with private repositories only. Learn more here:
23+ <link xlink:href="https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners"
24+ >About self-hosted runners</link>.
25+ '';
26+ type = lib.types.bool;
27+ };
28+
29+ url = mkOption {
30+ type = types.str;
31+ description = ''
32+ Repository to add the runner to.
33+
34+ Changing this option triggers a new runner registration.
35+ '';
36+ example = "https://github.com/nixos/nixpkgs";
37+ };
38+
39+ tokenFile = mkOption {
40+ type = types.path;
41+ description = ''
42+ The full path to a file which contains the runner registration token.
43+ The file should contain exactly one line with the token without any newline.
44+ The token can be used to re-register a runner of the same name but is time-limited.
45+
46+ Changing this option or the file's content triggers a new runner registration.
47+ '';
48+ example = "/run/secrets/github-runner/nixos.token";
49+ };
50+
51+ name = mkOption {
52+ # Same pattern as for `networking.hostName`
53+ type = types.strMatching "^$|^[[:alnum:]]([[:alnum:]_-]{0,61}[[:alnum:]])?$";
54+ description = ''
55+ Name of the runner to configure. Defaults to the hostname.
56+
57+ Changing this option triggers a new runner registration.
58+ '';
59+ example = "nixos";
60+ default = config.networking.hostName;
61+ };
62+
63+ runnerGroup = mkOption {
64+ type = types.nullOr types.str;
65+ description = ''
66+ Name of the runner group to add this runner to (defaults to the default runner group).
67+
68+ Changing this option triggers a new runner registration.
69+ '';
70+ default = null;
71+ };
72+
73+ extraLabels = mkOption {
74+ type = types.listOf types.str;
75+ description = ''
76+ Extra labels in addition to the default (<literal>["self-hosted", "Linux", "X64"]</literal>).
77+
78+ Changing this option triggers a new runner registration.
79+ '';
80+ example = literalExample ''[ "nixos" ]'';
81+ default = [ ];
82+ };
83+
84+ replace = mkOption {
85+ type = types.bool;
86+ description = ''
87+ Replace any existing runner with the same name.
88+
89+ Without this flag, registering a new runner with the same name fails.
90+ '';
91+ default = false;
92+ };
93+
94+ extraPackages = mkOption {
95+ type = types.listOf types.package;
96+ description = ''
97+ Extra packages to add to <literal>PATH</literal> of the service to make them available to workflows.
98+ '';
99+ default = [ ];
100+ };
101+ };
102+
103+ config = mkIf cfg.enable {
104+ warnings = optionals (isStorePath cfg.tokenFile) [
105+ ''
106+ `services.github-runner.tokenFile` points to the Nix store and, therefore, is world-readable.
107+ Consider using a path outside of the Nix store to keep the token private.
108+ ''
109+ ];
110+
111+ systemd.services.${svcName} = {
112+ description = "GitHub Actions runner";
113+
114+ wantedBy = [ "multi-user.target" ];
115+ wants = [ "network-online.target" ];
116+ after = [ "network.target" "network-online.target" ];
117+
118+ environment = {
119+ HOME = runtimeDir;
120+ RUNNER_ROOT = runtimeDir;
121+ };
122+
123+ path = (with pkgs; [
124+ bash
125+ coreutils
126+ git
127+ gnutar
128+ gzip
129+ ]) ++ [
130+ config.nix.package
131+ ] ++ cfg.extraPackages;
132+
133+ serviceConfig = rec {
134+ ExecStart = "${pkgs.github-runner}/bin/runsvc.sh";
135+
136+ # Does the following, sequentially:
137+ # - Copy the current and the previous `tokenFile` to the $RUNTIME_DIRECTORY
138+ # and make it accessible to the service user to allow for a content
139+ # comparison.
140+ # - If the module configuration or the token has changed, clear the state directory.
141+ # - Configure the runner.
142+ # - Copy the configured `tokenFile` to the $STATE_DIRECTORY and make it
143+ # inaccessible to the service user.
144+ # - Set up the directory structure by creating the necessary symlinks.
145+ ExecStartPre =
146+ let
147+ # Wrapper script which expects the full path of the state, runtime and logs
148+ # directory as arguments. Overrides the respective systemd variables to provide
149+ # unambiguous directory names. This becomes relevant, for example, if the
150+ # caller overrides any of the StateDirectory=, RuntimeDirectory= or LogDirectory=
151+ # to contain more than one directory. This causes systemd to set the respective
152+ # environment variables with the path of all of the given directories, separated
153+ # by a colon.
154+ writeScript = name: lines: pkgs.writeShellScript "${svcName}-${name}.sh" ''
155+ set -euo pipefail
156+
157+ STATE_DIRECTORY="$1"
158+ RUNTIME_DIRECTORY="$2"
159+ LOGS_DIRECTORY="$3"
160+
161+ ${lines}
162+ '';
163+ currentConfigPath = "$STATE_DIRECTORY/.nixos-current-config.json";
164+ runnerRegistrationConfig = getAttrs [ "name" "tokenFile" "url" "runnerGroup" "extraLabels" ] cfg;
165+ newConfigPath = builtins.toFile "${svcName}-config.json" (builtins.toJSON runnerRegistrationConfig);
166+ currentConfigTokenFilename = ".current-token";
167+ newConfigTokenFilename = ".new-token";
168+ runnerCredFiles = [
169+ ".credentials"
170+ ".credentials_rsaparams"
171+ ".runner"
172+ ];
173+ ownConfigTokens = writeScript "own-config-tokens" ''
174+ # Copy current and new token file to runtime dir and make it accessible to the service user
175+ cp ${escapeShellArg cfg.tokenFile} "$RUNTIME_DIRECTORY/${newConfigTokenFilename}"
176+ chmod 600 "$RUNTIME_DIRECTORY/${newConfigTokenFilename}"
177+ chown "$USER" "$RUNTIME_DIRECTORY/${newConfigTokenFilename}"
178+
179+ if [[ -e "$STATE_DIRECTORY/${currentConfigTokenFilename}" ]]; then
180+ cp "$STATE_DIRECTORY/${currentConfigTokenFilename}" "$RUNTIME_DIRECTORY/${currentConfigTokenFilename}"
181+ chmod 600 "$RUNTIME_DIRECTORY/${currentConfigTokenFilename}"
182+ chown "$USER" "$RUNTIME_DIRECTORY/${currentConfigTokenFilename}"
183+ fi
184+ '';
185+ disownConfigTokens = writeScript "disown-config-tokens" ''
186+ # Make the token inaccessible to the runner service user
187+ chmod 600 "$STATE_DIRECTORY/${currentConfigTokenFilename}"
188+ chown root:root "$STATE_DIRECTORY/${currentConfigTokenFilename}"
189+ '';
190+ unconfigureRunner = writeScript "unconfigure" ''
191+ differs=
192+ # Set `differs = 1` if current and new runner config differ or if `currentConfigPath` does not exist
193+ ${pkgs.diffutils}/bin/diff -q '${newConfigPath}' "${currentConfigPath}" >/dev/null 2>&1 || differs=1
194+ # Also trigger a registration if the token content changed
195+ ${pkgs.diffutils}/bin/diff -q \
196+ "$RUNTIME_DIRECTORY"/{${currentConfigTokenFilename},${newConfigTokenFilename}} \
197+ >/dev/null 2>&1 || differs=1
198+
199+ if [[ -n "$differs" ]]; then
200+ echo "Config has changed, removing old runner state."
201+ echo "The old runner will still appear in the GitHub Actions UI." \
202+ "You have to remove it manually."
203+ find "$STATE_DIRECTORY/" -mindepth 1 -delete
204+ fi
205+ '';
206+ configureRunner = writeScript "configure" ''
207+ empty=$(ls -A "$STATE_DIRECTORY")
208+ if [[ -z "$empty" ]]; then
209+ echo "Configuring GitHub Actions Runner"
210+ token=$(< "$RUNTIME_DIRECTORY"/${newConfigTokenFilename})
211+ RUNNER_ROOT="$STATE_DIRECTORY" ${pkgs.github-runner}/bin/config.sh \
212+ --unattended \
213+ --work "$RUNTIME_DIRECTORY" \
214+ --url ${escapeShellArg cfg.url} \
215+ --token "$token" \
216+ --labels ${escapeShellArg (concatStringsSep "," cfg.extraLabels)} \
217+ --name ${escapeShellArg cfg.name} \
218+ ${optionalString cfg.replace "--replace"} \
219+ ${optionalString (cfg.runnerGroup != null) "--runnergroup ${escapeShellArg cfg.runnerGroup}"}
220+
221+ # Move the automatically created _diag dir to the logs dir
222+ mkdir -p "$STATE_DIRECTORY/_diag"
223+ cp -r "$STATE_DIRECTORY/_diag/." "$LOGS_DIRECTORY/"
224+ rm -rf "$STATE_DIRECTORY/_diag/"
225+
226+ # Cleanup token from config
227+ rm -f "$RUNTIME_DIRECTORY"/${currentConfigTokenFilename}
228+ mv "$RUNTIME_DIRECTORY"/${newConfigTokenFilename} "$STATE_DIRECTORY/${currentConfigTokenFilename}"
229+
230+ # Symlink to new config
231+ ln -s '${newConfigPath}' "${currentConfigPath}"
232+ fi
233+ '';
234+ setupRuntimeDir = writeScript "setup-runtime-dirs" ''
235+ # Link _diag dir
236+ ln -s "$LOGS_DIRECTORY" "$RUNTIME_DIRECTORY/_diag"
237+
238+ # Link the runner credentials to the runtime dir
239+ ln -s "$STATE_DIRECTORY"/{${lib.concatStringsSep "," runnerCredFiles}} "$RUNTIME_DIRECTORY/"
240+ '';
241+ in
242+ map (x: "${x} ${escapeShellArgs [ stateDir runtimeDir logsDir ]}") [
243+ "+${ownConfigTokens}" # runs as root
244+ unconfigureRunner
245+ configureRunner
246+ "+${disownConfigTokens}" # runs as root
247+ setupRuntimeDir
248+ ];
249+
250+ # Contains _diag
251+ LogsDirectory = [ systemdDir ];
252+ # Default RUNNER_ROOT which contains ephemeral Runner data
253+ RuntimeDirectory = [ systemdDir ];
254+ # Home of persistent runner data, e.g., credentials
255+ StateDirectory = [ systemdDir ];
256+ StateDirectoryMode = "0700";
257+ WorkingDirectory = runtimeDir;
258+
259+ # By default, use a dynamically allocated user
260+ DynamicUser = true;
261+
262+ KillMode = "process";
263+ KillSignal = "SIGTERM";
264+
265+ # Hardening (may overlap with DynamicUser=)
266+ # The following options are only for optimizing:
267+ # systemd-analyze security github-runner
268+ AmbientCapabilities = "";
269+ CapabilityBoundingSet = "";
270+ # ProtectClock= adds DeviceAllow=char-rtc r
271+ DeviceAllow = "";
272+ LockPersonality = true;
273+ NoNewPrivileges = true;
274+ PrivateDevices = true;
275+ PrivateMounts = true;
276+ PrivateTmp = true;
277+ PrivateUsers = true;
278+ ProtectClock = true;
279+ ProtectControlGroups = true;
280+ ProtectHome = true;
281+ ProtectHostname = true;
282+ ProtectKernelLogs = true;
283+ ProtectKernelModules = true;
284+ ProtectKernelTunables = true;
285+ ProtectSystem = "strict";
286+ RemoveIPC = true;
287+ RestrictNamespaces = true;
288+ RestrictRealtime = true;
289+ RestrictSUIDSGID = true;
290+ UMask = "0066";
291+
292+ # Needs network access
293+ PrivateNetwork = false;
294+ # Cannot be true due to Node
295+ MemoryDenyWriteExecute = false;
296+ };
297+ };
298+ };
299+}
pkgs/development/tools/continuous-integration/github-runner/default.nixnew file+265
@@ -0,0 +1,265 @@
1+{ autoPatchelfHook
2+, coreutils
3+, curl
4+, dotnetCorePackages
5+, dotnetPackages
6+, fetchFromGitHub
7+, fetchurl
8+, git
9+, glibc
10+, icu
11+, kerberos
12+, lib
13+, linkFarm
14+, lttng-ust
15+, makeWrapper
16+, nodejs-12_x
17+, openssl
18+, stdenv
19+, zlib
20+}:
21+let
22+ pname = "github-actions-runner";
23+ version = "2.277.1";
24+
25+ deps = (import ./deps.nix { inherit fetchurl; });
26+ nugetPackages = map
27+ (x: {
28+ name = "${x.name}.nupkg";
29+ path = "${x}";
30+ })
31+ deps;
32+ nugetSource = linkFarm "${pname}-${version}-packages" nugetPackages;
33+
34+ dotnetSdk = dotnetCorePackages.sdk_3_1;
35+ runtimeId = "linux-x64";
36+
37+ disabledTest = [
38+ # Self-updating is patched out, hence this test will fail
39+ "FullyQualifiedName!=GitHub.Runner.Common.Tests.Listener.RunnerL0.TestRunOnceHandleUpdateMessage"
40+ ] ++ map
41+ # Online tests
42+ (x: "FullyQualifiedName!=GitHub.Runner.Common.Tests.Worker.ActionManagerL0.PrepareActions_${x}")
43+ [
44+ "DownloadActionFromGraph"
45+ "DownloadActionFromGraph_Legacy"
46+ "NotPullOrBuildImagesMultipleTimes"
47+ "NotPullOrBuildImagesMultipleTimes_Legacy"
48+ "RepositoryActionWithActionYamlFile_DockerHubImage"
49+ "RepositoryActionWithActionYamlFile_DockerHubImage_Legacy"
50+ "RepositoryActionWithActionfileAndDockerfile"
51+ "RepositoryActionWithActionfileAndDockerfile_Legacy"
52+ "RepositoryActionWithActionfile_DockerHubImage"
53+ "RepositoryActionWithActionfile_DockerHubImage_Legacy"
54+ "RepositoryActionWithActionfile_Dockerfile"
55+ "RepositoryActionWithActionfile_Dockerfile_Legacy"
56+ "RepositoryActionWithActionfile_DockerfileRelativePath"
57+ "RepositoryActionWithActionfile_DockerfileRelativePath_Legacy"
58+ "RepositoryActionWithActionfile_Node"
59+ "RepositoryActionWithActionfile_Node_Legacy"
60+ "RepositoryActionWithDockerfile"
61+ "RepositoryActionWithDockerfile_Legacy"
62+ "RepositoryActionWithDockerfileInRelativePath"
63+ "RepositoryActionWithDockerfileInRelativePath_Legacy"
64+ "RepositoryActionWithDockerfilePrepareActions_Repository"
65+ "RepositoryActionWithInvalidWrapperActionfile_Node"
66+ "RepositoryActionWithInvalidWrapperActionfile_Node_Legacy"
67+ "RepositoryActionWithWrapperActionfile_PreSteps"
68+ "RepositoryActionWithWrapperActionfile_PreSteps_Legacy"
69+ ] ++ map
70+ (x: "FullyQualifiedName!=GitHub.Runner.Common.Tests.DotnetsdkDownloadScriptL0.${x}")
71+ [
72+ "EnsureDotnetsdkBashDownloadScriptUpToDate"
73+ "EnsureDotnetsdkPowershellDownloadScriptUpToDate"
74+ ];
75+ testFilterXml = lib.concatStringsSep "&amp;" disabledTest;
76+in
77+stdenv.mkDerivation rec {
78+ inherit pname version;
79+
80+ src = fetchFromGitHub {
81+ owner = "actions";
82+ repo = "runner";
83+ rev = "183a3dd9a0d4d51feddc5fe9fa6c3b5f8b08343d"; # v${version}
84+ sha256 = "sha256-fQH4QwdR8E76ckUjMCaKOsDjNoVBIWAw2YcFRrVucX8=";
85+ };
86+
87+ nativeBuildInputs = [
88+ dotnetSdk
89+ dotnetPackages.Nuget
90+ makeWrapper
91+ autoPatchelfHook
92+ ];
93+
94+ buildInputs = [
95+ curl # libcurl.so.4
96+ kerberos # libgssapi_krb5.so.2
97+ lttng-ust # liblttng-ust.so.0
98+ stdenv.cc.cc.lib # libstdc++.so.6
99+ zlib # libz.so.1
100+ icu
101+ ];
102+
103+ patches = [
104+ # Don't run Git, no restore on build/test
105+ ./patches/dir-proj.patch
106+ # Replace some paths that originally point to Nix's read-only store
107+ ./patches/host-context-dirs.patch
108+ # Use GetDirectory() to obtain "diag" dir
109+ ./patches/use-get-directory-for-diag.patch
110+ # Don't try to install systemd service
111+ ./patches/dont-install-systemd-service.patch
112+ # Don't try to self-update runner (cannot be disabled, see https://github.com/actions/runner/issues/485)
113+ ./patches/ignore-self-update.patch
114+ ];
115+
116+ postPatch = ''
117+ # Relax the version requirement
118+ substituteInPlace src/global.json \
119+ --replace '3.1.302' '${dotnetSdk.version}'
120+
121+ # Disable specific tests
122+ substituteInPlace src/dir.proj \
123+ --replace 'dotnet test Test/Test.csproj' \
124+ "dotnet test Test/Test.csproj --filter '${testFilterXml}'"
125+
126+ # Fix FHS path
127+ substituteInPlace src/Test/L0/Util/IOUtilL0.cs \
128+ --replace '/bin/ln' '${coreutils}/bin/ln'
129+ '';
130+
131+ configurePhase = ''
132+ runHook preConfigure
133+
134+ # Set up Nuget dependencies
135+ export HOME=$(mktemp -d)
136+ export DOTNET_CLI_TELEMETRY_OPTOUT=1
137+ export DOTNET_NOLOGO=1
138+
139+ # Never use nuget.org
140+ nuget sources Disable -Name "nuget.org"
141+
142+ # Restore the dependencies
143+ dotnet restore src/ActionsRunner.sln \
144+ --runtime "${runtimeId}" \
145+ --source "${nugetSource}"
146+
147+ runHook postConfigure
148+ '';
149+
150+ postConfigure = ''
151+ # `crossgen` dependency is called during build
152+ patchelf \
153+ --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
154+ --set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib ]}" \
155+ $HOME/.nuget/packages/microsoft.netcore.app.runtime.${runtimeId}/*/tools/crossgen
156+ '';
157+
158+ buildPhase = ''
159+ runHook preBuild
160+
161+ dotnet msbuild \
162+ -t:Build \
163+ -p:PackageRuntime="${runtimeId}" \
164+ -p:BUILDCONFIG="Release" \
165+ -p:RunnerVersion="${version}" \
166+ -p:GitInfoCommitHash="${src.rev}" \
167+ src/dir.proj
168+
169+ runHook postBuild
170+ '';
171+
172+ doCheck = true;
173+
174+ checkInputs = [ git ];
175+
176+ checkPhase = ''
177+ runHook preCheck
178+
179+ mkdir -p _layout/externals
180+ ln -s ${nodejs-12_x} _layout/externals/node12
181+
182+ # BUILDCONFIG needs to be "Debug"
183+ dotnet msbuild \
184+ -t:test \
185+ -p:PackageRuntime="${runtimeId}" \
186+ -p:BUILDCONFIG="Debug" \
187+ -p:RunnerVersion="${version}" \
188+ -p:GitInfoCommitHash="${src.rev}" \
189+ src/dir.proj
190+
191+ runHook postCheck
192+ '';
193+
194+ installPhase = ''
195+ runHook preInstall
196+
197+ # Copy the built binaries to lib/ instead of bin/ as they
198+ # have to be wrapped in the fixup phase to work
199+ mkdir -p $out/lib
200+ cp -r _layout/bin/. $out/lib/
201+
202+ # Delete debugging files
203+ find "$out/lib" -type f -name '*.pdb' -delete
204+
205+ # Install the helper scripts to bin/ to resemble the upstream package
206+ mkdir -p $out/bin
207+ install -m755 src/Misc/layoutbin/runsvc.sh $out/bin/
208+ install -m755 src/Misc/layoutbin/RunnerService.js $out/lib/
209+ install -m755 src/Misc/layoutroot/run.sh $out/lib/
210+ install -m755 src/Misc/layoutroot/config.sh $out/lib/
211+ install -m755 src/Misc/layoutroot/env.sh $out/lib/
212+
213+ # Rewrite reference in helper scripts from bin/ to lib/
214+ substituteInPlace $out/lib/run.sh --replace '"$DIR"/bin' "$out/lib"
215+ substituteInPlace $out/lib/config.sh --replace './bin' "$out/lib"
216+
217+ # Make paths absolute
218+ substituteInPlace $out/bin/runsvc.sh \
219+ --replace './externals' "$out/externals" \
220+ --replace './bin' "$out/lib"
221+
222+ # The upstream package includes Node 12 and expects it at the path
223+ # externals/node12. As opposed to the official releases, we don't
224+ # link the Alpine Node flavor.
225+ mkdir -p $out/externals
226+ ln -s ${nodejs-12_x} $out/externals/node12
227+
228+ runHook postInstall
229+ '';
230+
231+ # Stripping breaks the binaries
232+ dontStrip = true;
233+
234+ postFixup = ''
235+ fix_rpath() {
236+ patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/lib/$1
237+ }
238+
239+ wrap() {
240+ makeWrapper $out/lib/$1 $out/bin/$1 \
241+ --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath (buildInputs ++ [ openssl ])} \
242+ ''${@:2}
243+ }
244+
245+ fix_rpath Runner.Listener
246+ fix_rpath Runner.PluginHost
247+ fix_rpath Runner.Worker
248+
249+ wrap Runner.Listener
250+ wrap Runner.PluginHost
251+ wrap Runner.Worker
252+ wrap run.sh
253+ wrap env.sh
254+
255+ wrap config.sh --prefix PATH : ${lib.makeBinPath [ glibc.bin ]}
256+ '';
257+
258+ meta = with lib; {
259+ description = "Self-hosted runner for GitHub Actions";
260+ homepage = "https://github.com/actions/runner";
261+ license = licenses.mit;
262+ maintainers = with maintainers; [ veehaitch ];
263+ platforms = [ "x86_64-linux" ];
264+ };
265+}
pkgs/development/tools/continuous-integration/github-runner/deps.nixnew file+1217
@@ -0,0 +1,1217 @@
1+{ fetchurl }:
2+let
3+ fetchNuGet = { name, version, sha256 }: fetchurl {
4+ inherit sha256;
5+ name = "${name}.${version}";
6+ url = "https://www.nuget.org/api/v2/package/${name}/${version}";
7+ };
8+in
9+[
10+
11+ (fetchNuGet {
12+ name = "Castle.Core";
13+ version = "4.4.0";
14+ sha256 = "0rpcbmyhckvlvp6vbzpj03c1gqz56ixc6f15vgmxmyf1g40c24pf";
15+ })
16+
17+ (fetchNuGet {
18+ name = "Microsoft.AspNetCore.App.Runtime.linux-x64";
19+ version = "3.1.8";
20+ sha256 = "140zr3nwkmf6xc52gq4iz6ycyh95fxy0jpgn637pkd9z423z8135";
21+ })
22+
23+ (fetchNuGet {
24+ name = "Microsoft.AspNet.WebApi.Client";
25+ version = "5.2.4";
26+ sha256 = "00fkczf69z2rwarcd8kjjdp47517a0ca6lggn72qbilsp03a5scj";
27+ })
28+
29+ (fetchNuGet {
30+ name = "Microsoft.IdentityModel.Logging";
31+ version = "5.2.1";
32+ sha256 = "1gpka9jm2gl6f07pcwzwvaxw9xq1a19i9fskn0qs921c5grhlp3g";
33+ })
34+
35+ (fetchNuGet {
36+ name = "Microsoft.IdentityModel.Tokens";
37+ version = "5.2.1";
38+ sha256 = "03v6145vr1winq8xxfikydicds4f10qmy1ybyz2gfimnzzx51w00";
39+ })
40+
41+ (fetchNuGet {
42+ name = "Microsoft.NetCore.App.Runtime.linux-x64";
43+ version = "3.1.8";
44+ sha256 = "1bv9n9wzsqf9g8h6z10p61xkcx8ad4nnip83qv8yyfvhr4kdmbsa";
45+ })
46+
47+ (fetchNuGet {
48+ name = "Microsoft.NETCore.Platforms";
49+ version = "1.0.1";
50+ sha256 = "01al6cfxp68dscl15z7rxfw9zvhm64dncsw09a1vmdkacsa2v6lr";
51+ })
52+
53+ (fetchNuGet {
54+ name = "Microsoft.NETCore.Platforms";
55+ version = "1.1.0";
56+ sha256 = "08vh1r12g6ykjygq5d3vq09zylgb84l63k49jc4v8faw9g93iqqm";
57+ })
58+
59+ (fetchNuGet {
60+ name = "Microsoft.NETCore.Platforms";
61+ version = "2.0.0";
62+ sha256 = "1fk2fk2639i7nzy58m9dvpdnzql4vb8yl8vr19r2fp8lmj9w2jr0";
63+ })
64+
65+ (fetchNuGet {
66+ name = "Microsoft.NETCore.Targets";
67+ version = "1.1.0";
68+ sha256 = "193xwf33fbm0ni3idxzbr5fdq3i2dlfgihsac9jj7whj0gd902nh";
69+ })
70+
71+ (fetchNuGet {
72+ name = "Microsoft.NET.Test.Sdk";
73+ version = "15.0.0";
74+ sha256 = "1ca9v53dphsgk22spilfwq1hjzp2sgrrj85v7hd7wfc6gjh31mb5";
75+ })
76+
77+ (fetchNuGet {
78+ name = "Microsoft.TestPlatform.ObjectModel";
79+ version = "15.0.0";
80+ sha256 = "0xqssz2y8jzqph6kv1fzy00wzjcnc2whhlf8jsszgpn69ld7f1rb";
81+ })
82+
83+ (fetchNuGet {
84+ name = "Microsoft.TestPlatform.TestHost";
85+ version = "15.0.0";
86+ sha256 = "1mi59wxwdqyzmkan0v9qrar96f50xs6k38xzv3l6ky859si2qk4b";
87+ })
88+
89+ (fetchNuGet {
90+ name = "Microsoft.Win32.Primitives";
91+ version = "4.0.1";
92+ sha256 = "1n8ap0cmljbqskxpf8fjzn7kh1vvlndsa75k01qig26mbw97k2q7";
93+ })
94+
95+ (fetchNuGet {
96+ name = "Microsoft.Win32.Primitives";
97+ version = "4.3.0";
98+ sha256 = "0j0c1wj4ndj21zsgivsc24whiya605603kxrbiw6wkfdync464wq";
99+ })
100+
101+ (fetchNuGet {
102+ name = "Microsoft.Win32.Registry";
103+ version = "4.0.0";
104+ sha256 = "1spf4m9pikkc19544p29a47qnhcd885klncahz133hbnyqbkmz9k";
105+ })
106+
107+ (fetchNuGet {
108+ name = "Microsoft.Win32.Registry";
109+ version = "4.4.0";
110+ sha256 = "088j2anh1rnkxdcycw5kgp97ahk7cj741y6kask84880835arsb6";
111+ })
112+
113+ (fetchNuGet {
114+ name = "Minimatch";
115+ version = "2.0.0";
116+ sha256 = "1k84q1bz1qq2nh35nip8vmi65wixsh5y7piln5b4n172xzhfqvx0";
117+ })
118+
119+ (fetchNuGet {
120+ name = "Moq";
121+ version = "4.11.0";
122+ sha256 = "08bnk80scjjqnkdbjam8grcqrw2rvj9z7556hiznac7in3fcp77w";
123+ })
124+
125+ (fetchNuGet {
126+ name = "NETStandard.Library";
127+ version = "1.6.0";
128+ sha256 = "0nmmv4yw7gw04ik8ialj3ak0j6pxa9spih67hnn1h2c38ba8h58k";
129+ })
130+
131+ (fetchNuGet {
132+ name = "NETStandard.Library";
133+ version = "1.6.1";
134+ sha256 = "1z70wvsx2d847a2cjfii7b83pjfs34q05gb037fdjikv5kbagml8";
135+ })
136+
137+ (fetchNuGet {
138+ name = "Newtonsoft.Json";
139+ version = "10.0.1";
140+ sha256 = "15ncqic3p2rzs8q8ppi0irl2miq75kilw4lh8yfgjq96id0ds3hv";
141+ })
142+
143+ (fetchNuGet {
144+ name = "Newtonsoft.Json";
145+ version = "11.0.2";
146+ sha256 = "1784xi44f4k8v1fr696hsccmwpy94bz7kixxqlri98zhcxn406b2";
147+ })
148+
149+ (fetchNuGet {
150+ name = "Newtonsoft.Json";
151+ version = "9.0.1";
152+ sha256 = "0mcy0i7pnfpqm4pcaiyzzji4g0c8i3a5gjz28rrr28110np8304r";
153+ })
154+
155+ (fetchNuGet {
156+ name = "Newtonsoft.Json.Bson";
157+ version = "1.0.1";
158+ sha256 = "1r1hvj5gjl466bya2bfl5aaj8rbwyf5x1msg710wf3k2llbci1xa";
159+ })
160+
161+ (fetchNuGet {
162+ name = "runtime.any.System.Collections";
163+ version = "4.3.0";
164+ sha256 = "0bv5qgm6vr47ynxqbnkc7i797fdi8gbjjxii173syrx14nmrkwg0";
165+ })
166+
167+ (fetchNuGet {
168+ name = "runtime.any.System.Diagnostics.Tools";
169+ version = "4.3.0";
170+ sha256 = "1wl76vk12zhdh66vmagni66h5xbhgqq7zkdpgw21jhxhvlbcl8pk";
171+ })
172+
173+ (fetchNuGet {
174+ name = "runtime.any.System.Diagnostics.Tracing";
175+ version = "4.3.0";
176+ sha256 = "00j6nv2xgmd3bi347k00m7wr542wjlig53rmj28pmw7ddcn97jbn";
177+ })
178+
179+ (fetchNuGet {
180+ name = "runtime.any.System.Globalization";
181+ version = "4.3.0";
182+ sha256 = "1daqf33hssad94lamzg01y49xwndy2q97i2lrb7mgn28656qia1x";
183+ })
184+
185+ (fetchNuGet {
186+ name = "runtime.any.System.Globalization.Calendars";
187+ version = "4.3.0";
188+ sha256 = "1ghhhk5psqxcg6w88sxkqrc35bxcz27zbqm2y5p5298pv3v7g201";
189+ })
190+
191+ (fetchNuGet {
192+ name = "runtime.any.System.IO";
193+ version = "4.3.0";
194+ sha256 = "0l8xz8zn46w4d10bcn3l4yyn4vhb3lrj2zw8llvz7jk14k4zps5x";
195+ })
196+
197+ (fetchNuGet {
198+ name = "runtime.any.System.Reflection";
199+ version = "4.3.0";
200+ sha256 = "02c9h3y35pylc0zfq3wcsvc5nqci95nrkq0mszifc0sjx7xrzkly";
201+ })
202+
203+ (fetchNuGet {
204+ name = "runtime.any.System.Reflection.Extensions";
205+ version = "4.3.0";
206+ sha256 = "0zyri97dfc5vyaz9ba65hjj1zbcrzaffhsdlpxc9bh09wy22fq33";
207+ })
208+
209+ (fetchNuGet {
210+ name = "runtime.any.System.Reflection.Primitives";
211+ version = "4.3.0";
212+ sha256 = "0x1mm8c6iy8rlxm8w9vqw7gb7s1ljadrn049fmf70cyh42vdfhrf";
213+ })
214+
215+ (fetchNuGet {
216+ name = "runtime.any.System.Resources.ResourceManager";
217+ version = "4.3.0";
218+ sha256 = "03kickal0iiby82wa5flar18kyv82s9s6d4xhk5h4bi5kfcyfjzl";
219+ })
220+
221+ (fetchNuGet {
222+ name = "runtime.any.System.Runtime";
223+ version = "4.3.0";
224+ sha256 = "1cqh1sv3h5j7ixyb7axxbdkqx6cxy00p4np4j91kpm492rf4s25b";
225+ })
226+
227+ (fetchNuGet {
228+ name = "runtime.any.System.Runtime.Handles";
229+ version = "4.3.0";
230+ sha256 = "0bh5bi25nk9w9xi8z23ws45q5yia6k7dg3i4axhfqlnj145l011x";
231+ })
232+
233+ (fetchNuGet {
234+ name = "runtime.any.System.Runtime.InteropServices";
235+ version = "4.3.0";
236+ sha256 = "0c3g3g3jmhlhw4klrc86ka9fjbl7i59ds1fadsb2l8nqf8z3kb19";
237+ })
238+
239+ (fetchNuGet {
240+ name = "runtime.any.System.Text.Encoding";
241+ version = "4.3.0";
242+ sha256 = "0aqqi1v4wx51h51mk956y783wzags13wa7mgqyclacmsmpv02ps3";
243+ })
244+
245+ (fetchNuGet {
246+ name = "runtime.any.System.Text.Encoding.Extensions";
247+ version = "4.3.0";
248+ sha256 = "0lqhgqi0i8194ryqq6v2gqx0fb86db2gqknbm0aq31wb378j7ip8";
249+ })
250+
251+ (fetchNuGet {
252+ name = "runtime.any.System.Threading.Tasks";
253+ version = "4.3.0";
254+ sha256 = "03mnvkhskbzxddz4hm113zsch1jyzh2cs450dk3rgfjp8crlw1va";
255+ })
256+
257+ (fetchNuGet {
258+ name = "runtime.any.System.Threading.Timer";
259+ version = "4.3.0";
260+ sha256 = "0aw4phrhwqz9m61r79vyfl5la64bjxj8l34qnrcwb28v49fg2086";
261+ })
262+
263+ (fetchNuGet {
264+ name = "runtime.debian.8-x64.runtime.native.System.Security.Cryptography.OpenSsl";
265+ version = "4.3.0";
266+ sha256 = "16rnxzpk5dpbbl1x354yrlsbvwylrq456xzpsha1n9y3glnhyx9d";
267+ })
268+
269+ (fetchNuGet {
270+ name = "runtime.fedora.23-x64.runtime.native.System.Security.Cryptography.OpenSsl";
271+ version = "4.3.0";
272+ sha256 = "0hkg03sgm2wyq8nqk6dbm9jh5vcq57ry42lkqdmfklrw89lsmr59";
273+ })
274+
275+ (fetchNuGet {
276+ name = "runtime.fedora.24-x64.runtime.native.System.Security.Cryptography.OpenSsl";
277+ version = "4.3.0";
278+ sha256 = "0c2p354hjx58xhhz7wv6div8xpi90sc6ibdm40qin21bvi7ymcaa";
279+ })
280+
281+ (fetchNuGet {
282+ name = "runtime.native.System";
283+ version = "4.0.0";
284+ sha256 = "1ppk69xk59ggacj9n7g6fyxvzmk1g5p4fkijm0d7xqfkig98qrkf";
285+ })
286+
287+ (fetchNuGet {
288+ name = "runtime.native.System";
289+ version = "4.3.0";
290+ sha256 = "15hgf6zaq9b8br2wi1i3x0zvmk410nlmsmva9p0bbg73v6hml5k4";
291+ })
292+
293+ (fetchNuGet {
294+ name = "runtime.native.System.IO.Compression";
295+ version = "4.3.0";
296+ sha256 = "1vvivbqsk6y4hzcid27pqpm5bsi6sc50hvqwbcx8aap5ifrxfs8d";
297+ })
298+
299+ (fetchNuGet {
300+ name = "runtime.native.System.Net.Http";
301+ version = "4.3.0";
302+ sha256 = "1n6rgz5132lcibbch1qlf0g9jk60r0kqv087hxc0lisy50zpm7kk";
303+ })
304+
305+ (fetchNuGet {
306+ name = "runtime.native.System.Security.Cryptography.Apple";
307+ version = "4.3.0";
308+ sha256 = "1b61p6gw1m02cc1ry996fl49liiwky6181dzr873g9ds92zl326q";
309+ })
310+
311+ (fetchNuGet {
312+ name = "runtime.native.System.Security.Cryptography.OpenSsl";
313+ version = "4.3.0";
314+ sha256 = "18pzfdlwsg2nb1jjjjzyb5qlgy6xjxzmhnfaijq5s2jw3cm3ab97";
315+ })
316+
317+ (fetchNuGet {
318+ name = "runtime.opensuse.13.2-x64.runtime.native.System.Security.Cryptography.OpenSsl";
319+ version = "4.3.0";
320+ sha256 = "0qyynf9nz5i7pc26cwhgi8j62ps27sqmf78ijcfgzab50z9g8ay3";
321+ })
322+
323+ (fetchNuGet {
324+ name = "runtime.opensuse.42.1-x64.runtime.native.System.Security.Cryptography.OpenSsl";
325+ version = "4.3.0";
326+ sha256 = "1klrs545awhayryma6l7g2pvnp9xy4z0r1i40r80zb45q3i9nbyf";
327+ })
328+
329+ (fetchNuGet {
330+ name = "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.Apple";
331+ version = "4.3.0";
332+ sha256 = "10yc8jdrwgcl44b4g93f1ds76b176bajd3zqi2faf5rvh1vy9smi";
333+ })
334+
335+ (fetchNuGet {
336+ name = "runtime.osx.10.10-x64.runtime.native.System.Security.Cryptography.OpenSsl";
337+ version = "4.3.0";
338+ sha256 = "0zcxjv5pckplvkg0r6mw3asggm7aqzbdjimhvsasb0cgm59x09l3";
339+ })
340+
341+ (fetchNuGet {
342+ name = "runtime.rhel.7-x64.runtime.native.System.Security.Cryptography.OpenSsl";
343+ version = "4.3.0";
344+ sha256 = "0vhynn79ih7hw7cwjazn87rm9z9fj0rvxgzlab36jybgcpcgphsn";
345+ })
346+
347+ (fetchNuGet {
348+ name = "runtime.ubuntu.14.04-x64.runtime.native.System.Security.Cryptography.OpenSsl";
349+ version = "4.3.0";
350+ sha256 = "160p68l2c7cqmyqjwxydcvgw7lvl1cr0znkw8fp24d1by9mqc8p3";
351+ })
352+
353+ (fetchNuGet {
354+ name = "runtime.ubuntu.16.04-x64.runtime.native.System.Security.Cryptography.OpenSsl";
355+ version = "4.3.0";
356+ sha256 = "15zrc8fgd8zx28hdghcj5f5i34wf3l6bq5177075m2bc2j34jrqy";
357+ })
358+
359+ (fetchNuGet {
360+ name = "runtime.ubuntu.16.10-x64.runtime.native.System.Security.Cryptography.OpenSsl";
361+ version = "4.3.0";
362+ sha256 = "1p4dgxax6p7rlgj4q73k73rslcnz4wdcv8q2flg1s8ygwcm58ld5";
363+ })
364+
365+ (fetchNuGet {
366+ name = "runtime.unix.Microsoft.Win32.Primitives";
367+ version = "4.3.0";
368+ sha256 = "0y61k9zbxhdi0glg154v30kkq7f8646nif8lnnxbvkjpakggd5id";
369+ })
370+
371+ (fetchNuGet {
372+ name = "runtime.unix.System.Console";
373+ version = "4.3.0";
374+ sha256 = "1pfpkvc6x2if8zbdzg9rnc5fx51yllprl8zkm5npni2k50lisy80";
375+ })
376+
377+ (fetchNuGet {
378+ name = "runtime.unix.System.Diagnostics.Debug";
379+ version = "4.3.0";
380+ sha256 = "1lps7fbnw34bnh3lm31gs5c0g0dh7548wfmb8zz62v0zqz71msj5";
381+ })
382+
383+ (fetchNuGet {
384+ name = "runtime.unix.System.IO.FileSystem";
385+ version = "4.3.0";
386+ sha256 = "14nbkhvs7sji5r1saj2x8daz82rnf9kx28d3v2qss34qbr32dzix";
387+ })
388+
389+ (fetchNuGet {
390+ name = "runtime.unix.System.Net.Primitives";
391+ version = "4.3.0";
392+ sha256 = "0bdnglg59pzx9394sy4ic66kmxhqp8q8bvmykdxcbs5mm0ipwwm4";
393+ })
394+
395+ (fetchNuGet {
396+ name = "runtime.unix.System.Net.Sockets";
397+ version = "4.3.0";
398+ sha256 = "03npdxzy8gfv035bv1b9rz7c7hv0rxl5904wjz51if491mw0xy12";
399+ })
400+
401+ (fetchNuGet {
402+ name = "runtime.unix.System.Private.Uri";
403+ version = "4.3.0";
404+ sha256 = "1jx02q6kiwlvfksq1q9qr17fj78y5v6mwsszav4qcz9z25d5g6vk";
405+ })
406+
407+ (fetchNuGet {
408+ name = "runtime.unix.System.Runtime.Extensions";
409+ version = "4.3.0";
410+ sha256 = "0pnxxmm8whx38dp6yvwgmh22smknxmqs5n513fc7m4wxvs1bvi4p";
411+ })
412+
413+ (fetchNuGet {
414+ name = "Sdk";
415+ version = "1.0.0";
416+ sha256 = "0425gviagj8xl8mwl4bwn1v98j7407sdk78xgxk37z62vgcgs73w";
417+ })
418+
419+ (fetchNuGet {
420+ name = "System.AppContext";
421+ version = "4.3.0";
422+ sha256 = "1649qvy3dar900z3g817h17nl8jp4ka5vcfmsr05kh0fshn7j3ya";
423+ })
424+
425+ (fetchNuGet {
426+ name = "System.Buffers";
427+ version = "4.3.0";
428+ sha256 = "0fgns20ispwrfqll4q1zc1waqcmylb3zc50ys9x8zlwxh9pmd9jy";
429+ })
430+
431+ (fetchNuGet {
432+ name = "System.Collections";
433+ version = "4.0.11";
434+ sha256 = "1ga40f5lrwldiyw6vy67d0sg7jd7ww6kgwbksm19wrvq9hr0bsm6";
435+ })
436+
437+ (fetchNuGet {
438+ name = "System.Collections";
439+ version = "4.3.0";
440+ sha256 = "19r4y64dqyrq6k4706dnyhhw7fs24kpp3awak7whzss39dakpxk9";
441+ })
442+
443+ (fetchNuGet {
444+ name = "System.Collections.Concurrent";
445+ version = "4.3.0";
446+ sha256 = "0wi10md9aq33jrkh2c24wr2n9hrpyamsdhsxdcnf43b7y86kkii8";
447+ })
448+
449+ (fetchNuGet {
450+ name = "System.Collections.Immutable";
451+ version = "1.2.0";
452+ sha256 = "1jm4pc666yiy7af1mcf7766v710gp0h40p228ghj6bavx7xfa38m";
453+ })
454+
455+ (fetchNuGet {
456+ name = "System.Collections.NonGeneric";
457+ version = "4.3.0";
458+ sha256 = "07q3k0hf3mrcjzwj8fwk6gv3n51cb513w4mgkfxzm3i37sc9kz7k";
459+ })
460+
461+ (fetchNuGet {
462+ name = "System.Collections.Specialized";
463+ version = "4.3.0";
464+ sha256 = "1sdwkma4f6j85m3dpb53v9vcgd0zyc9jb33f8g63byvijcj39n20";
465+ })
466+
467+ (fetchNuGet {
468+ name = "System.ComponentModel";
469+ version = "4.3.0";
470+ sha256 = "0986b10ww3nshy30x9sjyzm0jx339dkjxjj3401r3q0f6fx2wkcb";
471+ })
472+
473+ (fetchNuGet {
474+ name = "System.ComponentModel.EventBasedAsync";
475+ version = "4.0.11";
476+ sha256 = "07r5i7xwban347nsfw28hhjwpr78ywksjyhywvhj1yr0s7sr00wh";
477+ })
478+
479+ (fetchNuGet {
480+ name = "System.ComponentModel.Primitives";
481+ version = "4.3.0";
482+ sha256 = "1svfmcmgs0w0z9xdw2f2ps05rdxmkxxhf0l17xk9l1l8xfahkqr0";
483+ })
484+
485+ (fetchNuGet {
486+ name = "System.ComponentModel.TypeConverter";
487+ version = "4.1.0";
488+ sha256 = "178cva9p1cs043h5n2fry5xkzr3wc9n0hwbxa8m3ymld9m6wcv0y";
489+ })
490+
491+ (fetchNuGet {
492+ name = "System.ComponentModel.TypeConverter";
493+ version = "4.3.0";
494+ sha256 = "17ng0p7v3nbrg3kycz10aqrrlw4lz9hzhws09pfh8gkwicyy481x";
495+ })
496+
497+ (fetchNuGet {
498+ name = "System.Console";
499+ version = "4.3.0";
500+ sha256 = "1flr7a9x920mr5cjsqmsy9wgnv3lvd0h1g521pdr1lkb2qycy7ay";
501+ })
502+
503+ (fetchNuGet {
504+ name = "System.Diagnostics.Debug";
505+ version = "4.0.11";
506+ sha256 = "0gmjghrqmlgzxivd2xl50ncbglb7ljzb66rlx8ws6dv8jm0d5siz";
507+ })
508+
509+ (fetchNuGet {
510+ name = "System.Diagnostics.Debug";
511+ version = "4.3.0";
512+ sha256 = "00yjlf19wjydyr6cfviaph3vsjzg3d5nvnya26i2fvfg53sknh3y";
513+ })
514+
515+ (fetchNuGet {
516+ name = "System.Diagnostics.DiagnosticSource";
517+ version = "4.3.0";
518+ sha256 = "0z6m3pbiy0qw6rn3n209rrzf9x1k4002zh90vwcrsym09ipm2liq";
519+ })
520+
521+ (fetchNuGet {
522+ name = "System.Diagnostics.Process";
523+ version = "4.1.0";
524+ sha256 = "061lrcs7xribrmq7kab908lww6kn2xn1w3rdc41q189y0jibl19s";
525+ })
526+
527+ (fetchNuGet {
528+ name = "System.Diagnostics.TextWriterTraceListener";
529+ version = "4.0.0";
530+ sha256 = "1xigiwkwyxak0dhm0p8i2zb7a9syly9cdb5s9zkr9rbad4f2fqhs";
531+ })
532+
533+ (fetchNuGet {
534+ name = "System.Diagnostics.Tools";
535+ version = "4.3.0";
536+ sha256 = "0in3pic3s2ddyibi8cvgl102zmvp9r9mchh82ns9f0ms4basylw1";
537+ })
538+
539+ (fetchNuGet {
540+ name = "System.Diagnostics.TraceSource";
541+ version = "4.0.0";
542+ sha256 = "1mc7r72xznczzf6mz62dm8xhdi14if1h8qgx353xvhz89qyxsa3h";
543+ })
544+
545+ (fetchNuGet {
546+ name = "System.Diagnostics.TraceSource";
547+ version = "4.3.0";
548+ sha256 = "1kyw4d7dpjczhw6634nrmg7yyyzq72k75x38y0l0nwhigdlp1766";
549+ })
550+
551+ (fetchNuGet {
552+ name = "System.Diagnostics.Tracing";
553+ version = "4.1.0";
554+ sha256 = "1d2r76v1x610x61ahfpigda89gd13qydz6vbwzhpqlyvq8jj6394";
555+ })
556+
557+ (fetchNuGet {
558+ name = "System.Diagnostics.Tracing";
559+ version = "4.3.0";
560+ sha256 = "1m3bx6c2s958qligl67q7grkwfz3w53hpy7nc97mh6f7j5k168c4";
561+ })
562+
563+ (fetchNuGet {
564+ name = "System.Dynamic.Runtime";
565+ version = "4.3.0";
566+ sha256 = "1d951hrvrpndk7insiag80qxjbf2y0y39y8h5hnq9612ws661glk";
567+ })
568+
569+ (fetchNuGet {
570+ name = "System.Globalization";
571+ version = "4.0.11";
572+ sha256 = "070c5jbas2v7smm660zaf1gh0489xanjqymkvafcs4f8cdrs1d5d";
573+ })
574+
575+ (fetchNuGet {
576+ name = "System.Globalization";
577+ version = "4.3.0";
578+ sha256 = "1cp68vv683n6ic2zqh2s1fn4c2sd87g5hpp6l4d4nj4536jz98ki";
579+ })
580+
581+ (fetchNuGet {
582+ name = "System.Globalization.Calendars";
583+ version = "4.3.0";
584+ sha256 = "1xwl230bkakzzkrggy1l1lxmm3xlhk4bq2pkv790j5lm8g887lxq";
585+ })
586+
587+ (fetchNuGet {
588+ name = "System.Globalization.Extensions";
589+ version = "4.3.0";
590+ sha256 = "02a5zfxavhv3jd437bsncbhd2fp1zv4gxzakp1an9l6kdq1mcqls";
591+ })
592+
593+ (fetchNuGet {
594+ name = "System.IdentityModel.Tokens.Jwt";
595+ version = "5.2.1";
596+ sha256 = "08n1z9ngsi26qlhwpjzxafhwl3p279widfci64l2ahxf1gprfqsx";
597+ })
598+
599+ (fetchNuGet {
600+ name = "System.IO";
601+ version = "4.1.0";
602+ sha256 = "1g0yb8p11vfd0kbkyzlfsbsp5z44lwsvyc0h3dpw6vqnbi035ajp";
603+ })
604+
605+ (fetchNuGet {
606+ name = "System.IO";
607+ version = "4.3.0";
608+ sha256 = "05l9qdrzhm4s5dixmx68kxwif4l99ll5gqmh7rqgw554fx0agv5f";
609+ })
610+
611+ (fetchNuGet {
612+ name = "System.IO.Compression";
613+ version = "4.3.0";
614+ sha256 = "084zc82yi6yllgda0zkgl2ys48sypiswbiwrv7irb3r0ai1fp4vz";
615+ })
616+
617+ (fetchNuGet {
618+ name = "System.IO.Compression.ZipFile";
619+ version = "4.3.0";
620+ sha256 = "1yxy5pq4dnsm9hlkg9ysh5f6bf3fahqqb6p8668ndy5c0lk7w2ar";
621+ })
622+
623+ (fetchNuGet {
624+ name = "System.IO.FileSystem";
625+ version = "4.0.1";
626+ sha256 = "0kgfpw6w4djqra3w5crrg8xivbanh1w9dh3qapb28q060wb9flp1";
627+ })
628+
629+ (fetchNuGet {
630+ name = "System.IO.FileSystem";
631+ version = "4.3.0";
632+ sha256 = "0z2dfrbra9i6y16mm9v1v6k47f0fm617vlb7s5iybjjsz6g1ilmw";
633+ })
634+
635+ (fetchNuGet {
636+ name = "System.IO.FileSystem.AccessControl";
637+ version = "4.4.0";
638+ sha256 = "11sna2bv5ai4sivrs7g2gp7g0yjp02s0kasl01j3fa1cvnwwvgkv";
639+ })
640+
641+ (fetchNuGet {
642+ name = "System.IO.FileSystem.Primitives";
643+ version = "4.0.1";
644+ sha256 = "1s0mniajj3lvbyf7vfb5shp4ink5yibsx945k6lvxa96r8la1612";
645+ })
646+
647+ (fetchNuGet {
648+ name = "System.IO.FileSystem.Primitives";
649+ version = "4.3.0";
650+ sha256 = "0j6ndgglcf4brg2lz4wzsh1av1gh8xrzdsn9f0yznskhqn1xzj9c";
651+ })
652+
653+ (fetchNuGet {
654+ name = "System.Linq";
655+ version = "4.1.0";
656+ sha256 = "1ppg83svb39hj4hpp5k7kcryzrf3sfnm08vxd5sm2drrijsla2k5";
657+ })
658+
659+ (fetchNuGet {
660+ name = "System.Linq";
661+ version = "4.3.0";
662+ sha256 = "1w0gmba695rbr80l1k2h4mrwzbzsyfl2z4klmpbsvsg5pm4a56s7";
663+ })
664+
665+ (fetchNuGet {
666+ name = "System.Linq.Expressions";
667+ version = "4.3.0";
668+ sha256 = "0ky2nrcvh70rqq88m9a5yqabsl4fyd17bpr63iy2mbivjs2nyypv";
669+ })
670+
671+ (fetchNuGet {
672+ name = "System.Net.Http";
673+ version = "4.3.0";
674+ sha256 = "1i4gc757xqrzflbk7kc5ksn20kwwfjhw9w7pgdkn19y3cgnl302j";
675+ })
676+
677+ (fetchNuGet {
678+ name = "System.Net.NameResolution";
679+ version = "4.3.0";
680+ sha256 = "15r75pwc0rm3vvwsn8rvm2krf929mjfwliv0mpicjnii24470rkq";
681+ })
682+
683+ (fetchNuGet {
684+ name = "System.Net.Primitives";
685+ version = "4.3.0";
686+ sha256 = "0c87k50rmdgmxx7df2khd9qj7q35j9rzdmm2572cc55dygmdk3ii";
687+ })
688+
689+ (fetchNuGet {
690+ name = "System.Net.Sockets";
691+ version = "4.3.0";
692+ sha256 = "1ssa65k6chcgi6mfmzrznvqaxk8jp0gvl77xhf1hbzakjnpxspla";
693+ })
694+
695+ (fetchNuGet {
696+ name = "System.ObjectModel";
697+ version = "4.3.0";
698+ sha256 = "191p63zy5rpqx7dnrb3h7prvgixmk168fhvvkkvhlazncf8r3nc2";
699+ })
700+
701+ (fetchNuGet {
702+ name = "System.Private.DataContractSerialization";
703+ version = "4.1.1";
704+ sha256 = "1xk9wvgzipssp1393nsg4n16zbr5481k03nkdlj954hzq5jkx89r";
705+ })
706+
707+ (fetchNuGet {
708+ name = "System.Private.DataContractSerialization";
709+ version = "4.3.0";
710+ sha256 = "06fjipqvjp559rrm825x6pll8gimdj9x1n3larigh5hsm584gndw";
711+ })
712+
713+ (fetchNuGet {
714+ name = "System.Private.Uri";
715+ version = "4.3.0";
716+ sha256 = "04r1lkdnsznin0fj4ya1zikxiqr0h6r6a1ww2dsm60gqhdrf0mvx";
717+ })
718+
719+ (fetchNuGet {
720+ name = "System.Reflection";
721+ version = "4.1.0";
722+ sha256 = "1js89429pfw79mxvbzp8p3q93il6rdff332hddhzi5wqglc4gml9";
723+ })
724+
725+ (fetchNuGet {
726+ name = "System.Reflection";
727+ version = "4.3.0";
728+ sha256 = "0xl55k0mw8cd8ra6dxzh974nxif58s3k1rjv1vbd7gjbjr39j11m";
729+ })
730+
731+ (fetchNuGet {
732+ name = "System.Reflection.Emit";
733+ version = "4.3.0";
734+ sha256 = "11f8y3qfysfcrscjpjym9msk7lsfxkk4fmz9qq95kn3jd0769f74";
735+ })
736+
737+ (fetchNuGet {
738+ name = "System.Reflection.Emit.ILGeneration";
739+ version = "4.3.0";
740+ sha256 = "0w1n67glpv8241vnpz1kl14sy7zlnw414aqwj4hcx5nd86f6994q";
741+ })
742+
743+ (fetchNuGet {
744+ name = "System.Reflection.Emit.Lightweight";
745+ version = "4.3.0";
746+ sha256 = "0ql7lcakycrvzgi9kxz1b3lljd990az1x6c4jsiwcacrvimpib5c";
747+ })
748+
749+ (fetchNuGet {
750+ name = "System.Reflection.Extensions";
751+ version = "4.0.1";
752+ sha256 = "0m7wqwq0zqq9gbpiqvgk3sr92cbrw7cp3xn53xvw7zj6rz6fdirn";
753+ })
754+
755+ (fetchNuGet {
756+ name = "System.Reflection.Extensions";
757+ version = "4.3.0";
758+ sha256 = "02bly8bdc98gs22lqsfx9xicblszr2yan7v2mmw3g7hy6miq5hwq";
759+ })
760+
761+ (fetchNuGet {
762+ name = "System.Reflection.Metadata";
763+ version = "1.3.0";
764+ sha256 = "1y5m6kryhjpqqm2g3h3b6bzig13wkiw954x3b7icqjm6xypm1x3b";
765+ })
766+
767+ (fetchNuGet {
768+ name = "System.Reflection.Primitives";
769+ version = "4.0.1";
770+ sha256 = "1bangaabhsl4k9fg8khn83wm6yial8ik1sza7401621jc6jrym28";
771+ })
772+
773+ (fetchNuGet {
774+ name = "System.Reflection.Primitives";
775+ version = "4.3.0";
776+ sha256 = "04xqa33bld78yv5r93a8n76shvc8wwcdgr1qvvjh959g3rc31276";
777+ })
778+
779+ (fetchNuGet {
780+ name = "System.Reflection.TypeExtensions";
781+ version = "4.1.0";
782+ sha256 = "1bjli8a7sc7jlxqgcagl9nh8axzfl11f4ld3rjqsyxc516iijij7";
783+ })
784+
785+ (fetchNuGet {
786+ name = "System.Reflection.TypeExtensions";
787+ version = "4.3.0";
788+ sha256 = "0y2ssg08d817p0vdag98vn238gyrrynjdj4181hdg780sif3ykp1";
789+ })
790+
791+ (fetchNuGet {
792+ name = "System.Reflection.TypeExtensions";
793+ version = "4.4.0";
794+ sha256 = "0n9r1w4lp2zmadyqkgp4sk9wy90sj4ygq4dh7kzamx26i9biys5h";
795+ })
796+
797+ (fetchNuGet {
798+ name = "System.Resources.ResourceManager";
799+ version = "4.0.1";
800+ sha256 = "0b4i7mncaf8cnai85jv3wnw6hps140cxz8vylv2bik6wyzgvz7bi";
801+ })
802+
803+ (fetchNuGet {
804+ name = "System.Resources.ResourceManager";
805+ version = "4.3.0";
806+ sha256 = "0sjqlzsryb0mg4y4xzf35xi523s4is4hz9q4qgdvlvgivl7qxn49";
807+ })
808+
809+ (fetchNuGet {
810+ name = "System.Runtime";
811+ version = "4.1.0";
812+ sha256 = "02hdkgk13rvsd6r9yafbwzss8kr55wnj8d5c7xjnp8gqrwc8sn0m";
813+ })
814+
815+ (fetchNuGet {
816+ name = "System.Runtime";
817+ version = "4.3.0";
818+ sha256 = "066ixvgbf2c929kgknshcxqj6539ax7b9m570cp8n179cpfkapz7";
819+ })
820+
821+ (fetchNuGet {
822+ name = "System.Runtime.Extensions";
823+ version = "4.1.0";
824+ sha256 = "0rw4rm4vsm3h3szxp9iijc3ksyviwsv6f63dng3vhqyg4vjdkc2z";
825+ })
826+
827+ (fetchNuGet {
828+ name = "System.Runtime.Extensions";
829+ version = "4.3.0";
830+ sha256 = "1ykp3dnhwvm48nap8q23893hagf665k0kn3cbgsqpwzbijdcgc60";
831+ })
832+
833+ (fetchNuGet {
834+ name = "System.Runtime.Handles";
835+ version = "4.0.1";
836+ sha256 = "1g0zrdi5508v49pfm3iii2hn6nm00bgvfpjq1zxknfjrxxa20r4g";
837+ })
838+
839+ (fetchNuGet {
840+ name = "System.Runtime.Handles";
841+ version = "4.3.0";
842+ sha256 = "0sw2gfj2xr7sw9qjn0j3l9yw07x73lcs97p8xfc9w1x9h5g5m7i8";
843+ })
844+
845+ (fetchNuGet {
846+ name = "System.Runtime.InteropServices";
847+ version = "4.1.0";
848+ sha256 = "01kxqppx3dr3b6b286xafqilv4s2n0gqvfgzfd4z943ga9i81is1";
849+ })
850+
851+ (fetchNuGet {
852+ name = "System.Runtime.InteropServices";
853+ version = "4.3.0";
854+ sha256 = "00hywrn4g7hva1b2qri2s6rabzwgxnbpw9zfxmz28z09cpwwgh7j";
855+ })
856+
857+ (fetchNuGet {
858+ name = "System.Runtime.InteropServices.RuntimeInformation";
859+ version = "4.0.0";
860+ sha256 = "0glmvarf3jz5xh22iy3w9v3wyragcm4hfdr17v90vs7vcrm7fgp6";
861+ })
862+
863+ (fetchNuGet {
864+ name = "System.Runtime.InteropServices.RuntimeInformation";
865+ version = "4.3.0";
866+ sha256 = "0q18r1sh4vn7bvqgd6dmqlw5v28flbpj349mkdish2vjyvmnb2ii";
867+ })
868+
869+ (fetchNuGet {
870+ name = "System.Runtime.Loader";
871+ version = "4.0.0";
872+ sha256 = "0lpfi3psqcp6zxsjk2qyahal7zaawviimc8lhrlswhip2mx7ykl0";
873+ })
874+
875+ (fetchNuGet {
876+ name = "System.Runtime.Loader";
877+ version = "4.3.0";
878+ sha256 = "07fgipa93g1xxgf7193a6vw677mpzgr0z0cfswbvqqb364cva8dk";
879+ })
880+
881+ (fetchNuGet {
882+ name = "System.Runtime.Numerics";
883+ version = "4.3.0";
884+ sha256 = "19rav39sr5dky7afygh309qamqqmi9kcwvz3i0c5700v0c5cg61z";
885+ })
886+
887+ (fetchNuGet {
888+ name = "System.Runtime.Serialization.Json";
889+ version = "4.0.2";
890+ sha256 = "08ypbzs0sb302ga04ds5b2wxa2gg0q50zpa0nvc87ipjhs0v66dn";
891+ })
892+
893+ (fetchNuGet {
894+ name = "System.Runtime.Serialization.Primitives";
895+ version = "4.1.1";
896+ sha256 = "042rfjixknlr6r10vx2pgf56yming8lkjikamg3g4v29ikk78h7k";
897+ })
898+
899+ (fetchNuGet {
900+ name = "System.Runtime.Serialization.Primitives";
901+ version = "4.3.0";
902+ sha256 = "01vv2p8h4hsz217xxs0rixvb7f2xzbh6wv1gzbfykcbfrza6dvnf";
903+ })
904+
905+ (fetchNuGet {
906+ name = "System.Runtime.Serialization.Xml";
907+ version = "4.3.0";
908+ sha256 = "1b2cxl2h7s8cydbhbmxhvvq071n9ck61g08npg4gyw7nvg37rfni";
909+ })
910+
911+ (fetchNuGet {
912+ name = "System.Security.AccessControl";
913+ version = "4.4.0";
914+ sha256 = "0ixqw47krkazsw0ycm22ivkv7dpg6cjz8z8g0ii44bsx4l8gcx17";
915+ })
916+
917+ (fetchNuGet {
918+ name = "System.Security.Claims";
919+ version = "4.3.0";
920+ sha256 = "0jvfn7j22l3mm28qjy3rcw287y9h65ha4m940waaxah07jnbzrhn";
921+ })
922+
923+ (fetchNuGet {
924+ name = "System.Security.Cryptography.Algorithms";
925+ version = "4.2.0";
926+ sha256 = "148s9g5dgm33ri7dnh19s4lgnlxbpwvrw2jnzllq2kijj4i4vs85";
927+ })
928+
929+ (fetchNuGet {
930+ name = "System.Security.Cryptography.Algorithms";
931+ version = "4.3.0";
932+ sha256 = "03sq183pfl5kp7gkvq77myv7kbpdnq3y0xj7vi4q1kaw54sny0ml";
933+ })
934+
935+ (fetchNuGet {
936+ name = "System.Security.Cryptography.Cng";
937+ version = "4.3.0";
938+ sha256 = "1k468aswafdgf56ab6yrn7649kfqx2wm9aslywjam1hdmk5yypmv";
939+ })
940+
941+ (fetchNuGet {
942+ name = "System.Security.Cryptography.Cng";
943+ version = "4.4.0";
944+ sha256 = "1grg9id80m358crr5y4q4rhhbrm122yw8jrlcl1ybi7nkmmck40n";
945+ })
946+
947+ (fetchNuGet {
948+ name = "System.Security.Cryptography.Csp";
949+ version = "4.3.0";
950+ sha256 = "1x5wcrddf2s3hb8j78cry7yalca4lb5vfnkrysagbn6r9x6xvrx1";
951+ })
952+
953+ (fetchNuGet {
954+ name = "System.Security.Cryptography.Encoding";
955+ version = "4.3.0";
956+ sha256 = "1jr6w70igqn07k5zs1ph6xja97hxnb3mqbspdrff6cvssgrixs32";
957+ })
958+
959+ (fetchNuGet {
960+ name = "System.Security.Cryptography.OpenSsl";
961+ version = "4.3.0";
962+ sha256 = "0givpvvj8yc7gv4lhb6s1prq6p2c4147204a0wib89inqzd87gqc";
963+ })
964+
965+ (fetchNuGet {
966+ name = "System.Security.Cryptography.Pkcs";
967+ version = "4.4.0";
968+ sha256 = "1bn7d2czpc994qzdph4drv7p1cv4x55j2dhbmr113p0gs4hx33zh";
969+ })
970+
971+ (fetchNuGet {
972+ name = "System.Security.Cryptography.Primitives";
973+ version = "4.3.0";
974+ sha256 = "0pyzncsv48zwly3lw4f2dayqswcfvdwq2nz0dgwmi7fj3pn64wby";
975+ })
976+
977+ (fetchNuGet {
978+ name = "System.Security.Cryptography.ProtectedData";
979+ version = "4.4.0";
980+ sha256 = "1q8ljvqhasyynp94a1d7jknk946m20lkwy2c3wa8zw2pc517fbj6";
981+ })
982+
983+ (fetchNuGet {
984+ name = "System.Security.Cryptography.X509Certificates";
985+ version = "4.3.0";
986+ sha256 = "0valjcz5wksbvijylxijjxb1mp38mdhv03r533vnx1q3ikzdav9h";
987+ })
988+
989+ (fetchNuGet {
990+ name = "System.Security.Principal";
991+ version = "4.3.0";
992+ sha256 = "12cm2zws06z4lfc4dn31iqv7072zyi4m910d4r6wm8yx85arsfxf";
993+ })
994+
995+ (fetchNuGet {
996+ name = "System.Security.Principal.Windows";
997+ version = "4.3.0";
998+ sha256 = "00a0a7c40i3v4cb20s2cmh9csb5jv2l0frvnlzyfxh848xalpdwr";
999+ })
1000+
1001+ (fetchNuGet {
1002+ name = "System.Security.Principal.Windows";
1003+ version = "4.4.0";
1004+ sha256 = "11rr16fp68apc0arsymgj18w8ajs9a4366wgx9iqwny4glrl20wp";
1005+ })
1006+
1007+ (fetchNuGet {
1008+ name = "System.ServiceProcess.ServiceController";
1009+ version = "4.4.0";
1010+ sha256 = "0hyijvysbcjh20mbbgajg9wh04nkjd6y5lqxgm0a6m28zjcjshl6";
1011+ })
1012+
1013+ (fetchNuGet {
1014+ name = "System.Text.Encoding";
1015+ version = "4.0.11";
1016+ sha256 = "1dyqv0hijg265dwxg6l7aiv74102d6xjiwplh2ar1ly6xfaa4iiw";
1017+ })
1018+
1019+ (fetchNuGet {
1020+ name = "System.Text.Encoding";
1021+ version = "4.3.0";
1022+ sha256 = "1f04lkir4iladpp51sdgmis9dj4y8v08cka0mbmsy0frc9a4gjqr";
1023+ })
1024+
1025+ (fetchNuGet {
1026+ name = "System.Text.Encoding.CodePages";
1027+ version = "4.4.0";
1028+ sha256 = "07bzjnflxjk9vgpljfybrpqmvsr9qr2f20nq5wf11imwa5pbhgfc";
1029+ })
1030+
1031+ (fetchNuGet {
1032+ name = "System.Text.Encoding.Extensions";
1033+ version = "4.0.11";
1034+ sha256 = "08nsfrpiwsg9x5ml4xyl3zyvjfdi4mvbqf93kjdh11j4fwkznizs";
1035+ })
1036+
1037+ (fetchNuGet {
1038+ name = "System.Text.Encoding.Extensions";
1039+ version = "4.3.0";
1040+ sha256 = "11q1y8hh5hrp5a3kw25cb6l00v5l5dvirkz8jr3sq00h1xgcgrxy";
1041+ })
1042+
1043+ (fetchNuGet {
1044+ name = "System.Text.RegularExpressions";
1045+ version = "4.3.0";
1046+ sha256 = "1bgq51k7fwld0njylfn7qc5fmwrk2137gdq7djqdsw347paa9c2l";
1047+ })
1048+
1049+ (fetchNuGet {
1050+ name = "System.Threading";
1051+ version = "4.0.11";
1052+ sha256 = "19x946h926bzvbsgj28csn46gak2crv2skpwsx80hbgazmkgb1ls";
1053+ })
1054+
1055+ (fetchNuGet {
1056+ name = "System.Threading";
1057+ version = "4.3.0";
1058+ sha256 = "0rw9wfamvhayp5zh3j7p1yfmx9b5khbf4q50d8k5rk993rskfd34";
1059+ })
1060+
1061+ (fetchNuGet {
1062+ name = "System.Threading.Channels";
1063+ version = "4.5.0";
1064+ sha256 = "0n6z3wjia7h2a5vl727p97riydnb6jhhkb1pdcnizza02dwkz0nz";
1065+ })
1066+
1067+ (fetchNuGet {
1068+ name = "System.Threading.Tasks";
1069+ version = "4.0.11";
1070+ sha256 = "0nr1r41rak82qfa5m0lhk9mp0k93bvfd7bbd9sdzwx9mb36g28p5";
1071+ })
1072+
1073+ (fetchNuGet {
1074+ name = "System.Threading.Tasks";
1075+ version = "4.3.0";
1076+ sha256 = "134z3v9abw3a6jsw17xl3f6hqjpak5l682k2vz39spj4kmydg6k7";
1077+ })
1078+
1079+ (fetchNuGet {
1080+ name = "System.Threading.Tasks.Extensions";
1081+ version = "4.3.0";
1082+ sha256 = "1xxcx2xh8jin360yjwm4x4cf5y3a2bwpn2ygkfkwkicz7zk50s2z";
1083+ })
1084+
1085+ (fetchNuGet {
1086+ name = "System.Threading.Tasks.Extensions";
1087+ version = "4.5.1";
1088+ sha256 = "1ikrplvw4m6pzjbq3bfbpr572n4i9mni577zvmrkaygvx85q3myw";
1089+ })
1090+
1091+ (fetchNuGet {
1092+ name = "System.Threading.Thread";
1093+ version = "4.0.0";
1094+ sha256 = "1gxxm5fl36pjjpnx1k688dcw8m9l7nmf802nxis6swdaw8k54jzc";
1095+ })
1096+
1097+ (fetchNuGet {
1098+ name = "System.Threading.ThreadPool";
1099+ version = "4.0.10";
1100+ sha256 = "0fdr61yjcxh5imvyf93n2m3n5g9pp54bnw2l1d2rdl9z6dd31ypx";
1101+ })
1102+
1103+ (fetchNuGet {
1104+ name = "System.Threading.ThreadPool";
1105+ version = "4.3.0";
1106+ sha256 = "027s1f4sbx0y1xqw2irqn6x161lzj8qwvnh2gn78ciiczdv10vf1";
1107+ })
1108+
1109+ (fetchNuGet {
1110+ name = "System.Threading.Timer";
1111+ version = "4.3.0";
1112+ sha256 = "1nx773nsx6z5whv8kaa1wjh037id2f1cxhb69pvgv12hd2b6qs56";
1113+ })
1114+
1115+ (fetchNuGet {
1116+ name = "System.Xml.ReaderWriter";
1117+ version = "4.0.11";
1118+ sha256 = "0c6ky1jk5ada9m94wcadih98l6k1fvf6vi7vhn1msjixaha419l5";
1119+ })
1120+
1121+ (fetchNuGet {
1122+ name = "System.Xml.ReaderWriter";
1123+ version = "4.3.0";
1124+ sha256 = "0c47yllxifzmh8gq6rq6l36zzvw4kjvlszkqa9wq3fr59n0hl3s1";
1125+ })
1126+
1127+ (fetchNuGet {
1128+ name = "System.Xml.XDocument";
1129+ version = "4.3.0";
1130+ sha256 = "08h8fm4l77n0nd4i4fk2386y809bfbwqb7ih9d7564ifcxr5ssxd";
1131+ })
1132+
1133+ (fetchNuGet {
1134+ name = "System.Xml.XmlDocument";
1135+ version = "4.0.1";
1136+ sha256 = "0ihsnkvyc76r4dcky7v3ansnbyqjzkbyyia0ir5zvqirzan0bnl1";
1137+ })
1138+
1139+ (fetchNuGet {
1140+ name = "System.Xml.XmlDocument";
1141+ version = "4.3.0";
1142+ sha256 = "0bmz1l06dihx52jxjr22dyv5mxv6pj4852lx68grjm7bivhrbfwi";
1143+ })
1144+
1145+ (fetchNuGet {
1146+ name = "System.Xml.XmlSerializer";
1147+ version = "4.3.0";
1148+ sha256 = "07pa4sx196vxkgl3csvdmw94nydlsm9ir38xxcs84qjn8cycd912";
1149+ })
1150+
1151+ (fetchNuGet {
1152+ name = "System.Xml.XPath";
1153+ version = "4.0.1";
1154+ sha256 = "0fjqgb6y66d72d5n8qq1h213d9nv2vi8mpv8p28j3m9rccmsh04m";
1155+ })
1156+
1157+ (fetchNuGet {
1158+ name = "System.Xml.XPath.XmlDocument";
1159+ version = "4.0.1";
1160+ sha256 = "0l7yljgif41iv5g56l3nxy97hzzgck2a7rhnfnljhx9b0ry41bvc";
1161+ })
1162+
1163+ (fetchNuGet {
1164+ name = "xunit";
1165+ version = "2.4.1";
1166+ sha256 = "0xf3kaywpg15flqaqfgywqyychzk15kz0kz34j21rcv78q9ywq20";
1167+ })
1168+
1169+ (fetchNuGet {
1170+ name = "xunit.abstractions";
1171+ version = "2.0.3";
1172+ sha256 = "00wl8qksgkxld76fgir3ycc5rjqv1sqds6x8yx40927q5py74gfh";
1173+ })
1174+
1175+ (fetchNuGet {
1176+ name = "xunit.analyzers";
1177+ version = "0.10.0";
1178+ sha256 = "15n02q3akyqbvkp8nq75a8rd66d4ax0rx8fhdcn8j78pi235jm7j";
1179+ })
1180+
1181+ (fetchNuGet {
1182+ name = "xunit.assert";
1183+ version = "2.4.1";
1184+ sha256 = "1imynzh80wxq2rp9sc4gxs4x1nriil88f72ilhj5q0m44qqmqpc6";
1185+ })
1186+
1187+ (fetchNuGet {
1188+ name = "xunit.core";
1189+ version = "2.4.1";
1190+ sha256 = "1nnb3j4kzmycaw1g76ii4rfqkvg6l8gqh18falwp8g28h802019a";
1191+ })
1192+
1193+ (fetchNuGet {
1194+ name = "xunit.extensibility.core";
1195+ version = "2.4.1";
1196+ sha256 = "103qsijmnip2pnbhciqyk2jyhdm6snindg5z2s57kqf5pcx9a050";
1197+ })
1198+
1199+ (fetchNuGet {
1200+ name = "xunit.extensibility.execution";
1201+ version = "2.4.1";
1202+ sha256 = "1pbilxh1gp2ywm5idfl0klhl4gb16j86ib4x83p8raql1dv88qia";
1203+ })
1204+
1205+ (fetchNuGet {
1206+ name = "xunit.runner.visualstudio";
1207+ version = "2.4.1";
1208+ sha256 = "0fln5pk18z98gp0zfshy1p9h6r9wc55nyqhap34k89yran646vhn";
1209+ })
1210+
1211+ (fetchNuGet {
1212+ name = "YamlDotNet.Signed";
1213+ version = "5.3.0";
1214+ sha256 = "1gnp5aa2zzg7v61bbn2ra1npy0p07szp5w8vqk44fdj3fcvrdxib";
1215+ })
1216+
1217+]
pkgs/development/tools/continuous-integration/github-runner/patches/dir-proj.patchnew file+53
@@ -0,0 +1,53 @@
1+From 4267ee7fa5169b4fd5ce732118769e559806a390 Mon Sep 17 00:00:00 2001
2+From: Vincent Haupert <mail@vincent-haupert.de>
3+Date: Sat, 13 Mar 2021 21:52:03 +0100
4+Subject: [PATCH] Patch dir.proj
5+
6+Don't execute Git for GitInfoCommitHash property
7+Don't restore for build target
8+Don't restore for test target
9+---
10+ src/dir.proj | 10 +++-------
11+ 1 file changed, 3 insertions(+), 7 deletions(-)
12+
13+diff --git a/src/dir.proj b/src/dir.proj
14+index 1c91e0c..8b27d3f 100644
15+--- a/src/dir.proj
16++++ b/src/dir.proj
17+@@ -2,9 +2,6 @@
18+ <Project ToolsVersion="14.0" DefaultTargets="Build"
19+ xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
20+ <Target Name="GenerateConstant">
21+- <Exec Command="git rev-parse HEAD" ConsoleToMSBuild="true">
22+- <Output TaskParameter="ConsoleOutput" PropertyName="GitInfoCommitHash" />
23+- </Exec>
24+ <Message Text="Building $(Product): $(GitInfoCommitHash) --- $(PackageRuntime)" Importance="high"/>
25+
26+ <ItemGroup>
27+@@ -39,14 +36,13 @@
28+ </ItemGroup>
29+
30+ <Target Name="Build" DependsOnTargets="GenerateConstant">
31+- <MSBuild Targets="Restore" Projects="@(ProjectFiles)" StopOnFirstFailure="true" />
32+ <MSBuild Targets="Publish" Projects="@(ProjectFiles)" BuildInParallel="false" StopOnFirstFailure="true" Properties="Configuration=$(BUILDCONFIG);PackageRuntime=$(PackageRuntime);Version=$(RunnerVersion);RuntimeIdentifier=$(PackageRuntime);PublishDir=$(MSBuildProjectDirectory)/../_layout/bin" />
33+ <Exec Command="%22$(DesktopMSBuild)%22 Runner.Service/Windows/RunnerService.csproj /p:Configuration=$(BUILDCONFIG) /p:OutputPath=%22$(MSBuildProjectDirectory)/../_layout/bin%22" ConsoleToMSBuild="true" Condition="'$(PackageRuntime)' == 'win-x64' Or '$(PackageRuntime)' == 'win-x86'" />
34+ </Target>
35+
36+ <Target Name="Test" DependsOnTargets="GenerateConstant">
37+- <Exec Command="dotnet build Test/Test.csproj -c $(BUILDCONFIG) /p:PackageRuntime=$(PackageRuntime)" ConsoleToMSBuild="true" />
38+- <Exec Command="dotnet test Test/Test.csproj --no-build --logger:trx" ConsoleToMSBuild="true" />
39++ <Exec Command="dotnet build Test/Test.csproj --no-restore -c $(BUILDCONFIG) /p:PackageRuntime=$(PackageRuntime)" ConsoleToMSBuild="true" />
40++ <Exec Command="dotnet test Test/Test.csproj --no-restore --no-build --logger:trx" ConsoleToMSBuild="true" />
41+ </Target>
42+
43+ <Target Name="Layout" DependsOnTargets="Clean;Build">
44+@@ -84,4 +80,4 @@
45+ <RemoveDir Directories="Test/bin" />
46+ <RemoveDir Directories="Test/obj" />
47+ </Target>
48+-</Project>
49+\ No newline at end of file
50++</Project>
51+--
52+2.30.1
53+
pkgs/development/tools/continuous-integration/github-runner/patches/dont-install-systemd-service.patchnew file+15
@@ -0,0 +1,15 @@
1+diff --git a/src/Runner.Listener/Configuration/ConfigurationManager.cs b/src/Runner.Listener/Configuration/ConfigurationManager.cs
2+index 8d08b06..bdfa3a2 100644
3+--- a/src/Runner.Listener/Configuration/ConfigurationManager.cs
4++++ b/src/Runner.Listener/Configuration/ConfigurationManager.cs
5+@@ -320,10 +320,6 @@ namespace GitHub.Runner.Listener.Configuration
6+ serviceControlManager.ConfigureService(runnerSettings, command);
7+ }
8+
9+-#elif OS_LINUX || OS_OSX
10+- // generate service config script for OSX and Linux, GenerateScripts() will no-opt on windows.
11+- var serviceControlManager = HostContext.GetService<ILinuxServiceControlManager>();
12+- serviceControlManager.GenerateScripts(runnerSettings);
13+ #endif
14+ }
15+
pkgs/development/tools/continuous-integration/github-runner/patches/host-context-dirs.patchnew file+20
@@ -0,0 +1,20 @@
1+diff --git a/src/Runner.Common/HostContext.cs b/src/Runner.Common/HostContext.cs
2+index d4ea48c..2ec8455 100644
3+--- a/src/Runner.Common/HostContext.cs
4++++ b/src/Runner.Common/HostContext.cs
5+@@ -220,12 +220,13 @@ namespace GitHub.Runner.Common
6+
7+ case WellKnownDirectory.Externals:
8+ path = Path.Combine(
9+- GetDirectory(WellKnownDirectory.Root),
10++ new DirectoryInfo(GetDirectory(WellKnownDirectory.Bin)).Parent.FullName,
11+ Constants.Path.ExternalsDirectory);
12+ break;
13+
14+ case WellKnownDirectory.Root:
15+- path = new DirectoryInfo(GetDirectory(WellKnownDirectory.Bin)).Parent.FullName;
16++ path = Environment.GetEnvironmentVariable("RUNNER_ROOT")
17++ ?? new DirectoryInfo(GetDirectory(WellKnownDirectory.Bin)).Parent.FullName;
18+ break;
19+
20+ case WellKnownDirectory.Temp:
pkgs/development/tools/continuous-integration/github-runner/patches/ignore-self-update.patchnew file+24
@@ -0,0 +1,24 @@
1+diff --git a/src/Runner.Listener/Runner.cs b/src/Runner.Listener/Runner.cs
2+index 68b0b4e..5da21fe 100644
3+--- a/src/Runner.Listener/Runner.cs
4++++ b/src/Runner.Listener/Runner.cs
5+@@ -391,18 +391,7 @@ namespace GitHub.Runner.Listener
6+ HostContext.WritePerfCounter($"MessageReceived_{message.MessageType}");
7+ if (string.Equals(message.MessageType, AgentRefreshMessage.MessageType, StringComparison.OrdinalIgnoreCase))
8+ {
9+- if (autoUpdateInProgress == false)
10+- {
11+- autoUpdateInProgress = true;
12+- var runnerUpdateMessage = JsonUtility.FromString<AgentRefreshMessage>(message.Body);
13+- var selfUpdater = HostContext.GetService<ISelfUpdater>();
14+- selfUpdateTask = selfUpdater.SelfUpdate(runnerUpdateMessage, jobDispatcher, !runOnce && HostContext.StartupType != StartupType.Service, HostContext.RunnerShutdownToken);
15+- Trace.Info("Refresh message received, kick-off selfupdate background process.");
16+- }
17+- else
18+- {
19+- Trace.Info("Refresh message received, skip autoupdate since a previous autoupdate is already running.");
20+- }
21++ Trace.Info("Ignoring received refresh message (would trigger self-update).");
22+ }
23+ else if (string.Equals(message.MessageType, JobRequestMessageTypes.PipelineAgentJobRequest, StringComparison.OrdinalIgnoreCase))
24+ {
pkgs/development/tools/continuous-integration/github-runner/patches/use-get-directory-for-diag.patchnew file+25
@@ -0,0 +1,25 @@
1+diff --git a/src/Runner.Common/HostContext.cs b/src/Runner.Common/HostContext.cs
2+index d4ea48c..15c1800 100644
3+--- a/src/Runner.Common/HostContext.cs
4++++ b/src/Runner.Common/HostContext.cs
5+@@ -109,7 +109,7 @@ namespace GitHub.Runner.Common
6+ }
7+
8+ // this should give us _diag folder under runner root directory
9+- string diagLogDirectory = Path.Combine(new DirectoryInfo(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location)).Parent.FullName, Constants.Path.DiagDirectory);
10++ string diagLogDirectory = GetDirectory(WellKnownDirectory.Diag);
11+ _traceManager = new TraceManager(new HostTraceListener(diagLogDirectory, hostType, logPageSize, logRetentionDays), this.SecretMasker);
12+ }
13+ else
14+@@ -272,7 +272,10 @@ namespace GitHub.Runner.Common
15+ throw new NotSupportedException($"Unexpected well known directory: '{directory}'");
16+ }
17+
18+- _trace.Info($"Well known directory '{directory}': '{path}'");
19++ if (_trace != null)
20++ {
21++ _trace.Info($"Well known directory '{directory}': '{path}'");
22++ }
23+ return path;
24+ }
25+
pkgs/top-level/all-packages.nix+2
@@ -4888,6 +4888,8 @@ in
48884888
48894889 github-backup = callPackage ../tools/misc/github-backup { };
48904890
4891+ github-runner = callPackage ../development/tools/continuous-integration/github-runner { };
4892+
48914893 gitin = callPackage ../applications/version-management/git-and-tools/gitin { };
48924894
48934895 gitinspector = callPackage ../applications/version-management/gitinspector { };