openldap: make extraContribModules actually overrideable

By using the build environment instead of relying on rec, using
overrideAttrs to change the value of extraContribModules will actually
have an effect.
This commit is contained in:
sternenseemann 2022-05-28 00:41:18 +02:00
parent 3e92b94120
commit bf5acbc122

View File

@ -81,7 +81,7 @@ stdenv.mkDerivation rec {
];
postBuild = ''
for module in ${lib.concatStringsSep " " extraContribModules}; do
for module in $extraContribModules; do
make $makeFlags CC=$CC -C contrib/slapd-modules/$module
done
'';
@ -105,7 +105,7 @@ stdenv.mkDerivation rec {
];
postInstall = ''
for module in ${lib.concatStringsSep " " extraContribModules}; do
for module in $extraContribModules; do
make $installFlags install -C contrib/slapd-modules/$module
done
chmod +x "$out"/lib/*.{so,dylib}