8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
33 lines
992 B
Nix
33 lines
992 B
Nix
{ stdenv, fetchFromGitHub, cmake, python3 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "bear";
|
|
version = "2.4.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rizsotto";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1w1kyjzvvy5lj16kn3yyf7iil2cqlfkszi8kvagql7f5h5l6w9b1";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ python3 ]; # just for shebang of bin/bear
|
|
|
|
doCheck = false; # all fail
|
|
|
|
patches = [ ./ignore_wrapper.patch ./cmakepaths.patch ];
|
|
|
|
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";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.babariviere ];
|
|
};
|
|
}
|