2a3bb2f8ac
I don't really use it anymore, thanks to meson+ninja.
34 lines
999 B
Nix
34 lines
999 B
Nix
{ stdenv, fetchFromGitHub, cmake, python }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "bear-${version}";
|
|
version = "2.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rizsotto";
|
|
repo = "Bear";
|
|
rev = version;
|
|
sha256 = "0r5mhacn8v4b2kjni91nxh3b6g86cbkrnlk4f6sj4mdrvx25dp39";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ python ]; # 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 ];
|
|
};
|
|
}
|