bear: fix on x86_64-darwin

launchpad/nixpkgs/master
Dmitry Kalinkin 3 years ago
parent c0c88243ee
commit e2e44d9b5c
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333
  1. 5
      pkgs/development/tools/build-managers/bear/default.nix
  2. 8
      pkgs/top-level/all-packages.nix

@ -49,6 +49,9 @@ stdenv.mkDerivation rec {
./no-double-relative.patch
];
# 'path' is unavailable: introduced in macOS 10.15
CXXFLAGS = lib.optional (stdenv.hostPlatform.system == "x86_64-darwin") "-D_LIBCPP_DISABLE_AVAILABILITY";
meta = with lib; {
description = "Tool that generates a compilation database for clang tooling";
longDescription = ''
@ -60,7 +63,5 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ babariviere qyliss ];
# ld: symbol(s) not found for architecture x86_64
broken = stdenv.isDarwin && stdenv.isx86_64;
};
}

@ -13343,7 +13343,13 @@ with pkgs;
buildBazelPackage = callPackage ../build-support/build-bazel-package { };
bear = callPackage ../development/tools/build-managers/bear { };
bear = callPackage ../development/tools/build-managers/bear {
# error: no viable constructor or deduction guide for deduction of template arguments of 'map'
stdenv = if stdenv.hostPlatform.system == "x86_64-darwin" then
llvmPackages_11.stdenv
else
stdenv;
};
bin_replace_string = callPackage ../development/tools/misc/bin_replace_string { };

Loading…
Cancel
Save