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

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