From 36c70c49d378a3e5b9dbaee6455268f324629f24 Mon Sep 17 00:00:00 2001 From: Herwig Hochleitner Date: Sat, 13 May 2023 21:49:31 +0200 Subject: [PATCH] lldap: build lldap_set_password and migration-tool --- pkgs/servers/ldap/lldap/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/servers/ldap/lldap/default.nix b/pkgs/servers/ldap/lldap/default.nix index 1eb885be7854..a141f4f3dc9c 100644 --- a/pkgs/servers/ldap/lldap/default.nix +++ b/pkgs/servers/ldap/lldap/default.nix @@ -90,6 +90,9 @@ let }); in rustPlatform.buildRustPackage (commonDerivationAttrs // { + + cargoBuildFlags = [ "-p" "lldap" "-p" "migration-tool" "-p" "lldap_set_password" ]; + patches = [ ./static-frontend-path.patch ]; @@ -98,6 +101,10 @@ in rustPlatform.buildRustPackage (commonDerivationAttrs // { substituteInPlace server/src/infra/tcp_server.rs --subst-var-by frontend '${frontend}' ''; + postInstall = '' + mv $out/bin/migration-tool $out/bin/lldap_migration_tool + ''; + passthru = { inherit frontend; tests = {