summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2016-08-29 14:05:12 +0200
committerVladimír Čunát <vcunat@gmail.com>2016-08-29 14:13:01 +0200
commitf688ea37d8ee41e42903f4eef7b6537dea14dfa8 (patch)
tree707283f42cb308537fc9ee1031341144d638789b /pkgs/development
parentc527ece0b19458a428f6fcf0d60180b59404e691 (diff)
downloadnixpkgs-f688ea37d8ee41e42903f4eef7b6537dea14dfa8.tar
nixpkgs-f688ea37d8ee41e42903f4eef7b6537dea14dfa8.tar.gz
nixpkgs-f688ea37d8ee41e42903f4eef7b6537dea14dfa8.tar.bz2
nixpkgs-f688ea37d8ee41e42903f4eef7b6537dea14dfa8.tar.lz
nixpkgs-f688ea37d8ee41e42903f4eef7b6537dea14dfa8.tar.xz
nixpkgs-f688ea37d8ee41e42903f4eef7b6537dea14dfa8.tar.zst
nixpkgs-f688ea37d8ee41e42903f4eef7b6537dea14dfa8.zip
bear: init at 2.2.0
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/tools/build-managers/bear/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/bear/default.nix b/pkgs/development/tools/build-managers/bear/default.nix
new file mode 100644
index 00000000000..cc34a73ecd5
--- /dev/null
+++ b/pkgs/development/tools/build-managers/bear/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchFromGitHub, cmake, python }:
+
+stdenv.mkDerivation rec {
+  name = "bear-${version}";
+  version = "2.2.0";
+
+  src = fetchFromGitHub {
+    owner = "rizsotto";
+    repo = "Bear";
+    rev = version;
+    sha256 = "08llfqg8y6d7vfwaw5plrk1rrqzs0ywi2ldnlwvy917603971rg0";
+  };
+
+  nativeBuildInputs = [ cmake ];
+  buildInputs = [ python ]; # just for shebang of bin/bear
+
+  doCheck = false; # all fail
+
+  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 ];
+  };
+}
+