forked from
lass.pds.lassul.us/superconfig
This repository has no description
725 B
32 lines
1{ lib, test, ... }:
2let
3 npkgs = lib.importJSON ../../../krebs/nixpkgs-unstable.json;
4in
5{
6 nixpkgs = (
7 if test then
8 lib.mkForce ({
9 derivation =
10 let
11 rev = npkgs.rev;
12 sha256 = npkgs.sha256;
13 in
14 ''
15 with import (builtins.fetchTarball {
16 url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
17 sha256 = "${sha256}";
18 }) {};
19 pkgs.fetchFromGitHub {
20 owner = "nixos";
21 repo = "nixpkgs";
22 rev = "${rev}";
23 sha256 = "${sha256}";
24 }
25 '';
26 })
27 else
28 {
29 git.ref = lib.mkForce npkgs.rev;
30 }
31 );
32}