Skip to content

Commit

Permalink
Fix boost
Browse files Browse the repository at this point in the history
  • Loading branch information
tvorogme committed Jun 11, 2024
1 parent ed6e345 commit 9e557c4
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 49 deletions.
9 changes: 1 addition & 8 deletions assembly/nix/linux-arm64-static.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@
let
microhttpdmy = (import ./microhttpd.nix) { inherit pkgs; };
in
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
with import microhttpdmy;
stdenv.mkDerivation {
pname = "ton";
Expand All @@ -30,7 +23,7 @@ stdenv.mkDerivation {

buildInputs = with pkgs;
[
pkgsStatic.openssl microhttpdmy pkgsStatic.zlib pkgsStatic.libsodium.dev pkgsStatic.secp256k1 glibc.static boostStatic
pkgsStatic.openssl microhttpdmy pkgsStatic.zlib pkgsStatic.libsodium.dev pkgsStatic.secp256k1 glibc.static boost
];

makeStatic = true;
Expand Down
11 changes: 2 additions & 9 deletions assembly/nix/linux-arm64-tonlib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@
let
microhttpdmy = (import ./microhttpd.nix) { inherit pkgs; };
in
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
with import microhttpdmy;
pkgs.llvmPackages_16.stdenv.mkDerivation {
pname = "ton";
Expand All @@ -25,12 +18,12 @@ pkgs.llvmPackages_16.stdenv.mkDerivation {

nativeBuildInputs = with pkgs;
[
cmake ninja git pkg-config boostStatic
cmake ninja git pkg-config
];

buildInputs = with pkgs;
[
pkgsStatic.openssl microhttpdmy pkgsStatic.zlib pkgsStatic.secp256k1
pkgsStatic.openssl microhttpdmy pkgsStatic.zlib pkgsStatic.secp256k1 boost
(pkgsStatic.libsodium.overrideAttrs (oldAttrs: {
# https://github.com/jedisct1/libsodium/issues/292#issuecomment-137135369
configureFlags = oldAttrs.configureFlags ++ [ " --disable-pie" ];
Expand Down
9 changes: 1 addition & 8 deletions assembly/nix/linux-x86-64-static.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ let
microhttpdmy = (import ./microhttpd.nix) { inherit pkgs; };
in
with import microhttpdmy;
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
stdenv.mkDerivation {
pname = "ton";
version = "dev-bin";
Expand All @@ -30,7 +23,7 @@ stdenv.mkDerivation {

buildInputs = with pkgs;
[
pkgsStatic.openssl microhttpdmy pkgsStatic.zlib pkgsStatic.libsodium.dev pkgsStatic.secp256k1 glibc.static boostStatic
pkgsStatic.openssl microhttpdmy pkgsStatic.zlib pkgsStatic.libsodium.dev pkgsStatic.secp256k1 glibc.static boost
];

makeStatic = true;
Expand Down
9 changes: 1 addition & 8 deletions assembly/nix/linux-x86-64-tonlib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,6 @@ let
in (pkgs.overrideCC pkgs.stdenv cc);

in
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
stdenv227.mkDerivation {
pname = "ton";
version = "dev-lib";
Expand All @@ -41,7 +34,7 @@ stdenv227.mkDerivation {

buildInputs = with pkgs;
[
pkgsStatic.openssl pkgsStatic.zlib pkgsStatic.libmicrohttpd.dev pkgsStatic.secp256k1 boostStatic
pkgsStatic.openssl pkgsStatic.zlib pkgsStatic.libmicrohttpd.dev pkgsStatic.secp256k1 boost
(pkgsStatic.libsodium.overrideAttrs (oldAttrs: {
# https://github.com/jedisct1/libsodium/issues/292#issuecomment-137135369
configureFlags = oldAttrs.configureFlags ++ [ " --disable-pie" ];
Expand Down
9 changes: 1 addition & 8 deletions assembly/nix/macos-static.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
, 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
pkgs.llvmPackages_14.stdenv.mkDerivation {
pname = "ton";
version = "dev-bin";
Expand All @@ -24,7 +17,7 @@ pkgs.llvmPackages_14.stdenv.mkDerivation {

buildInputs = with pkgs;
lib.forEach [
secp256k1 libsodium.dev libmicrohttpd.dev gmp.dev nettle.dev libtasn1.dev libidn2.dev libunistring.dev gettext (gnutls.override { withP11-kit = false; }).dev boostStatic
secp256k1 libsodium.dev libmicrohttpd.dev gmp.dev nettle.dev libtasn1.dev libidn2.dev libunistring.dev gettext (gnutls.override { withP11-kit = false; }).dev boost
]
(x: x.overrideAttrs(oldAttrs: rec { configureFlags = (oldAttrs.configureFlags or []) ++ [ "--enable-static" "--disable-shared" "--disable-tests" ]; dontDisableStatic = true; }))
++ [
Expand Down
9 changes: 1 addition & 8 deletions assembly/nix/macos-tonlib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@
, 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
pkgs.llvmPackages_14.stdenv.mkDerivation {
pname = "ton";
version = "dev-lib";
Expand All @@ -24,7 +17,7 @@ pkgs.llvmPackages_14.stdenv.mkDerivation {

buildInputs = with pkgs;
lib.forEach [
secp256k1 libsodium.dev libmicrohttpd.dev gmp.dev nettle.dev libtasn1.dev libidn2.dev libunistring.dev gettext (gnutls.override { withP11-kit = false; }).dev boostStatic
secp256k1 libsodium.dev libmicrohttpd.dev gmp.dev nettle.dev libtasn1.dev libidn2.dev libunistring.dev gettext (gnutls.override { withP11-kit = false; }).dev boost
] (x: x.overrideAttrs(oldAttrs: rec { configureFlags = (oldAttrs.configureFlags or []) ++ [ "--enable-static" "--disable-shared" "--disable-tests" ]; dontDisableStatic = true; }))
++ [
darwin.apple_sdk.frameworks.CoreFoundation
Expand Down

0 comments on commit 9e557c4

Please sign in to comment.