diff --git a/flake.nix b/flake.nix index ce4fc59..2be304a 100644 --- a/flake.nix +++ b/flake.nix @@ -23,6 +23,15 @@ static-openssl = (final.openssl.override { static = true; }); static-zlib = final.zlib.override { shared = false; }; static-pcre = final.pcre.override { shared = false; }; + static-libblst = final.libblst.overrideDerivation (old: { + configureFlags = old.configureFlags ++ [ "--enable-static" "--disable-shared" ]; + buildPhase = '' + runHook preBuild + ./build.sh + runHook postBuild + ''; + postFixup = ""; + }); }); # the haskell inline-r package depends on internals of the R # project that have been hidden in R 4.2+. See diff --git a/static.nix b/static.nix index 39127d6..ffe8ba6 100644 --- a/static.nix +++ b/static.nix @@ -39,6 +39,7 @@ let tool-version-map = import ./tool-map.nix; --ghc-option=-L${lib.getLib static-gmp}/lib \ --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-openssl}/lib ;; clean|unpack) @@ -105,15 +106,14 @@ pkgs.mkShell (rec { # it _should_ probably call out to a g++ or clang++ but doesn't. stdenv.cc.cc.lib ]) ++ map lib.getDev ([ - static-gmp - - zlib pcre - openssl + static-gmp + static-openssl + static-zlib ] ++ lib.optionals withIOG [ - libblst - libsodium-vrf - secp256k1 + static-libblst + static-libsodium-vrf + static-secp256k1 #R_4_1_3 # for plutus postgresql # for db-sync icu # for cardano-cli