-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
26 lines (25 loc) · 896 Bytes
/
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
{
inputs = {
# TODO Remove once PR https://github.com/NixOS/nixpkgs/pull/340717 is merged
fork.url = "github:litchipi/nixpkgs/gpt4all-bindings";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = inputs: inputs.flake-utils.lib.eachDefaultSystem (system: let
forkpkgs = import inputs.fork { inherit system; };
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [(self: super: {
python312 = forkpkgs.python312;
python312Packages = forkpkgs.python312Packages;
})];
};
aicha = import ./package.nix pkgs.python312Packages;
in {
packages.default = aicha;
apps.default = inputs.flake-utils.lib.mkApp { drv = aicha; };
devShells.default = pkgs.mkShell {
buildInputs = aicha.dependencies ++ [ pkgs.python312Packages.flake8 ];
};
});
}