diff options
author | lassulus <lassulus@lassul.us> | 2019-01-28 23:05:53 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2019-01-28 23:16:48 +0100 |
commit | 42ca9d3eb8b8329fb47c0afba352a456a706f408 (patch) | |
tree | f933215799581194148de737c6c273fc14371dfa /lass/1systems/blue | |
parent | fd5615a298ff4b7cfa7e8cccbcac0afb680cc9a9 (diff) |
l blue.r: bootstrap nixpkgs
Diffstat (limited to 'lass/1systems/blue')
-rw-r--r-- | lass/1systems/blue/source.nix | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lass/1systems/blue/source.nix b/lass/1systems/blue/source.nix index a32c3a829..a52771a4d 100644 --- a/lass/1systems/blue/source.nix +++ b/lass/1systems/blue/source.nix @@ -1,13 +1,19 @@ { lib, pkgs, ... }: { nixpkgs = lib.mkForce { - derivation = '' - with import <nixpkgs> {}; + derivation = let + rev = (lib.importJSON ../../../krebs/nixpkgs.json).rev; + sha256 = (lib.importJSON ../../../krebs/nixpkgs.json).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 = "${(lib.importJSON ../../../krebs/nixpkgs.json).rev}"; - sha256 = "${(lib.importJSON ../../../krebs/nixpkgs.json).sha256}"; + rev = "${rev}"; + sha256 = "${sha256}"; } ''; }; |