nixpkgs/pkgs/development/tools/build-managers/bear/default.nix

34 lines
988 B
Nix
Raw Normal View History

2016-08-29 13:05:12 +01:00
{ stdenv, fetchFromGitHub, cmake, python }:
stdenv.mkDerivation rec {
pname = "bear";
2019-08-30 04:31:54 +01:00
version = "2.4.2";
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;
2019-08-30 04:31:54 +01:00
sha256 = "1w1kyjzvvy5lj16kn3yyf7iil2cqlfkszi8kvagql7f5h5l6w9b1";
2016-08-29 13:05:12 +01:00
};
nativeBuildInputs = [ cmake ];
buildInputs = [ python ]; # just for shebang of bin/bear
doCheck = false; # all fail
2018-03-01 17:03:42 +00:00
patches = [ ./ignore_wrapper.patch ./cmakepaths.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.babariviere ];
2016-08-29 13:05:12 +01:00
};
}