-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
52 lines (47 loc) · 1.26 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
{
description = "Example of consuming redun flake package";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
flake-utils.url = "github:numtide/flake-utils";
redun = {
# url = "github:AgResearch/redun.nix?ref=refs/tags/24.11";
url = "..";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs:
inputs.flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = import inputs.nixpkgs {
inherit system;
};
flakePkgs = {
redun = inputs.redun.packages.${system}.default;
};
python-with-redun = pkgs.symlinkJoin
{
name = "python-with-redun";
paths = [
flakePkgs.redun
(
pkgs.python311.withPackages (python-pkgs: [
# add any other required packages here, either from nixpkgs or other flakes
python-pkgs.pytest
])
)
];
};
in
with pkgs;
{
devShells.default = mkShell {
buildInputs =
[
bashInteractive
python-with-redun
];
};
}
);
}