add cli program into flake

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

View File

@ -1,2 +0,0 @@
tqdm
websockets

12
cli/setup.py Normal file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env python
from setuptools import setup
setup(name='transbeam-cli',
version='0.1',
scripts=['transbeam-cli'],
install_requires=[
'tqdm',
'websockets',
],
)

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