Skip to content

Commit

Permalink
Adding launcher to build. (#2397)
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil authored Aug 12, 2024
1 parent 9c73965 commit 730fa00
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions _launcher.nix
Original file line number Diff line number Diff line change
@@ -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 ];

}
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
(callPackage ./router.nix {
inherit (rustPlatform) buildRustPackage importCargoLock;
})
(callPackage ./_launcher.nix {
inherit (rustPlatform) buildRustPackage importCargoLock;
})
]);

venvDir = "./.venv";
Expand Down

0 comments on commit 730fa00

Please sign in to comment.