add cli program into flake
This commit is contained in:
parent
7719e33832
commit
6d19c2b967
4 changed files with 26 additions and 2 deletions
14
flake.nix
14
flake.nix
|
@ -50,6 +50,16 @@
|
|||
|
||||
packages."${name}-unwrapped" = project.rootCrate.build;
|
||||
|
||||
packages."${name}-cli" = with pkgs.python3Packages; buildPythonApplication {
|
||||
pname = "${name}-cli";
|
||||
version = "0.1";
|
||||
propagatedBuildInputs = [
|
||||
tqdm
|
||||
websockets
|
||||
];
|
||||
src = ./cli;
|
||||
};
|
||||
|
||||
devShell = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [
|
||||
stdenv.cc
|
||||
|
@ -57,6 +67,10 @@
|
|||
cargo
|
||||
cargo-audit
|
||||
cargo-flamegraph
|
||||
(python3.withPackages (p: with p; [
|
||||
tqdm
|
||||
websockets
|
||||
]))
|
||||
];
|
||||
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue