tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
bear: init at 2.2.0
Vladimír Čunát
9 years ago
f688ea37
c527ece0
+34
2 changed files
expand all
collapse all
unified
split
pkgs
development
tools
build-managers
bear
default.nix
top-level
all-packages.nix
+32
pkgs/development/tools/build-managers/bear/default.nix
···
1
1
+
{ stdenv, fetchFromGitHub, cmake, python }:
2
2
+
3
3
+
stdenv.mkDerivation rec {
4
4
+
name = "bear-${version}";
5
5
+
version = "2.2.0";
6
6
+
7
7
+
src = fetchFromGitHub {
8
8
+
owner = "rizsotto";
9
9
+
repo = "Bear";
10
10
+
rev = version;
11
11
+
sha256 = "08llfqg8y6d7vfwaw5plrk1rrqzs0ywi2ldnlwvy917603971rg0";
12
12
+
};
13
13
+
14
14
+
nativeBuildInputs = [ cmake ];
15
15
+
buildInputs = [ python ]; # just for shebang of bin/bear
16
16
+
17
17
+
doCheck = false; # all fail
18
18
+
19
19
+
meta = with stdenv.lib; {
20
20
+
description = "Tool that generates a compilation database for clang tooling";
21
21
+
longDescription = ''
22
22
+
Note: the bear command is very useful to generate compilation commands
23
23
+
e.g. for YouCompleteMe. You just enter your development nix-shell
24
24
+
and run `bear make`. It's not perfect, but it gets a long way.
25
25
+
'';
26
26
+
homepage = https://github.com/rizsotto/Bear;
27
27
+
license = licenses.gpl3Plus;
28
28
+
platforms = platforms.unix;
29
29
+
maintainers = [ maintainers.vcunat ];
30
30
+
};
31
31
+
}
32
32
+
+2
pkgs/top-level/all-packages.nix
···
6145
6145
6146
6146
bazel = callPackage ../development/tools/build-managers/bazel { jdk = openjdk8; };
6147
6147
6148
6148
+
bear = callPackage ../development/tools/build-managers/bear { };
6149
6149
+
6148
6150
bin_replace_string = callPackage ../development/tools/misc/bin_replace_string { };
6149
6151
6150
6152
binutils = if stdenv.isDarwin then self.darwin.binutils else self.binutils-raw;