summaryrefslogtreecommitdiffstats
path: root/lass/1systems/coaxmetal/source.nix
blob: abbf26c756091ef2542636881d81e20805f307f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ lib, pkgs, test, ... }: let
  npkgs = lib.importJSON ../../../krebs/nixpkgs-unstable.json;
in {
  nixpkgs = (if test then lib.mkForce ({ derivation = let
    rev = npkgs.rev;
    sha256 = npkgs.sha256;
  in ''
    with import (builtins.fetchTarball {
      url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
      sha256 = "${sha256}";
    }) {};
    pkgs.fetchFromGitHub {
      owner = "nixos";
      repo = "nixpkgs";
      rev = "${rev}";
      sha256 = "${sha256}";
    }
  ''; }) else {
    git.ref = lib.mkForce npkgs.rev;
  });
}