-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathflake.nix
78 lines (70 loc) · 2.49 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
66
67
68
69
70
71
72
73
74
75
76
77
78
{
description = "Frappe Development & Deployment Environment";
outputs = {
std,
self,
...
} @ inputs:
std.growOn {
inherit inputs;
cellsFrom = std.incl ./. ["src" "local" "apps" "examples" "tests"];
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 "nixos-tests")
(microvms "vms")
(runnables "jobs" // {cli = false;}) # for downstream use
# containers
(anything "oci") # really: oci modules
(containers "oci-images" {ci.publish = true;})
(arion "arion-compose")
# 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"];
libsOverlay = std.harvest self ["src" "overlays" "libs"];
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"];
};
inputs.nixpkgs.url = "github:nixos/nixpkgs/release-24.05";
inputs = {
std.url = "github:divnix/std/v0.33.3";
# std.url = "/home/blaggacao/src/github.com/divnix/std";
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";
arion.url = "github:hercules-ci/arion";
arion.inputs.nixpkgs.follows = "nixpkgs";
# arion.inputs.hercules-ci-effects.follows = "";
n2c.url = "github:nlewo/nix2container";
# n2c.inputs.nixpkgs.follows = "nixpkgs";
std.inputs = {
n2c.follows = "n2c";
nixpkgs.follows = "nixpkgs";
devshell.follows = "devshell";
nixago.follows = "nixago";
microvm.follows = "microvm";
arion.follows = "arion";
};
};
}