util-linux: also downgrade static builds already

We need this now to fix nixStatic build:
https://hydra.nixos.org/build/259722977
/cc PR #309805
This commit is contained in:
Vladimír Čunát 2024-05-20 11:46:27 +02:00
parent fa8ec6702a
commit 15d8d27bd6
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -22,7 +22,7 @@
let
# Temporarily avoid applying the patches on systems where already we have binaries
# (in particular x86_64-linux and aarch64-linux) as the package is a huge rebuild there.
avoidRebuild = stdenv.isLinux && stdenv.is64bit;
avoidRebuild = with stdenv.hostPlatform; isLinux && is64bit && !isStatic;
in
stdenv.mkDerivation rec {
pname = "util-linux" + lib.optionalString (!nlsSupport && !ncursesSupport && !systemdSupport) "-minimal";