-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
58 lines (51 loc) · 1.28 KB
/
Copy pathflake.nix
File metadata and controls
58 lines (51 loc) · 1.28 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
58
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
};
outputs = {
self,
flake-parts,
...
} @ inputs:
flake-parts.lib.mkFlake {inherit inputs;} {
systems = ["x86_64-linux" "aarch64-linux"];
perSystem = {
self',
system,
pkgs,
...
}: {
packages.default = self'.packages.boros;
packages.boros = let
boros_toml = builtins.fromTOML (builtins.readFile ./pyproject.toml);
in
pkgs.python312Packages.buildPythonPackage {
pname = boros_toml.project.name;
version = boros_toml.project.version;
pyproject = true;
src = ./.;
build-system = with pkgs; [
python312Packages.meson-python
];
nativeBuildInputs = with pkgs; [
pkg-config
];
pythonImportsCheck = [boros_toml.project.name];
};
devShells.default = pkgs.mkShell {
packages = with pkgs; [
clang-tools
cmake
just
liburing
meson
ninja
pkg-config
python312
uv
];
};
};
};
}