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:
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user