Skip to content

Commit

Permalink
Fix nix
Browse files Browse the repository at this point in the history
  • Loading branch information
tvorogme committed Jun 11, 2024
1 parent 633f2ca commit 40ecd4c
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion assembly/nix/linux-arm64-static.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@
, system ? builtins.currentSystem
, src ? ./.
}:

let
boostStatic = pkgs.boost.overrideAttrs (oldAttrs: {
buildInputs = (oldAttrs.buildInputs or []) ++ [ pkgsStatic.stdenv ];
doCheck = false;
configureFlags = [ "--with-libraries=all" "--with-icu" "--with-serialization" "--with-date_time" "--with-thread" "--with-regex" "--with-filesystem" "--with-program_options" "--with-system" "--with-chrono" "--with-random" "--with-test" ];
});
in

let
microhttpdmy = (import ./microhttpd.nix) { inherit pkgs; };
in
Expand All @@ -29,7 +38,7 @@ stdenv.mkDerivation {
pkgsStatic.libsodium.dev
pkgsStatic.secp256k1
glibc.static
boost
boostStatic
];

makeStatic = true;
Expand All @@ -45,6 +54,10 @@ stdenv.mkDerivation {
"-DMHD_INCLUDE_DIR=${microhttpdmy}/usr/local/include"
"-DMHD_LIBRARY=${microhttpdmy}/usr/local/lib/libmicrohttpd.a"
"-DCMAKE_CTEST_ARGUMENTS=--timeout;1800"
"-DBOOST_ROOT=${boostStatic}"
"-DBOOST_INCLUDEDIR=${boostStatic.dev}/include"
"-DBOOST_LIBRARYDIR=${boostStatic.lib}/lib"
"-DBoost_USE_STATIC_LIBS=ON"
];

LDFLAGS = [
Expand Down

0 comments on commit 40ecd4c

Please sign in to comment.