fetchgit.tests: init

This commit is contained in:
Robert Hensing 2021-08-28 10:29:10 +02:00
parent 6ea8d10948
commit 0fa3d10d7d
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,10 @@
{ invalidateFetcherByDrvHash, fetchgit, ... }:
{
simple = invalidateFetcherByDrvHash fetchgit {
name = "nix-source";
url = "https://github.com/NixOS/nix";
rev = "9d9dbe6ed05854e03811c361a3380e09183f4f4a";
sha256 = "sha256-7DszvbCNTjpzGRmpIVAWXk20P0/XTrWZ79KSOGLrUWY=";
};
}

View File

@ -441,10 +441,12 @@ with pkgs;
fetchfossil = callPackage ../build-support/fetchfossil { };
fetchgit = callPackage ../build-support/fetchgit {
fetchgit = (callPackage ../build-support/fetchgit {
git = buildPackages.gitMinimal;
cacert = buildPackages.cacert;
git-lfs = buildPackages.git-lfs;
}) // { # fetchgit is a function, so we use // instead of passthru.
tests = callPackages ../build-support/fetchgit/tests.nix {};
};
fetchgitLocal = callPackage ../build-support/fetchgitlocal { };