Adding launcher to build. (#2397)

This commit is contained in:
Nicolas Patry 2024-08-12 14:08:46 +02:00 committed by GitHub
parent 9c739651cd
commit 730fa00e20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 21 additions and 0 deletions

18
_launcher.nix Normal file
View File

@ -0,0 +1,18 @@
{ buildRustPackage, importCargoLock, pkg-config, protobuf, openssl }:
buildRustPackage {
name = "text-generation-lancher";
src = ./.;
sourceDir = ./launcher;
cargoLock = {
lockFile = ./Cargo.lock;
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl.dev protobuf ];
}

View File

@ -74,6 +74,9 @@
(callPackage ./router.nix {
inherit (rustPlatform) buildRustPackage importCargoLock;
})
(callPackage ./_launcher.nix {
inherit (rustPlatform) buildRustPackage importCargoLock;
})
]);
venvDir = "./.venv";