pkgsMusl.pam: fix build

This commit is contained in:
Alyssa Ross 2024-01-30 20:32:59 +01:00
parent fe79cac73b
commit 9f0215d189
No known key found for this signature in database
GPG Key ID: F9DBED4859B271C0

View File

@ -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