forked from blaggacao/frappix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
65 lines (58 loc) · 1.99 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
description = "Frappe Development & Deployment Environment";
outputs = {
std,
self,
...
} @ inputs:
std.growOn {
inherit inputs;
cellsFrom = std.incl ./. ["src" "local" "apps" "examples"];
cellBlocks = with std.blockTypes; [
(data "templates")
# Pkgs Functions for Frappe Framework Components
(functions "overlays")
(pkgs "pkgs")
# App Sources
(anything "sources")
# Modules
(anything "nixos")
(anything "shell")
(nixostests "tests")
(microvms "vms")
(runnables "jobs" // {cli = false;}) # for downstream use
# local
(anything "config" // {cli = false;})
(devshells "shells")
];
}
{
packages = std.winnow (n: _: n == "frx") self ["src" "pkgs"];
shellModule = std.harvest self ["src" "shell" "bench"];
toolsOverlay = std.harvest self ["src" "overlays" "tools"];
pythonOverlay = std.harvest self ["src" "overlays" "python"];
frappeOverlay = std.harvest self ["src" "overlays" "frappe"];
nixosModules = std.harvest self ["src" "nixos"];
frapper = import ./std/frapper.nix {inherit inputs;};
nvchecker = import ./std/nvchecker.nix {inherit inputs;};
templates = std.pick self ["examples" "templates"];
};
# stick with master for a while until more dependencies are stabilized
inputs.nixpkgs.url = "github:nixos/nixpkgs/release-23.11";
inputs = {
std.url = "github:divnix/std/v0.33.0";
devshell.url = "github:numtide/devshell";
devshell.inputs.nixpkgs.follows = "nixpkgs";
nixago.url = "github:nix-community/nixago";
nixago.inputs.nixpkgs.follows = "nixpkgs";
nixago.inputs.nixago-exts.follows = "";
microvm.url = "github:astro/microvm.nix";
microvm.inputs.nixpkgs.follows = "nixpkgs";
std.inputs = {
nixpkgs.follows = "nixpkgs";
devshell.follows = "devshell";
nixago.follows = "nixago";
microvm.follows = "microvm";
};
};
}