mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-23 16:02:10 +00:00
Adding launcher to build. (#2397)
This commit is contained in:
parent
8750dc878e
commit
fbe59c6267
18
_launcher.nix
Normal file
18
_launcher.nix
Normal 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 ];
|
||||||
|
|
||||||
|
}
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user