krops: bootstrap nixpkgs
This commit is contained in:
parent
33add1d756
commit
fd5615a298
@ -9,13 +9,19 @@
|
|||||||
|
|
||||||
krebs-source = { test ? false }: rec {
|
krebs-source = { test ? false }: rec {
|
||||||
nixpkgs = if test then {
|
nixpkgs = if test then {
|
||||||
derivation = ''
|
derivation = let
|
||||||
with import <nixpkgs> {};
|
rev = (lib.importJSON ./nixpkgs.json).rev;
|
||||||
|
sha256 = (lib.importJSON ./nixpkgs.json).sha256;
|
||||||
|
in ''
|
||||||
|
with import (builtins.fetchTarball {
|
||||||
|
url = "https://github.com/nixos/nixpkgs/archive/${rev}.tar.gz";
|
||||||
|
sha256 = "${sha256}";
|
||||||
|
}) {};
|
||||||
pkgs.fetchFromGitHub {
|
pkgs.fetchFromGitHub {
|
||||||
owner = "nixos";
|
owner = "nixos";
|
||||||
repo = "nixpkgs";
|
repo = "nixpkgs";
|
||||||
rev = "${(lib.importJSON ./nixpkgs.json).rev}";
|
rev = "${rev}";
|
||||||
sha256 = "${(lib.importJSON ./nixpkgs.json).sha256}";
|
sha256 = "${sha256}";
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user