lldap: use finalAttrs when referring to frontend

Referring to finalAttrs when setting the assets path
in postInstall makes it easier to override the frontend
without also having to override postInstall.
This commit is contained in:
David Wolff
2025-09-23 14:53:24 +02:00
parent dbac71aff0
commit bfcaeb2071
+3 -1
View File
@@ -101,6 +101,7 @@ let
in
rustPlatform.buildRustPackage (
finalAttrs:
commonDerivationAttrs
// {
cargoBuildFlags = [
@@ -115,7 +116,7 @@ rustPlatform.buildRustPackage (
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram $out/bin/lldap \
--set LLDAP_ASSETS_PATH ${frontend}
--set LLDAP_ASSETS_PATH ${finalAttrs.finalPackage.frontend}
'';
passthru = {
@@ -138,4 +139,5 @@ rustPlatform.buildRustPackage (
mainProgram = "lldap";
};
}
)