forked from tinkerbell/hook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
37 lines (35 loc) · 822 Bytes
/
shell.nix
File metadata and controls
37 lines (35 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
let _pkgs = import <nixpkgs> { };
in
{ pkgs ?
import
(_pkgs.fetchFromGitHub {
owner = "NixOS";
repo = "nixpkgs";
#branch@date: nixpkgs-unstable@2021-01-25
rev = "ce7b327a52d1b82f82ae061754545b1c54b06c66";
sha256 = "1rc4if8nmy9lrig0ddihdwpzg2s8y36vf20hfywb8hph5hpsg4vj";
}) { }
}:
with pkgs;
let
docker-ov = docker.override {
buildxSupport = true;
};
linuxkit-ov = linuxkit.overrideAttrs (oldAttrs: rec {
version = "unstable-g${builtins.substring 0 9 src.rev}";
src = fetchFromGitHub {
owner = "linuxkit";
repo = "linuxkit";
rev = "ccece6a4889e15850dfbaf6d5170939c83edb103";
sha256 = "1hx5k0l9gniz9aj9li8dkiniqs77pyfcl979y75yqm3mynrdz9ca";
};
});
in
mkShell {
buildInputs = [
docker-ov
git
linuxkit-ov
s3cmd
];
}