mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
84a75e9488
When a dependency references a github *release* URL, that dependency must be fetched using https rather than git, since github does not require that release tarballs have any relationship whatsoever to the git history. This commit causes them to be fetched using https, not git. A test case (which fails prior to this commit, and passes afterwards) is included.
29 lines
1.0 KiB
Nix
29 lines
1.0 KiB
Nix
{ testers, fetchYarnDeps, ... }:
|
|
|
|
{
|
|
file = testers.invalidateFetcherByDrvHash fetchYarnDeps {
|
|
yarnLock = ./file.lock;
|
|
sha256 = "sha256-BPuyQVCbdpFL/iRhmarwWAmWO2NodlVCOY9JU+4pfa4=";
|
|
};
|
|
simple = testers.invalidateFetcherByDrvHash fetchYarnDeps {
|
|
yarnLock = ./simple.lock;
|
|
sha256 = "sha256-FRrt8BixleILmFB2ZV8RgPNLqgS+dlH5nWoPgeaaNQ8=";
|
|
};
|
|
gitDep = testers.invalidateFetcherByDrvHash fetchYarnDeps {
|
|
yarnLock = ./git.lock;
|
|
sha256 = "sha256-f90IiEzHDiBdswWewRBHcJfqqpPipaMg8N0DVLq2e8Q=";
|
|
};
|
|
githubDep = testers.invalidateFetcherByDrvHash fetchYarnDeps {
|
|
yarnLock = ./github.lock;
|
|
sha256 = "sha256-DIKrhDKoqm7tHZmcuh9eK9VTqp6BxeW0zqDUpY4F57A=";
|
|
};
|
|
githubReleaseDep = testers.invalidateFetcherByDrvHash fetchYarnDeps {
|
|
yarnLock = ./github-release.lock;
|
|
sha256 = "sha256-g+y/H6k8LZ+IjWvkkwV7JhKQH1ycfeqzsIonNv4fDq8=";
|
|
};
|
|
gitUrlDep = testers.invalidateFetcherByDrvHash fetchYarnDeps {
|
|
yarnLock = ./giturl.lock;
|
|
sha256 = "sha256-VPnyqN6lePQZGXwR7VhbFnP7/0/LB621RZwT1F+KzVQ=";
|
|
};
|
|
}
|