summaryrefslogtreecommitdiffstats
path: root/lass/1systems/coaxmetal/source.nix
blob: 7f335ec0559369f65a2dab987efee192a9cde86e (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 = lib.mkForce (if test then { 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 = npkgs.rev;
  });
}