stockholm/lass/1systems/coaxmetal/source.nix

22 lines
553 B
Nix
Raw Normal View History

2021-10-23 17:03:02 +00:00
{ lib, pkgs, test, ... }: let
npkgs = lib.importJSON ../../../krebs/nixpkgs-unstable.json;
in {
2021-10-24 18:34:17 +00:00
nixpkgs = (if test then lib.mkForce ({ derivation = let
2021-10-23 17:03:02 +00:00
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}";
}
2021-10-24 18:34:17 +00:00
''; }) else {
git.ref = lib.mkForce npkgs.rev;
2021-10-23 17:03:02 +00:00
});
2021-10-23 10:13:53 +00:00
}