From 15f685808fa7f192cb466d8ff6f607cb338df12b Mon Sep 17 00:00:00 2001 From: Guillaume Girol Date: Sun, 24 Apr 2022 12:00:00 +0000 Subject: [PATCH] kbd: fix static build --- pkgs/os-specific/linux/kbd/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/os-specific/linux/kbd/default.nix b/pkgs/os-specific/linux/kbd/default.nix index 4c89d8c82197..4d08a38dbe85 100644 --- a/pkgs/os-specific/linux/kbd/default.nix +++ b/pkgs/os-specific/linux/kbd/default.nix @@ -63,6 +63,7 @@ stdenv.mkDerivation rec { ''; buildInputs = [ check pam ]; + NIX_LDFLAGS = lib.optional stdenv.hostPlatform.isStatic "-laudit"; nativeBuildInputs = [ autoreconfHook pkg-config flex ]; passthru.tests = {