File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 19
19
"9p"
20
20
"virtiofs"
21
21
] ++ lib . optionals (
22
- pkgs . targetPlatform . system == "x86_64-linux" &&
22
+ pkgs . stdenv . targetPlatform . system == "x86_64-linux" &&
23
23
config . microvm . hypervisor == "firecracker"
24
24
) [
25
25
# Keyboard controller that can receive CtrlAltDel
Original file line number Diff line number Diff line change 1
1
# Builds a MicroVM from a flake but takes the hypervisor from the
2
2
# local pkgs not from the target flake.
3
3
{ self
4
- , lib , targetPlatform
4
+ , lib , stdenv
5
5
, writeShellScriptBin
6
6
, coreutils , git , nix
7
7
} :
@@ -23,7 +23,7 @@ writeShellScriptBin "build-microvm" ''
23
23
# --impure so that we can getFlake /nix/store/...
24
24
exec nix build "'' ${ARGS[@]}" --impure --expr "let
25
25
self = builtins.getFlake \"${ self } \";
26
- pkgs = self.inputs.nixpkgs.legacyPackages.${ targetPlatform . system } ;
26
+ pkgs = self.inputs.nixpkgs.legacyPackages.${ stdenv . targetPlatform . system } ;
27
27
flake = builtins.getFlake \"$FLAKE\";
28
28
# The imported NixOS system
29
29
original = flake.nixosConfigurations.\"$NAME\";
You can’t perform that action at this time.
0 commit comments