mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
fetchgit.tests: init
This commit is contained in:
parent
6ea8d10948
commit
0fa3d10d7d
10
pkgs/build-support/fetchgit/tests.nix
Normal file
10
pkgs/build-support/fetchgit/tests.nix
Normal 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=";
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user