diff options
author | tv <tv@krebsco.de> | 2021-11-21 13:44:39 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2021-11-21 13:44:39 +0100 |
commit | e250f858382a1c830a55a7243a80e1fbd2d1b15d (patch) | |
tree | 0dd30c66ddc473112f1f1fcbf0c80ad896a38204 /lass/1systems/coaxmetal/source.nix | |
parent | a752af84bedc24fdc32004a8760532b3206c0421 (diff) | |
parent | b0f39ae34d1f248a4c1b92946a42418779f69490 (diff) |
Merge remote-tracking branch 'prism/master'
Diffstat (limited to 'lass/1systems/coaxmetal/source.nix')
-rw-r--r-- | lass/1systems/coaxmetal/source.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lass/1systems/coaxmetal/source.nix b/lass/1systems/coaxmetal/source.nix new file mode 100644 index 000000000..abbf26c75 --- /dev/null +++ b/lass/1systems/coaxmetal/source.nix @@ -0,0 +1,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; + }); +} |