Skip to content

Commit fd09123

Browse files
committed
Add cardano-db-sync 13.2.0.1
1 parent 9259b1c commit fd09123

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

native-arm/flake.lock

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

native-arm/flake.nix

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
cardano-db-sync-13-1-0-0 = { url = "github:IntersectMBO/cardano-db-sync/13.1.0.0"; flake = false; };
1313
cardano-db-sync-sancho-4-0-0 = { url = "github:IntersectMBO/cardano-db-sync/sancho-4-0-0"; flake = false; };
1414
cardano-db-sync-sancho-4-1-0 = { url = "github:IntersectMBO/cardano-db-sync/sancho-4.1.0"; flake = false; };
15+
cardano-db-sync-13-2-0-1 = { url = "github:IntersectMBO/cardano-db-sync/13.2.0.1"; flake = false; };
1516

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

370371
++
371372

373+
(let
374+
input = "cardano-db-sync-13-2-0-1";
375+
version = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.${input}.original.ref;
376+
theFlake = (import inputs.flake-compat {
377+
src = enableAArch64 {
378+
original = inputs.${input};
379+
supportedSystemsPath = "supported-systems.nix";
380+
extraPatch = ''
381+
(
382+
cd $out
383+
patch -p1 -i ${./cardano-db-sync-sancho-4-0-0--run-as-root.patch}
384+
# <https://github.com/IntersectMBO/cardano-db-sync/pull/1660>
385+
patch -p1 -i ${./cardano-db-sync-sancho-4-0-0--dont-use-cardano-parts.diff}
386+
patch -p1 -i ${./cardano-db-sync-sancho-4-0-0--enable-aarch64-linux.patch}
387+
)
388+
'';
389+
};
390+
override-inputs.customConfig = { outputs = {}; } // (import inputs.flake-compat {
391+
src = builtins.path {
392+
path = "${inputs.${input}}/custom-config";
393+
};
394+
}).defaultNix;
395+
}).defaultNix;
396+
in [
397+
# { name = "${input}--flake"; value = theFlake; }
398+
{ name = "${input}--oci"; value = retagOCI "cardano-db-sync" version theFlake.packages.${system}.cardano-db-sync-docker; }
399+
])
400+
401+
++
402+
372403
# —————————————————— cardano-node —————————————————— #
373404

374405
(let

0 commit comments

Comments
 (0)