libcgroup: allow building without pam (#471739)

This commit is contained in:
Nikolay Korotkiy
2026-03-08 12:01:58 +00:00
committed by GitHub
+6 -5
View File
@@ -5,6 +5,7 @@
pam,
bison,
flex,
enablePam ? lib.meta.availableOn stdenv.hostPlatform pam,
enableSystemd ? lib.meta.availableOn stdenv.hostPlatform systemdLibs,
systemdLibs,
musl-fts,
@@ -24,6 +25,7 @@ stdenv.mkDerivation (finalAttrs: {
};
configureFlags = [
(lib.enableFeature enablePam "pam")
(lib.enableFeature enableSystemd "systemd")
]
# implicit declaration of function 'rpl_malloc', ; did you mean 'realloc'
@@ -40,11 +42,10 @@ stdenv.mkDerivation (finalAttrs: {
bison
flex
];
buildInputs = [
pam
]
++ lib.optional enableSystemd systemdLibs
++ lib.optional stdenv.hostPlatform.isMusl musl-fts;
buildInputs =
lib.optional enablePam pam
++ lib.optional enableSystemd systemdLibs
++ lib.optional stdenv.hostPlatform.isMusl musl-fts;
postPatch = ''
substituteInPlace src/tools/Makefile.am \