2020-02-21 23:14:52 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, python3 }:
|
2016-08-29 14:05:12 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "bear";
|
2019-08-30 05:31:54 +02:00
|
|
|
version = "2.4.2";
|
2016-08-29 14:05:12 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "rizsotto";
|
2019-08-30 05:31:54 +02:00
|
|
|
repo = pname;
|
2016-08-29 14:05:12 +02:00
|
|
|
rev = version;
|
2019-08-30 05:31:54 +02:00
|
|
|
sha256 = "1w1kyjzvvy5lj16kn3yyf7iil2cqlfkszi8kvagql7f5h5l6w9b1";
|
2016-08-29 14:05:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-02-21 23:14:52 +01:00
|
|
|
buildInputs = [ python3 ]; # just for shebang of bin/bear
|
2016-08-29 14:05:12 +02:00
|
|
|
|
|
|
|
doCheck = false; # all fail
|
|
|
|
|
2018-03-01 18:03:42 +01:00
|
|
|
patches = [ ./ignore_wrapper.patch ./cmakepaths.patch ];
|
2016-11-03 15:27:03 +01:00
|
|
|
|
2016-08-29 14:05:12 +02: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.
|
|
|
|
'';
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/rizsotto/Bear";
|
2016-08-29 14:05:12 +02:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
2019-05-21 12:48:42 +02:00
|
|
|
maintainers = [ maintainers.babariviere ];
|
2016-08-29 14:05:12 +02:00
|
|
|
};
|
|
|
|
}
|