77 revstring_long = self . rev or "dirty" ;
88 revstring = builtins . substring 0 7 revstring_long ;
99
10- dev-module-ids = [ "python-3.10" "python-3.11" "nodejs-18" "nodejs-20" "nodejs-22" "go-1.21" "docker" "replit" "replit-rtld-loader" "ruby" "ruby-3.2" "postgresql-16" ] ;
11-
12- mkPhonyOCI = pkgs . callPackage ./mk-phony-oci { ztoc-rs = self . inputs . ztoc-rs . packages . x86_64-linux . default ; } ;
10+ dev-module-ids = [
11+ "python-3.10"
12+ "python-3.11"
13+ "nodejs-18"
14+ "nodejs-20"
15+ "nodejs-22"
16+ "go-1.21"
17+ "docker"
18+ "replit"
19+ "replit-rtld-loader"
20+ "ruby"
21+ "ruby-3.2"
22+ "postgresql-16"
23+ ] ;
24+
25+ mkPhonyOCI = pkgs . callPackage ./mk-phony-oci {
26+ ztoc-rs = self . inputs . ztoc-rs . packages . x86_64-linux . default ;
27+ } ;
1328
1429 bundle-fn = pkgs . callPackage ./bundle { inherit self ; } ;
1530
16- bundle-squashfs-fn = { moduleIds ? null , diskName ? "disk.raw" } :
31+ bundle-squashfs-fn =
32+ { moduleIds ? null
33+ , diskName ? "disk.raw"
34+ ,
35+ } :
1736 pkgs . callPackage ./bundle-image {
1837 bundle = bundle-fn { inherit moduleIds ; } ;
1938 inherit revstring diskName ;
2039 } ;
2140
41+ disk-script-fn =
42+ { moduleIds ? null
43+ ,
44+ } :
45+ pkgs . callPackage ./disk-script {
46+ bundle = bundle-fn { inherit moduleIds ; } ;
47+ } ;
48+
2249in
2350rec {
2451 default = moduleit ;
3966 # For prod use: builds the Nixmodules disk image
4067 bundle-image-tarball = pkgs . callPackage ./bundle-image-tarball { inherit bundle-image revstring ; } ;
4168
69+ disk-script-dev = disk-script-fn {
70+ moduleIds = dev-module-ids ;
71+ } ;
72+
73+ disk-script = disk-script-fn { } ;
74+
4275 # For dev use: builds the shared Nixmodules disk
4376 bundle-squashfs = bundle-squashfs-fn {
4477 moduleIds = dev-module-ids ;
@@ -52,13 +85,16 @@ rec {
5285 } ;
5386
5487 phony-oci-bundles = mapAttrs
55- ( moduleId : _ :
56- mkPhonyOCI {
57- inherit moduleId ;
58- module = self . deploymentModules . ${ moduleId } ;
59- } )
88+ (
89+ moduleId : _ :
90+ mkPhonyOCI {
91+ inherit moduleId ;
92+ module = self . deploymentModules . ${ moduleId } ;
93+ }
94+ )
6095 modules ;
6196
6297 deploymentModules = self . deploymentModules ;
6398
64- } // modules
99+ }
100+ // modules
0 commit comments