Skip to content

Commit ed7fc51

Browse files
committed
Add cardano-db-sync/sancho-4.1.0
1 parent f3cdf20 commit ed7fc51

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
@@ -10,6 +10,7 @@
1010

1111
cardano-db-sync-13-1-0-0 = { url = "github:IntersectMBO/cardano-db-sync/13.1.0.0"; flake = false; };
1212
cardano-db-sync-sancho-4-0-0 = { url = "github:IntersectMBO/cardano-db-sync/sancho-4-0-0"; flake = false; };
13+
cardano-db-sync-sancho-4-1-0 = { url = "github:IntersectMBO/cardano-db-sync/sancho-4.1.0"; flake = false; };
1314

1415
ogmios-5-6-0 = { url = "https://github.com/CardanoSolutions/ogmios.git"; ref = "refs/tags/v5.6.0"; type = "git"; submodules = true; flake = false; };
1516
ogmios-6-1-0 = { url = "https://github.com/CardanoSolutions/ogmios.git"; ref = "refs/tags/v6.1.0"; type = "git"; submodules = true; flake = false; };
@@ -272,6 +273,36 @@
272273

273274
++
274275

276+
(let
277+
input = "cardano-db-sync-sancho-4-1-0";
278+
version = (builtins.fromJSON (builtins.readFile ./flake.lock)).nodes.${input}.original.ref;
279+
theFlake = (import inputs.flake-compat {
280+
src = enableAArch64 {
281+
original = inputs.${input};
282+
supportedSystemsPath = "supported-systems.nix";
283+
extraPatch = ''
284+
(
285+
cd $out
286+
patch -p1 -i ${./cardano-db-sync-sancho-4-0-0--run-as-root.patch}
287+
# <https://github.com/IntersectMBO/cardano-db-sync/pull/1660>
288+
patch -p1 -i ${./cardano-db-sync-sancho-4-0-0--dont-use-cardano-parts.diff}
289+
patch -p1 -i ${./cardano-db-sync-sancho-4-0-0--enable-aarch64-linux.patch}
290+
)
291+
'';
292+
};
293+
override-inputs.customConfig = { outputs = {}; } // (import inputs.flake-compat {
294+
src = builtins.path {
295+
path = "${inputs.${input}}/custom-config";
296+
};
297+
}).defaultNix;
298+
}).defaultNix;
299+
in [
300+
# { name = "${input}--flake"; value = theFlake; }
301+
{ name = "${input}--oci"; value = retagOCI "cardano-db-sync" version theFlake.packages.${system}.cardano-db-sync-docker; }
302+
])
303+
304+
++
305+
275306
# —————————————————— cardano-node —————————————————— #
276307

277308
(let

0 commit comments

Comments
 (0)