forked from solokeys/solo1-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
51 lines (45 loc) · 1.07 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs =
{
self,
flake-utils,
nixpkgs,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = (import nixpkgs) { inherit system; };
python3Packages = pkgs.python3Packages;
in
rec {
packages.default = python3Packages.buildPythonApplication {
pname = "solo1-cli";
version = "0.1.0";
src = ./.;
pyproject = true;
build-system = with python3Packages; [
flit
];
dependencies = with python3Packages; [
click
cryptography
ecdsa
fido2
intelhex
pyserial
pyusb
requests
];
meta = {
mainProgram = "solo1";
};
};
devShells.default = pkgs.mkShell { inputsFrom = [ packages.default ]; };
formatter = pkgs.nixfmt-rfc-style;
}
);
}