Skip to content

Commit

Permalink
Add cardano-db-sync 13.2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
michalrus committed Mar 28, 2024
1 parent 9259b1c commit fd09123
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
18 changes: 18 additions & 0 deletions native-arm/flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

31 changes: 31 additions & 0 deletions native-arm/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
cardano-db-sync-13-1-0-0 = { url = "github:IntersectMBO/cardano-db-sync/13.1.0.0"; flake = false; };
cardano-db-sync-sancho-4-0-0 = { url = "github:IntersectMBO/cardano-db-sync/sancho-4-0-0"; flake = false; };
cardano-db-sync-sancho-4-1-0 = { url = "github:IntersectMBO/cardano-db-sync/sancho-4.1.0"; flake = false; };
cardano-db-sync-13-2-0-1 = { url = "github:IntersectMBO/cardano-db-sync/13.2.0.1"; flake = false; };

ogmios-5-6-0 = { url = "https://github.com/CardanoSolutions/ogmios.git"; ref = "refs/tags/v5.6.0"; type = "git"; submodules = true; flake = false; };
ogmios-6-1-0 = { url = "https://github.com/CardanoSolutions/ogmios.git"; ref = "refs/tags/v6.1.0"; type = "git"; submodules = true; flake = false; };
Expand Down Expand Up @@ -369,6 +370,36 @@

++

(let
input = "cardano-db-sync-13-2-0-1";
version = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.${input}.original.ref;
theFlake = (import inputs.flake-compat {
src = enableAArch64 {
original = inputs.${input};
supportedSystemsPath = "supported-systems.nix";
extraPatch = ''
(
cd $out
patch -p1 -i ${./cardano-db-sync-sancho-4-0-0--run-as-root.patch}
# <https://github.com/IntersectMBO/cardano-db-sync/pull/1660>
patch -p1 -i ${./cardano-db-sync-sancho-4-0-0--dont-use-cardano-parts.diff}
patch -p1 -i ${./cardano-db-sync-sancho-4-0-0--enable-aarch64-linux.patch}
)
'';
};
override-inputs.customConfig = { outputs = {}; } // (import inputs.flake-compat {
src = builtins.path {
path = "${inputs.${input}}/custom-config";
};
}).defaultNix;
}).defaultNix;
in [
# { name = "${input}--flake"; value = theFlake; }
{ name = "${input}--oci"; value = retagOCI "cardano-db-sync" version theFlake.packages.${system}.cardano-db-sync-docker; }
])

++

# —————————————————— cardano-node —————————————————— #

(let
Expand Down

0 comments on commit fd09123

Please sign in to comment.