|
23 | 23 |
|
24 | 24 | # Makes a per system `lbf-nix` option. |
25 | 25 | perSystem = flake-parts-lib.mkPerSystemOption |
26 | | - ({ pkgs, system, config, ... }: { |
| 26 | + ({ pkgs, config, pkgsForCtl, pkgsForHaskellNix, pkgsForRust, ... }: { |
27 | 27 |
|
28 | 28 | options.lbf-nix = lib.mkOption { |
29 | 29 | type = lib.types.anything; |
|
41 | 41 | lbf-nix = { |
42 | 42 | # NOTE(bladyjoker): If you need to add a function the export externally and use internally via config.lbf-nix, add it here. |
43 | 43 |
|
44 | | - purescriptFlake = |
45 | | - let |
46 | | - pkgs' = import inputs.ctl-nixpkgs { |
47 | | - inherit system; |
48 | | - inherit (inputs.haskell-nix) config; |
49 | | - overlays = [ |
50 | | - inputs.haskell-nix.overlay |
51 | | - inputs.iohk-nix.overlays.crypto |
52 | | - inputs.ctl.overlays.purescript |
53 | | - inputs.ctl.overlays.spago |
54 | | - ]; |
55 | | - }; |
56 | | - in |
57 | | - import ./flake-purescript.nix pkgs'; # TODO(bladyjoker): If we use recent nixpkgs we get: `error: nodejs_14 has been removed as it is EOL`. That's why we use CTL's old nixpkgs. |
| 44 | + purescriptFlake = import ./flake-purescript.nix pkgsForCtl; |
58 | 45 |
|
59 | | - rustFlake = import ./flake-rust.nix pkgs; |
| 46 | + rustFlake = import ./flake-rust.nix pkgsForRust; |
60 | 47 | haskellData = import ./haskell-data.nix pkgs; |
61 | | - haskellFlake = import ./flake-haskell.nix pkgs; |
62 | | - haskellPlutusFlake = import ./flake-haskell-plutus.nix inputs.cardano-haskell-packages pkgs; |
| 48 | + haskellFlake = import ./flake-haskell.nix pkgsForHaskellNix; |
| 49 | + haskellPlutusFlake = import ./flake-haskell-plutus.nix inputs.cardano-haskell-packages pkgsForHaskellNix; |
63 | 50 | typescriptFlake = import ./flake-typescript.nix pkgs; |
64 | 51 | }; |
65 | 52 |
|
|
0 commit comments