linux-pam: fixup build on musl

In particular, nixStatic was blocked by this.
https://hydra.nixos.org/build/247250976/nixlog/46/tail
This commit is contained in:
Vladimír Čunát 2024-01-25 09:16:25 +01:00
parent 24db4fbcb8
commit a763026780
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -24,7 +24,13 @@ stdenv.mkDerivation rec {
url = "https://github.com/linux-pam/linux-pam/commit/77bd338125cde583ecdfb9fd69619bcd2baf15c2.patch";
hash = "sha256-tlc9RcLZpEH315NFD4sdN9yOco8qhC6+bszl4OHm+AI=";
})
];
]
++ lib.optional stdenv.hostPlatform.isMusl (fetchpatch {
name = "missing-termio.patch";
url = "https://github.com/linux-pam/linux-pam/commit/5374f677e4cae669eb9accf2449178b602e8a40a.patch";
hash = "sha256-b6n8f16ETSNj5h+5/Yhn32XMfVO8xEnZRRhw+nuLP/8=";
})
;
# Case-insensitivity workaround for https://github.com/linux-pam/linux-pam/issues/569
postPatch = if stdenv.buildPlatform.isDarwin && stdenv.buildPlatform != stdenv.hostPlatform then ''