fix(3p/nix): propagate dependencies which are needed by people linking in nix
This includes absl, which we install into the output, and boost and the boehm GC, which are moved to propagated deps. Change-Id: I8f9f9795ff92e26b2320359064241d7fd59c2d33 Reviewed-on: https://cl.tvl.fyi/c/depot/+/549 Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
parent
b99829f142
commit
4de63f784c
3 changed files with 14 additions and 2 deletions
1
third_party/default.nix
vendored
1
third_party/default.nix
vendored
|
@ -92,6 +92,7 @@ let
|
||||||
mdbook
|
mdbook
|
||||||
meson
|
meson
|
||||||
mime-types
|
mime-types
|
||||||
|
mkShell
|
||||||
moreutils
|
moreutils
|
||||||
nano
|
nano
|
||||||
nginx
|
nginx
|
||||||
|
|
8
third_party/nix/CMakeLists.txt
vendored
8
third_party/nix/CMakeLists.txt
vendored
|
@ -30,6 +30,14 @@ find_package(LibLZMA)
|
||||||
# builds this symlink is automatically replaced with an appropriate
|
# builds this symlink is automatically replaced with an appropriate
|
||||||
# link to the Abseil sources in the Nix store.
|
# link to the Abseil sources in the Nix store.
|
||||||
add_subdirectory(abseil_cpp)
|
add_subdirectory(abseil_cpp)
|
||||||
|
install(DIRECTORY abseil_cpp/absl
|
||||||
|
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
|
||||||
|
FILES_MATCHING
|
||||||
|
PATTERN "*.inc"
|
||||||
|
PATTERN "*.h"
|
||||||
|
PATTERN "copts" EXCLUDE
|
||||||
|
PATTERN "testdata" EXCLUDE
|
||||||
|
)
|
||||||
|
|
||||||
# Linking precompiled glog binaries (linked against libstdc++) leads
|
# Linking precompiled glog binaries (linked against libstdc++) leads
|
||||||
# to working binaries that do not output log messages. It seems that
|
# to working binaries that do not output log messages. It seems that
|
||||||
|
|
7
third_party/nix/default.nix
vendored
7
third_party/nix/default.nix
vendored
|
@ -36,13 +36,11 @@ in pkgs.llvmPackages.libcxxStdenv.mkDerivation {
|
||||||
# TODO(tazjin): Some of these might only be required for native inputs
|
# TODO(tazjin): Some of these might only be required for native inputs
|
||||||
buildInputs = with pkgs; [
|
buildInputs = with pkgs; [
|
||||||
aws-s3-cpp
|
aws-s3-cpp
|
||||||
boost
|
|
||||||
brotli
|
brotli
|
||||||
bzip2
|
bzip2
|
||||||
curl
|
curl
|
||||||
editline
|
editline
|
||||||
flex
|
flex
|
||||||
largeBoehm
|
|
||||||
libseccomp
|
libseccomp
|
||||||
libsodium
|
libsodium
|
||||||
openssl
|
openssl
|
||||||
|
@ -50,6 +48,11 @@ in pkgs.llvmPackages.libcxxStdenv.mkDerivation {
|
||||||
xz
|
xz
|
||||||
];
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = with pkgs; [
|
||||||
|
boost
|
||||||
|
largeBoehm
|
||||||
|
];
|
||||||
|
|
||||||
# Install the various symlinks to the Nix binary which users expect
|
# Install the various symlinks to the Nix binary which users expect
|
||||||
# to exist.
|
# to exist.
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
|
Loading…
Reference in a new issue