This repository has no description
553 B
21 lines
1{ lib, pkgs, test, ... }: let
2 npkgs = lib.importJSON ../../../krebs/nixpkgs-unstable.json;
3in {
4 nixpkgs = (if test then lib.mkForce ({ derivation = let
5 rev = npkgs.rev;
6 sha256 = npkgs.sha256;
7 in ''
8 with import (builtins.fetchTarball {
9 url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
10 sha256 = "${sha256}";
11 }) {};
12 pkgs.fetchFromGitHub {
13 owner = "nixos";
14 repo = "nixpkgs";
15 rev = "${rev}";
16 sha256 = "${sha256}";
17 }
18 ''; }) else {
19 git.ref = lib.mkForce npkgs.rev;
20 });
21}