Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dynamic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ pkgs.mkShell {
jq
libblst
libsodium-vrf
lmdb # required by ouroboros-consensus (cardano-lmdb)
secp256k1
yq-go
]
Expand Down
7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
'';
postFixup = "";
});
# lmdb uses a plain Makefile (no autoconf), so we strip the .so
# target the same way nixpkgs does for isStatic platforms.
static-lmdb = final.lmdb.overrideAttrs (old: {
postPatch = (old.postPatch or "") + ''
sed 's/^ILIBS\>.*/ILIBS = liblmdb.a/' -i Makefile
'';
});
});

# nixpkgs defines happy = justStaticExecutables haskellPackages.happy
Expand Down
2 changes: 2 additions & 0 deletions static.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ let tool-version-map = (import ./tool-map.nix) self;
--ghc-option=-L${lib.getLib static-libsodium-vrf}/lib \
--ghc-option=-L${lib.getLib static-secp256k1}/lib \
--ghc-option=-L${lib.getLib static-libblst}/lib \
--ghc-option=-L${lib.getLib static-lmdb}/lib \
--ghc-option=-L${lib.getLib static-openssl}/lib
;;
clean|unpack)
Expand Down Expand Up @@ -136,6 +137,7 @@ pkgs.mkShell (rec {
] ++ lib.optionals withIOG [
static-libblst
static-libsodium-vrf
static-lmdb # required by ouroboros-consensus (cardano-lmdb)
static-secp256k1
icu # for cardano-cli
gh
Expand Down
Loading