File tree Expand file tree Collapse file tree 5 files changed +193
-8
lines changed Expand file tree Collapse file tree 5 files changed +193
-8
lines changed Original file line number Diff line number Diff line change 99{
1010 inputs = {
1111 nixpkgs . url = "github:NixOS/nixpkgs?ref=nixos-24.05" ;
12+ buildbot-nix . url = "github:nix-community/buildbot-nix" ;
1213 treefmt-nix . url = "github:numtide/treefmt-nix" ;
1314 } ;
1415
1718 nixpkgs ,
1819 self ,
1920 treefmt-nix ,
20- } :
21+ ...
22+ } @inputs :
2123 let
2224 supportedSystems = [
2325 "x86_64-linux"
4042 inherit ( nixpkgs . lib ) recurseIntoAttrs ;
4143 in
4244 {
43- nglib = import ./lib nixpkgs . lib ;
45+ nglib = import ./lib {
46+ inherit ( nixpkgs ) lib ;
47+ inherit inputs ;
48+ } ;
4449 examples = import ./examples {
4550 inherit nixpkgs ;
4651 inherit ( self ) nglib ;
Original file line number Diff line number Diff line change 1- lib :
1+ { lib , inputs } :
22let
33 inherit ( lib ) types ;
44 this = {
55 makeSystem = import ./make-system.nix {
66 nglib = this ;
77 overlay = import ../overlay ;
8+ inherit inputs ;
89 } ;
910 dag = import ./dag.nix { inherit lib ; } ;
1011 generators = import ./generators.nix { inherit lib ; } ;
Original file line number Diff line number Diff line change 77# file, You can obtain one at http://mozilla.org/MPL/2.0/.
88
99# These arguments are provided by the overarching NixNG repository and are not user confugurable.
10- { nglib , overlay } :
10+ {
11+ nglib ,
12+ overlay ,
13+ inputs ,
14+ } :
1115# These arguments are user configurable
1216{
1317 nixpkgs ,
2428 evaledModules = evalModules {
2529 specialArgs = specialArgs // {
2630 inherit nglib ;
31+ nixngInputs = inputs ;
2732 } ;
2833
2934 modules =
Original file line number Diff line number Diff line change 1+ { lib , nixngInputs , ... } :
2+ let
3+ buildbotMasterModule =
4+ nixngInputs . nixpkgs + "/nixos/modules/services/continuous-integration/buildbot/master.nix" ;
5+ buildbotWorkerModule =
6+ nixngInputs . nixpkgs + "/nixos/modules/services/continuous-integration/buildbot/worker.nix" ;
7+ in
8+ {
9+ options . nixos = lib . mkOption {
10+ type = lib . types . submodule {
11+ imports = [
12+ buildbotMasterModule
13+ buildbotWorkerModule
14+ nixngInputs . buildbot-nix . nixosModules . buildbot-master
15+ nixngInputs . buildbot-nix . nixosModules . buildbot-worker
16+ ] ;
17+ } ;
18+ } ;
19+ imports = [
20+ ( lib . mkAliasOptionModule
21+ [
22+ "services"
23+ "buildbot-master"
24+ ]
25+ [
26+ "nixos"
27+ "services"
28+ "buildbot-master"
29+ ]
30+ )
31+ ( lib . mkAliasOptionModule
32+ [
33+ "services"
34+ "buildbot-worker"
35+ ]
36+ [
37+ "nixos"
38+ "services"
39+ "buildbot-worker"
40+ ]
41+ )
42+ ( lib . mkAliasOptionModule
43+ [
44+ "services"
45+ "buildbot-nix"
46+ "master"
47+ ]
48+ [
49+ "nixos"
50+ "services"
51+ "buildbot-nix"
52+ "master"
53+ ]
54+ )
55+ ( lib . mkAliasOptionModule
56+ [
57+ "services"
58+ "buildbot-nix"
59+ "worker"
60+ ]
61+ [
62+ "nixos"
63+ "services"
64+ "buildbot-nix"
65+ "worker"
66+ ]
67+ )
68+ ] ;
69+ }
You can’t perform that action at this time.
0 commit comments