2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-11-09 15:59:12 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, grpc
|
|
|
|
, protobuf
|
|
|
|
, openssl
|
|
|
|
, nlohmann_json
|
|
|
|
, gtest
|
|
|
|
, spdlog
|
|
|
|
, c-ares
|
|
|
|
, abseil-cpp
|
|
|
|
, zlib
|
2021-03-12 07:09:13 +00:00
|
|
|
, sqlite
|
|
|
|
, re2
|
2020-11-09 15:59:12 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "bear";
|
2022-07-18 16:21:45 +00:00
|
|
|
version = "3.0.19";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rizsotto";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-07-18 16:21:45 +00:00
|
|
|
sha256 = "sha256-Jj38dmzr8NDDMercfWyJrMFxGBSExCGPeG2IVEtnSxY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-11-09 15:59:12 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-09 15:59:12 +00:00
|
|
|
buildInputs = [
|
|
|
|
grpc
|
|
|
|
protobuf
|
|
|
|
openssl
|
|
|
|
nlohmann_json
|
|
|
|
gtest
|
|
|
|
spdlog
|
|
|
|
c-ares
|
|
|
|
abseil-cpp
|
|
|
|
zlib
|
2021-03-12 07:09:13 +00:00
|
|
|
sqlite
|
|
|
|
re2
|
2020-11-09 15:59:12 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-09 15:59:12 +00:00
|
|
|
patches = [
|
|
|
|
# Default libexec would be set to /nix/store/*-bear//nix/store/*-bear/libexec/...
|
|
|
|
./no-double-relative.patch
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tool that generates a compilation database for clang tooling";
|
|
|
|
longDescription = ''
|
|
|
|
Note: the bear command is very useful to generate compilation commands
|
|
|
|
e.g. for YouCompleteMe. You just enter your development nix-shell
|
|
|
|
and run `bear make`. It's not perfect, but it gets a long way.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/rizsotto/Bear";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
2021-06-28 23:13:55 +00:00
|
|
|
maintainers = with maintainers; [ babariviere qyliss ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|