2016-08-29 13:05:12 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, python }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "bear-${version}";
|
2018-02-06 05:13:54 +00:00
|
|
|
version = "2.3.11";
|
2016-08-29 13:05:12 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rizsotto";
|
|
|
|
repo = "Bear";
|
|
|
|
rev = version;
|
2018-02-06 05:13:54 +00:00
|
|
|
sha256 = "0r6ykvclq9ws055ssd8w33dicmk5l9pisv0fpzkks700n8d3z9f3";
|
2016-08-29 13:05:12 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ python ]; # just for shebang of bin/bear
|
|
|
|
|
|
|
|
doCheck = false; # all fail
|
|
|
|
|
2016-11-03 14:27:03 +00:00
|
|
|
patches = [ ./ignore_wrapper.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;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.vcunat ];
|
|
|
|
};
|
|
|
|
}
|