1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/build-managers/bear/default.nix

61 lines
1.2 KiB
Nix
Raw Normal View History

{ stdenv
, fetchFromGitHub
, cmake
, pkg-config
, grpc
, protobuf
, openssl
, nlohmann_json
, gtest
, fmt
, spdlog
, c-ares
, abseil-cpp
, zlib
}:
2016-08-29 13:05:12 +01:00
stdenv.mkDerivation rec {
pname = "bear";
2020-11-25 22:38:25 +00:00
version = "3.0.3";
2016-08-29 13:05:12 +01:00
src = fetchFromGitHub {
owner = "rizsotto";
2019-08-30 04:31:54 +01:00
repo = pname;
2016-08-29 13:05:12 +01:00
rev = version;
2020-11-25 22:38:25 +00:00
sha256 = "1abx5h6xy0h3mz29ial5si8smkmjzla050d130pcc6dzr4ic642w";
2016-08-29 13:05:12 +01:00
};
nativeBuildInputs = [ cmake pkg-config ];
2016-08-29 13:05:12 +01:00
buildInputs = [
grpc
protobuf
openssl
nlohmann_json
gtest
fmt
spdlog
c-ares
abseil-cpp
zlib
];
2016-08-29 13:05:12 +01:00
patches = [
# Default libexec would be set to /nix/store/*-bear//nix/store/*-bear/libexec/...
./no-double-relative.patch
];
2016-08-29 13:05:12 +01:00
meta = with stdenv.lib; {
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 13:05:12 +01:00
license = licenses.gpl3Plus;
platforms = platforms.unix;
maintainers = [ maintainers.babariviere ];
2016-08-29 13:05:12 +01:00
};
}