diff options
author | lassulus <lassulus@lassul.us> | 2021-10-23 19:03:02 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-10-23 21:32:45 +0200 |
commit | d1a55f88766b72769e5f756f8b4724e13e1c6981 (patch) | |
tree | e4c24b57c7987910af09c01357aa8a0421f8c9c9 /lass/1systems | |
parent | 0c15f3b6a7a216eec1fb1ba368da5c3ea4b43c5e (diff) |
l coaxmetal.r: build with unstable
Diffstat (limited to 'lass/1systems')
-rw-r--r-- | lass/1systems/coaxmetal/source.nix | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/lass/1systems/coaxmetal/source.nix b/lass/1systems/coaxmetal/source.nix index 0e2628b5b..7f335ec05 100644 --- a/lass/1systems/coaxmetal/source.nix +++ b/lass/1systems/coaxmetal/source.nix @@ -1,4 +1,21 @@ -{ lib, pkgs, ... }: -{ - nixpkgs.git.ref = lib.mkForce (lib.importJSON ../../../krebs/nixpkgs-unstable.json).rev; +{ 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; + }); } |