nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 testers,
3 fetchFromGitLab,
4 fetchgit,
5 fetchurl,
6 fetchzip,
7 linkFarm,
8 tor,
9}:
10let
11 domain = "eweiibe6tdjsdprb4px6rqrzzcsi22m4koia44kc5pcjr7nec2rlxyad.onion";
12 rev = "933c5491db00c703d5d8264fdabd5a5b10aff96f";
13 hash = "sha256-o6Wpso8GSlQH39GpH3IXZyrVhdP8pEYFxLDq9a7yHX0=";
14in
15linkFarm "tor-proxy-hook-tests" {
16 fetchgit = testers.invalidateFetcherByDrvHash fetchgit {
17 name = "fetchgit-tor-source";
18 url = "http://${domain}/tpo/core/tor";
19 inherit rev hash;
20 nativeBuildInputs = [ tor.proxyHook ];
21 };
22
23 fetchzip = testers.invalidateFetcherByDrvHash fetchzip {
24 name = "fetchzip-tor-source";
25 url = "http://${domain}/tpo/core/tor/-/archive/${rev}/tor-${rev}.zip";
26 inherit hash;
27 nativeBuildInputs = [ tor.proxyHook ];
28 };
29
30 fetchurl = testers.invalidateFetcherByDrvHash fetchurl {
31 name = "fetchurl-tor-source";
32 url = "http://${domain}/tpo/core/tor/-/raw/${rev}/Cargo.lock";
33 hash = "sha256-oX4WbsscLADgJ5o+czpueyAih7ic0u4lZQs7y1vMA3A=";
34 nativeBuildInputs = [ tor.proxyHook ];
35 };
36
37 fetchFromGitLab = testers.invalidateFetcherByDrvHash fetchFromGitLab {
38 name = "gitlab-tor-source";
39 protocol = "http";
40 owner = "tpo/core";
41 repo = "tor";
42 inherit domain rev hash;
43 nativeBuildInputs = [ tor.proxyHook ];
44 };
45}