Adding launcher to build.

This commit is contained in:
Nicolas Patry 2024-08-12 09:42:58 +02:00
parent 01a515dea2
commit 7e694bbab7
No known key found for this signature in database
GPG Key ID: 64AF4752B2967863
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 { (callPackage ./router.nix {
inherit (rustPlatform) buildRustPackage importCargoLock; inherit (rustPlatform) buildRustPackage importCargoLock;
}) })
(callPackage ./_launcher.nix {
inherit (rustPlatform) buildRustPackage importCargoLock;
})
]); ]);
venvDir = "./.venv"; venvDir = "./.venv";