|
9 | 9 | }; |
10 | 10 | }; |
11 | 11 |
|
12 | | - outputs = inputs@{ flake-parts, systems , ... }: |
| 12 | + outputs = inputs@{ flake-parts, systems , opengen, ... }: |
13 | 13 | flake-parts.lib.mkFlake { inherit inputs; } { |
14 | 14 | systems = import systems; |
15 | 15 |
|
|
28 | 28 |
|
29 | 29 | pname = "gensql"; |
30 | 30 | bin = pkgs.callPackage ./nix/bin { inherit uber pname; }; |
31 | | - binGpmSppl = pkgs.callPackage ./nix/bin/with_extra_deps.nix { inherit pname; uber = uberGpmSppl; extraDeps = [ inputs.opengen.packages.${system}.sppl ]; }; |
| 31 | + binGpmSppl = pkgs.callPackage ./nix/bin/gpm-sppl.nix { |
| 32 | + inherit pname opengen; |
| 33 | + uber = uberGpmSppl; |
| 34 | + }; |
32 | 35 |
|
33 | 36 | basicToolsFn = pkgs: with pkgs; [ |
34 | 37 | coreutils |
|
46 | 49 | # packages (derived from inputs.nixpkgs automatically by |
47 | 50 | # flake-parts), but ... |
48 | 51 | ociImg = pkgs.callPackage ./nix/oci { |
49 | | - inherit uber pname basicToolsFn depsCache; |
| 52 | + inherit uber pname basicToolsFn depsCache opengen; |
50 | 53 | # ... we still must pass in the original nixpkgs because |
51 | 54 | # we need access to a different system's set of packages |
52 | 55 | # when compiling for linux while remaining agnostic of |
53 | 56 | # the workstation platform we are running this on. |
54 | 57 | nixpkgs = inputs.nixpkgs; |
55 | 58 | }; |
56 | 59 |
|
57 | | - ociImgSppl = pkgs.callPackage ./nix/oci { |
58 | | - inherit pname basicToolsFn depsCache; |
| 60 | + ociImgSppl = pkgs.callPackage ./nix/oci/gpm-sppl.nix { |
| 61 | + inherit pname opengen basicToolsFn depsCache; |
59 | 62 | uber = uberGpmSppl; |
60 | 63 | # ... we still must pass in the original nixpkgs because |
61 | 64 | # we need access to a different system's set of packages |
|
97 | 100 | }; |
98 | 101 |
|
99 | 102 | devShells.sppl = pkgs.mkShell { |
100 | | - buildInputs = [ pkgs.openjdk21 pkgs.clojure pkgs.babashka depsCache inputs.opengen.sppl ] ++ (basicToolsFn pkgs); |
| 103 | + buildInputs = [ pkgs.openjdk21 pkgs.clojure pkgs.babashka depsCache inputs.opengen.packages.${system}.sppl ] ++ (basicToolsFn pkgs); |
101 | 104 |
|
102 | 105 | shellHook = mutableCacheHook; |
103 | 106 | }; |
|
0 commit comments