treewide: use nativeBuildInputs with runCommand instead of inlining

This commit is contained in:
Sandro Jäckel
2022-12-18 23:35:29 +01:00
parent 76672661b9
commit 26f704b545
6 changed files with 46 additions and 33 deletions

View File

@@ -18,8 +18,9 @@ let
interactiveDriver = (testing.makeTest { inherit nodes; name = "network"; testScript = "start_all(); join_all();"; }).test.driverInteractive;
in
pkgs.runCommand "nixos-build-vms" { nativeBuildInputs = [ pkgs.makeWrapper ]; } ''
pkgs.runCommandLocal "nixos-build-vms" {
nativeBuildInputs = [ pkgs.makeWrapper ];
} ''
mkdir -p $out/bin
ln -s ${interactiveDriver}/bin/nixos-test-driver $out/bin/nixos-test-driver
ln -s ${interactiveDriver}/bin/nixos-test-driver $out/bin/nixos-run-vms