nixos/systemd-boot: fix cross for lint check

Since we are not in a `callPackage` context, dependencies in
`nativeBuildInputs` don't get spliced to the buildPlatform, causing a
cross-compiled nixos system to fail at this step when running mypy built
for the hostPlatform.
This commit is contained in:
Jared Baur
2024-02-24 08:58:57 -06:00
parent 1b7a8f9eff
commit a786cc0227

View File

@@ -49,12 +49,10 @@ let
''; '';
}; };
checkedSystemdBootBuilder = pkgs.runCommand "systemd-boot" { checkedSystemdBootBuilder = pkgs.runCommand "systemd-boot" { } ''
nativeBuildInputs = [ pkgs.mypy ];
} ''
mkdir -p $out/bin mkdir -p $out/bin
install -m755 ${systemdBootBuilder} $out/bin/systemd-boot-builder install -m755 ${systemdBootBuilder} $out/bin/systemd-boot-builder
mypy \ ${lib.getExe pkgs.buildPackages.mypy} \
--no-implicit-optional \ --no-implicit-optional \
--disallow-untyped-calls \ --disallow-untyped-calls \
--disallow-untyped-defs \ --disallow-untyped-defs \