add cli program into flake

This commit is contained in:
xenofem 2022-05-25 09:43:20 -04:00
parent 7719e33832
commit 6d19c2b967
4 changed files with 26 additions and 2 deletions

View file

@ -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}";
};