From f31d556520386fdd053dbfd3d50f7ab5c012a793 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 20 Mar 2025 10:46:49 +0100 Subject: [PATCH] util-linux: fix static Fixes: fb70653cda9f ("util-linux: 2.39.4 -> 2.40.4") Closes: https://github.com/NixOS/nixpkgs/issues/389169 --- pkgs/by-name/ut/util-linux/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/ut/util-linux/package.nix b/pkgs/by-name/ut/util-linux/package.nix index 076c9316c158..80c83dc3259f 100644 --- a/pkgs/by-name/ut/util-linux/package.nix +++ b/pkgs/by-name/ut/util-linux/package.nix @@ -105,6 +105,10 @@ stdenv.mkDerivation rec { ++ lib.optionals stdenv.hostPlatform.isDarwin [ # Doesn't build on Darwin, also doesn't really make sense on Darwin "--disable-liblastlog2" + ] + ++ lib.optionals stdenv.hostPlatform.isStatic [ + # Mandatory shared library. + "--disable-pam-lastlog2" ]; makeFlags = [