summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-11-05 14:07:22 +0100
committerlassulus <lassulus@lassul.us>2021-11-05 14:07:22 +0100
commit4dea6681b4726a749e4cfc56c45f289a9cfdcf37 (patch)
treec4bf78aab6fb27ebf02ebc1bd4d5c0a0b67108df
parent1e90bd460a7bc96460871ad16aff99f2bf7e301c (diff)
l mors.r: use unstable
-rw-r--r--lass/1systems/mors/source.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/lass/1systems/mors/source.nix b/lass/1systems/mors/source.nix
new file mode 100644
index 00000000..abbf26c7
--- /dev/null
+++ b/lass/1systems/mors/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;
+ });
+}