Merge pull request #231740 from bendlas/lldap-extra-tools

lldap: build lldap_set_password and migration-tool
This commit is contained in:
Herwig Hochleitner 2023-05-14 16:02:56 +02:00 committed by GitHub
commit 891d21166f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,6 +90,9 @@ let
}); });
in rustPlatform.buildRustPackage (commonDerivationAttrs // { in rustPlatform.buildRustPackage (commonDerivationAttrs // {
cargoBuildFlags = [ "-p" "lldap" "-p" "migration-tool" "-p" "lldap_set_password" ];
patches = [ patches = [
./static-frontend-path.patch ./static-frontend-path.patch
]; ];
@ -98,6 +101,10 @@ in rustPlatform.buildRustPackage (commonDerivationAttrs // {
substituteInPlace server/src/infra/tcp_server.rs --subst-var-by frontend '${frontend}' substituteInPlace server/src/infra/tcp_server.rs --subst-var-by frontend '${frontend}'
''; '';
postInstall = ''
mv $out/bin/migration-tool $out/bin/lldap_migration_tool
'';
passthru = { passthru = {
inherit frontend; inherit frontend;
tests = { tests = {