add cli program into flake
This commit is contained in:
parent
7719e33832
commit
6d19c2b967
|
@ -1,2 +0,0 @@
|
||||||
tqdm
|
|
||||||
websockets
|
|
12
cli/setup.py
Normal file
12
cli/setup.py
Normal 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',
|
||||||
|
],
|
||||||
|
)
|
14
flake.nix
14
flake.nix
|
@ -50,6 +50,16 @@
|
||||||
|
|
||||||
packages."${name}-unwrapped" = project.rootCrate.build;
|
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 {
|
devShell = pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs; [
|
nativeBuildInputs = with pkgs; [
|
||||||
stdenv.cc
|
stdenv.cc
|
||||||
|
@ -57,6 +67,10 @@
|
||||||
cargo
|
cargo
|
||||||
cargo-audit
|
cargo-audit
|
||||||
cargo-flamegraph
|
cargo-flamegraph
|
||||||
|
(python3.withPackages (p: with p; [
|
||||||
|
tqdm
|
||||||
|
websockets
|
||||||
|
]))
|
||||||
];
|
];
|
||||||
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
RUST_SRC_PATH = "${pkgs.rust.packages.stable.rustPlatform.rustLibSrc}";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue