chore(3p/overlays): Use pkgs.fetchFromGitHub for Nix source

It costs me money and time to use uncacheable builtin fetchers.

Change-Id: I0241cdecbc79e7135765ab4f4c49b4b2c9985d2e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/5548
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2022-05-09 15:55:23 +02:00 committed by clbot
parent 36ca385473
commit 93bfcc9702

View file

@ -6,11 +6,14 @@ self: super:
let
# Rollback Nix to a stable version (2.3) with backports for
# build-user problems applied.
nixSrc = builtins.fetchGit {
url = "https://github.com/tvlfyi/nix.git";
ref = "2.3-backport-await-users";
#hash = "sha256:0jnwrzxh04d0pyhx4n8fg4w1w6ak48byl5k2i8j7fk4h9vd9649k";
};
nixSrc = self.fetchFromGitHub
{
owner = "tvlfyi";
repo = "nix";
# branch 2.3-backport-await-users
rev = "880a62b08443a6baa55dab027b69bb8b1551a588";
hash = "sha256:0jnwrzxh04d0pyhx4n8fg4w1w6ak48byl5k2i8j7fk4h9vd9649k";
} // { revCount = 0; shortRev = "880a62b0"; };
in
{
nix = (import "${nixSrc}/release.nix" {