diff --git a/dynamic.nix b/dynamic.nix index 1282e10..06a8d26 100644 --- a/dynamic.nix +++ b/dynamic.nix @@ -124,6 +124,7 @@ pkgs.mkShell { jq libblst libsodium-vrf + lmdb # for cardano-lmdb/ouroboros-consensus secp256k1 yq-go ] diff --git a/flake.nix b/flake.nix index 5a62054..67a9587 100644 --- a/flake.nix +++ b/flake.nix @@ -36,6 +36,12 @@ ''; postFixup = ""; }); + static-lmdb = final.lmdb.overrideDerivation (old: { + # Don't attempt the .so if static, as it would fail. + postPatch = '' + sed 's/^ILIBS\>.*/ILIBS = liblmdb.a/' -i Makefile + ''; + }); }); cddl-tools = (final: prev: { diff --git a/static.nix b/static.nix index 5f91545..1ed6bb2 100644 --- a/static.nix +++ b/static.nix @@ -128,6 +128,7 @@ pkgs.mkShell (rec { static-libblst static-libsodium-vrf static-secp256k1 + static-lmdb # for cardano-lmdb/ouroboros-consensus icu # for cardano-cli gh jq diff --git a/tool-map.nix b/tool-map.nix index bc5fe54..6904dbe 100644 --- a/tool-map.nix +++ b/tool-map.nix @@ -15,7 +15,7 @@ let f76d08be13e9a61a377a85e2fb63f4c5435d40f8feb3e12eb05905edb8cdea89 26021a13b401500c8eb2761ca95c61f2d625bfef951b939a8124ed12ecf07329 7541f32a4ccca4f97aea3b22f5e593ba2c0267546016b992dfadcd2fe944e55d - --sha256: sha256-+hzciiQqWb5oOzQ2JZ2lzJGfGuwA3ZigeWgAQ8Dz+kk= + --sha256: sha256-YVcHIBJ8qo2fCBkuRM+vCVVoEEzGcFqNPMukSCBbcJw= if impl(ghc < 9.13) active-repositories: hackage.haskell.org