Skip to content

Commit dd89404

Browse files
SuperSandro2000astro
authored andcommitted
Remove alias usage
1 parent 9312244 commit dd89404

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nixos-modules/microvm/system.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"9p"
2020
"virtiofs"
2121
] ++ lib.optionals (
22-
pkgs.targetPlatform.system == "x86_64-linux" &&
22+
pkgs.stdenv.targetPlatform.system == "x86_64-linux" &&
2323
config.microvm.hypervisor == "firecracker"
2424
) [
2525
# Keyboard controller that can receive CtrlAltDel

pkgs/build-microvm.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Builds a MicroVM from a flake but takes the hypervisor from the
22
# local pkgs not from the target flake.
33
{ self
4-
, lib, targetPlatform
4+
, lib, stdenv
55
, writeShellScriptBin
66
, coreutils, git, nix
77
}:
@@ -23,7 +23,7 @@ writeShellScriptBin "build-microvm" ''
2323
# --impure so that we can getFlake /nix/store/...
2424
exec nix build "''${ARGS[@]}" --impure --expr "let
2525
self = builtins.getFlake \"${self}\";
26-
pkgs = self.inputs.nixpkgs.legacyPackages.${targetPlatform.system};
26+
pkgs = self.inputs.nixpkgs.legacyPackages.${stdenv.targetPlatform.system};
2727
flake = builtins.getFlake \"$FLAKE\";
2828
# The imported NixOS system
2929
original = flake.nixosConfigurations.\"$NAME\";

0 commit comments

Comments
 (0)