nixpkgs/pkgs/development/tools/build-managers/bear/default.nix

63 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchFromGitHub
, cmake
, pkg-config
, grpc
, protobuf
, openssl
, nlohmann_json
, gtest
, spdlog
, c-ares
, abseil-cpp
, zlib
2021-03-09 11:02:53 +00:00
, sqlite
, re2
}:
2016-08-29 12:05:12 +00:00
stdenv.mkDerivation rec {
pname = "bear";
2021-09-03 13:32:26 +00:00
version = "3.0.14";
2016-08-29 12:05:12 +00:00
src = fetchFromGitHub {
owner = "rizsotto";
2019-08-30 03:31:54 +00:00
repo = pname;
2016-08-29 12:05:12 +00:00
rev = version;
2021-09-03 13:32:26 +00:00
sha256 = "0qy96dyd29bjvfhi46y30hli5cvshw8am0spvcv9v43660wbczd7";
2016-08-29 12:05:12 +00:00
};
nativeBuildInputs = [ cmake pkg-config ];
2016-08-29 12:05:12 +00:00
buildInputs = [
grpc
protobuf
openssl
nlohmann_json
gtest
spdlog
c-ares
abseil-cpp
zlib
2021-03-09 11:02:53 +00:00
sqlite
re2
];
2016-08-29 12:05:12 +00:00
patches = [
# Default libexec would be set to /nix/store/*-bear//nix/store/*-bear/libexec/...
./no-double-relative.patch
];
meta = with lib; {
2016-08-29 12:05:12 +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";
2016-08-29 12:05:12 +00:00
license = licenses.gpl3Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ babariviere qyliss ];
2016-08-29 12:05:12 +00:00
};
}