coder: 2.16.1 -> 2.17.3 (#363393)
[NixPkgs.git] / pkgs / build-support / fetchgit / tests.nix
blobf3fcd9a578de463b635557c33d78abe39b293a4f
1 { testers, fetchgit, ... }: {
2   simple = testers.invalidateFetcherByDrvHash fetchgit {
3     name = "simple-nix-source";
4     url = "https://github.com/NixOS/nix";
5     rev = "9d9dbe6ed05854e03811c361a3380e09183f4f4a";
6     sha256 = "sha256-7DszvbCNTjpzGRmpIVAWXk20P0/XTrWZ79KSOGLrUWY=";
7   };
9   sparseCheckout = testers.invalidateFetcherByDrvHash fetchgit {
10     name = "sparse-checkout-nix-source";
11     url = "https://github.com/NixOS/nix";
12     rev = "9d9dbe6ed05854e03811c361a3380e09183f4f4a";
13     sparseCheckout = [
14       "src"
15       "tests"
16     ];
17     sha256 = "sha256-g1PHGTWgAcd/+sXHo1o6AjVWCvC6HiocOfMbMh873LQ=";
18   };
20   sparseCheckoutNonConeMode = testers.invalidateFetcherByDrvHash fetchgit {
21     name = "sparse-checkout-non-cone-nix-source";
22     url = "https://github.com/NixOS/nix";
23     rev = "9d9dbe6ed05854e03811c361a3380e09183f4f4a";
24     sparseCheckout = [
25       "src"
26       "tests"
27     ];
28     nonConeMode = true;
29     sha256 = "sha256-FknO6C/PSnMPfhUqObD4vsW4PhkwdmPa9blNzcNvJQ4=";
30   };
32   leave-git = testers.invalidateFetcherByDrvHash fetchgit {
33     name = "leave-git-nix-source";
34     url = "https://github.com/NixOS/nix";
35     rev = "9d9dbe6ed05854e03811c361a3380e09183f4f4a";
36     sha256 = "sha256-zZxDxqaeWvuWuzwPizBLR7d59zP24+zqnWllNICenko=";
37     leaveDotGit = true;
38   };
40   submodule-simple = testers.invalidateFetcherByDrvHash fetchgit {
41     name = "submodule-simple-source";
42     url = "https://github.com/pineapplehunter/nix-test-repo-with-submodule";
43     rev = "26473335b84ead88ee0a3b649b1c7fa4a91cfd4a";
44     sha256 = "sha256-rmP8PQT0wJBopdtr/hsB7Y/L1G+ZPdHC2r9LB05Qrj4=";
45     fetchSubmodules = true;
46   };
48   submodule-leave-git = testers.invalidateFetcherByDrvHash fetchgit {
49     name = "submodule-leave-git-source";
50     url = "https://github.com/pineapplehunter/nix-test-repo-with-submodule";
51     rev = "26473335b84ead88ee0a3b649b1c7fa4a91cfd4a";
52     sha256 = "sha256-+uXIClcRJ4S1rdgx2Oyww+Jv4h1VXp8tfeh9lb07Fhk=";
53     leaveDotGit = true;
54     fetchSubmodules = true;
55   };
57   submodule-deep = testers.invalidateFetcherByDrvHash fetchgit {
58     name = "submodule-deep-source";
59     url = "https://github.com/pineapplehunter/nix-test-repo-with-submodule";
60     rev = "26473335b84ead88ee0a3b649b1c7fa4a91cfd4a";
61     sha256 = "sha256-LL7uhXQk3N3DcvBBxwjmfVx55tTXCGQ19T91tknopzw=";
62     deepClone = true;
63     fetchSubmodules = true;
64   };
66   submodule-leave-git-deep = testers.invalidateFetcherByDrvHash fetchgit {
67     name = "submodule-leave-git-deep-source";
68     url = "https://github.com/pineapplehunter/nix-test-repo-with-submodule";
69     rev = "26473335b84ead88ee0a3b649b1c7fa4a91cfd4a";
70     sha256 = "sha256-LL7uhXQk3N3DcvBBxwjmfVx55tTXCGQ19T91tknopzw=";
71     deepClone = true;
72     leaveDotGit = true;
73     fetchSubmodules = true;
74   };
76   dumb-http-signed-tag = testers.invalidateFetcherByDrvHash fetchgit {
77     name = "dumb-http-signed-tag-source";
78     url = "https://git.scottworley.com/pub/git/pinch";
79     rev = "v3.0.14";
80     sha256 = "sha256-bd0Lx75Gd1pcBJtwz5WGki7XoYSpqhinCT3a77wpY2c=";
81   };