Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move this patch to ctl-nix #81

Open
github-actions bot opened this issue Mar 4, 2023 · 0 comments
Open

move this patch to ctl-nix #81

github-actions bot opened this issue Mar 4, 2023 · 0 comments
Labels
help wanted Extra attention is needed todo

Comments

@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2023

https://api.github.com/LovelaceAcademy/nix-templates/blob/9852a28ad9c37aa4be5c8e08865a19322ab1f00e/ctl-full/flake.nix#L49

                ];
            };
          ps-command = ps.command { };
          # TODO move this patch to ctl-nix
          prebuilt = (pkgs.arion.build {
            inherit pkgs;
            modules =
              let
                # add here the Slot and block header where you want to start syncing
                slot = "11213922";
                id = "3e9029c1dff85bad50e2a0b507d39ef4d745d24a9780b3ce5eda7df307815db2";
                ctl-module = pkgs.buildCtlRuntime {
                  kupo.since = "${slot}.${id}";
                  datumCache.blockFetcher.firstBlock = {
                    inherit slot id;
                  };
                };
                ctl-module' = args:
                  let
                    module-ret = ctl-module args;
                    kupo-cmd = module-ret.services.kupo.service.command;
                  in
                  pkgs.lib.attrsets.recursiveUpdate module-ret {
                    # FIXME remove workaround for defer-db-indexes
                    #  Related Plutonomicon/cardano-transaction-lib#1444
                    services.kupo.service.command =
                      pkgs.lib.lists.subtractLists [ "--defer-db-indexes" ] kupo-cmd;
                  };
              in
              [ ctl-module' ];
          });
          concurrent = pkgs.writeShellApplication {
            name = "concurrent";
            runtimeInputs = with pkgs; [
@github-actions github-actions bot added help wanted Extra attention is needed todo labels Mar 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed todo
Projects
None yet
Development

No branches or pull requests

0 participants