about summary refs log tree commit diff
diff options
context:
space:
mode:
authorVladimír Čunát <v@cunat.cz>2024-05-20 11:46:27 +0200
committerVladimír Čunát <v@cunat.cz>2024-05-20 11:49:07 +0200
commit15d8d27bd66a336e2a26537448d87cfe2d025b7a (patch)
tree783046ac4db63d7b73202fc2a124fe55109cc57e
parentfa8ec6702a3ee117c98d5519b6b054b0f75c6e9b (diff)
util-linux: also downgrade static builds already
We need this now to fix nixStatic build:
https://hydra.nixos.org/build/259722977
/cc PR #309805
-rw-r--r--pkgs/os-specific/linux/util-linux/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/util-linux/default.nix b/pkgs/os-specific/linux/util-linux/default.nix
index 41b022496273c..ef3614bce02ef 100644
--- a/pkgs/os-specific/linux/util-linux/default.nix
+++ b/pkgs/os-specific/linux/util-linux/default.nix
@@ -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";