mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-29 16:57:40 +03:00
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:
parent
1b7a8f9eff
commit
a786cc0227
@ -49,12 +49,10 @@ let
|
||||
'';
|
||||
};
|
||||
|
||||
checkedSystemdBootBuilder = pkgs.runCommand "systemd-boot" {
|
||||
nativeBuildInputs = [ pkgs.mypy ];
|
||||
} ''
|
||||
checkedSystemdBootBuilder = pkgs.runCommand "systemd-boot" { } ''
|
||||
mkdir -p $out/bin
|
||||
install -m755 ${systemdBootBuilder} $out/bin/systemd-boot-builder
|
||||
mypy \
|
||||
${lib.getExe pkgs.buildPackages.mypy} \
|
||||
--no-implicit-optional \
|
||||
--disallow-untyped-calls \
|
||||
--disallow-untyped-defs \
|
||||
|
Loading…
Reference in New Issue
Block a user