From 9f0215d1896f1d8b2e35195a4b653ff1dff06349 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 30 Jan 2024 20:32:59 +0100 Subject: [PATCH] pkgsMusl.pam: fix build --- pkgs/os-specific/linux/pam/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/pam/default.nix b/pkgs/os-specific/linux/pam/default.nix index 116fd06d511c..c956dfad4c64 100644 --- a/pkgs/os-specific/linux/pam/default.nix +++ b/pkgs/os-specific/linux/pam/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, buildPackages, fetchurl +{ lib, stdenv, buildPackages, fetchurl, fetchpatch , flex, cracklib, db4, gettext, audit, libxcrypt , nixosTests , autoreconfHook269, pkg-config-unwrapped @@ -15,6 +15,13 @@ stdenv.mkDerivation rec { patches = [ ./suid-wrapper-path.patch + + # Backport fix for missing include breaking musl builds. + (fetchpatch { + name = "pam_namespace-stdint.h.patch"; + url = "https://github.com/linux-pam/linux-pam/commit/cc9d40b7cdbd3e15ccaa324a0dda1680ef9dea13.patch"; + hash = "sha256-tCnH2yPO4dBbJOZA0fP2gm1EavHRMEJyfzB5Vy7YjAA="; + }) ]; # Case-insensitivity workaround for https://github.com/linux-pam/linux-pam/issues/569