Unverified Commit bfcaeb20 authored by David Wolff's avatar David Wolff
Browse files

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.
parent dbac71af
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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";
    };
  }

)