This repository was archived by the owner on Jan 23, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathflake.nix
More file actions
57 lines (57 loc) · 1.35 KB
/
flake.nix
File metadata and controls
57 lines (57 loc) · 1.35 KB
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
52
53
54
55
56
57
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
deps =
pkgs:
with pkgs;
[
# core development utils
uv
ruff
gnumake
buf
# network driver
iperf3
# qemu driver
qemu
]
++ lib.optionals stdenv.hostPlatform.isLinux [
# ustreamer driver
ustreamer
];
in
{
devShells = {
default = pkgs.mkShell {
name = "jumpstarter-dev";
nativeBuildInputs = deps pkgs;
};
};
packages = {
dev-fhs = pkgs.buildFHSEnv {
name = "jumpstarter-dev-fhs";
targetPkgs =
ps:
deps ps
++ (with ps; [
# various drivers requiring libusb/libz
libusb1
libz
]);
profile = ''
export UV_MANAGED_PYTHON=1
export SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt
'';
};
};
}
);
}