Skip to content

Commit

Permalink
Fix bost
Browse files Browse the repository at this point in the history
  • Loading branch information
tvorogme committed Jun 12, 2024
1 parent ec6c809 commit 850cb51
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions assembly/nix/static-libs.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
{ pkgs }:

let
staticBoost = pkgs.boost.overrideAttrs (oldAttrs: {
buildInputs = (oldAttrs.buildInputs or []) ++ [ pkgs.stdenv ];
doCheck = false;
configurePhase = '' ''; # No configure phase
buildPhase = ''
./bootstrap.sh --prefix=$out --with-toolset=clang
./b2 install --prefix=$out --build-dir=build --layout=system link=static threading=multi runtime-link=static
'';
postInstall = ''
rm -rf $out/include/boost
mv $oldAttrs.out/include/boost $out/include/
'';
});
staticBoost = pkgs.boost.overrideAttrs (oldAttrs: {
buildInputs = (oldAttrs.buildInputs or []) ++ [ pkgs.stdenv ];
doCheck = false;
configurePhase = '' ''; # No configure phase
buildPhase = ''
./bootstrap.sh --prefix=$out --with-toolset=clang
./b2 install --prefix=$out --build-dir=build --layout=system link=static threading=multi runtime-link=static
'';
postInstall = ''
mv $out/include/boost $out/include/boost-moved
mv $out/include/boost-moved/* $out/include/
rmdir $out/include/boost-moved
'';
});


staticLibrdkafka = pkgs.rdkafka.overrideAttrs (oldAttrs: {
Expand Down

0 comments on commit 850cb51

Please sign in to comment.