wayland-headless: Do not run checks on RISC-V

shellcheck requires GHC which cannot be built for RISC-V.
This commit is contained in:
Mikael 2024-08-30 21:46:37 +02:00
parent bddc920f08
commit 1647fbdac9
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -1,14 +1,15 @@
{ ... }: { stdenvNoCC, lib, shellcheck-minimal, runtimeShell, cage }: { ... }: { stdenvNoCC, hostPlatform, lib, shellcheck-minimal, runtimeShell, cage }:
stdenvNoCC.mkDerivation { stdenvNoCC.mkDerivation (finalAttrs: {
name = "wayland-headless"; name = "wayland-headless";
nativeInstallCheckInputs = [ shellcheck-minimal ]; nativeInstallCheckInputs = lib.optionals
finalAttrs.doInstallCheck [ shellcheck-minimal ];
dontUnpack = true; dontUnpack = true;
dontConfigure = true; dontConfigure = true;
dontBuild = true; dontBuild = true;
doInstallCheck = true; doInstallCheck = !hostPlatform.isRiscV64;
installPhase = '' installPhase = ''
mkdir -p "$out/bin" mkdir -p "$out/bin"
@ -33,4 +34,4 @@ stdenvNoCC.mkDerivation {
meta = { meta = {
inherit (cage.meta) platforms; inherit (cage.meta) platforms;
}; };
} })