From 1647fbdac90f6d2ef981df0cef417c18491ab369 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Fri, 30 Aug 2024 21:46:37 +0200 Subject: [PATCH] wayland-headless: Do not run checks on RISC-V shellcheck requires GHC which cannot be built for RISC-V. --- package/wayland-headless/package.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/package/wayland-headless/package.nix b/package/wayland-headless/package.nix index 7c42ef6..f0c776a 100644 --- a/package/wayland-headless/package.nix +++ b/package/wayland-headless/package.nix @@ -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"; - nativeInstallCheckInputs = [ shellcheck-minimal ]; + nativeInstallCheckInputs = lib.optionals + finalAttrs.doInstallCheck [ shellcheck-minimal ]; dontUnpack = true; dontConfigure = true; dontBuild = true; - doInstallCheck = true; + doInstallCheck = !hostPlatform.isRiscV64; installPhase = '' mkdir -p "$out/bin" @@ -33,4 +34,4 @@ stdenvNoCC.mkDerivation { meta = { inherit (cage.meta) platforms; }; -} +})