uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
62
pkgs/development/tools/build-managers/bear/default.nix
Normal file
62
pkgs/development/tools/build-managers/bear/default.nix
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, pkg-config
|
||||
, grpc
|
||||
, protobuf
|
||||
, openssl
|
||||
, nlohmann_json
|
||||
, gtest
|
||||
, spdlog
|
||||
, c-ares
|
||||
, abseil-cpp
|
||||
, zlib
|
||||
, sqlite
|
||||
, re2
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "bear";
|
||||
version = "3.0.14";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "rizsotto";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0qy96dyd29bjvfhi46y30hli5cvshw8am0spvcv9v43660wbczd7";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
grpc
|
||||
protobuf
|
||||
openssl
|
||||
nlohmann_json
|
||||
gtest
|
||||
spdlog
|
||||
c-ares
|
||||
abseil-cpp
|
||||
zlib
|
||||
sqlite
|
||||
re2
|
||||
];
|
||||
|
||||
patches = [
|
||||
# Default libexec would be set to /nix/store/*-bear//nix/store/*-bear/libexec/...
|
||||
./no-double-relative.patch
|
||||
];
|
||||
|
||||
meta = with 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 = with maintainers; [ babariviere qyliss ];
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
diff --git i/source/config.h.in w/source/config.h.in
|
||||
index ffcce3a..0caba6d 100644
|
||||
--- i/source/config.h.in
|
||||
+++ w/source/config.h.in
|
||||
@@ -107,7 +107,7 @@ namespace cmd {
|
||||
}
|
||||
|
||||
namespace wrapper {
|
||||
- constexpr char DEFAULT_PATH[] = "@ROOT_INSTALL_PREFIX@/@PRIVATE_INSTALLDIR@/wrapper";
|
||||
+ constexpr char DEFAULT_PATH[] = "@PRIVATE_INSTALLDIR@/wrapper";
|
||||
constexpr char DEFAULT_DIR_PATH[] = "@ROOT_INSTALL_PREFIX@/@PRIVATE_INSTALLDIR@/wrapper.d";
|
||||
|
||||
constexpr char FLAG_VERBOSE[] = "--verbose";
|
||||
@@ -120,7 +120,7 @@ namespace cmd {
|
||||
}
|
||||
|
||||
namespace library {
|
||||
- constexpr char DEFAULT_PATH[] = "@ROOT_INSTALL_PREFIX@/@PRIVATE_INSTALLDIR@/@CMAKE_SHARED_LIBRARY_PREFIX@exec@CMAKE_SHARED_LIBRARY_SUFFIX@";
|
||||
+ constexpr char DEFAULT_PATH[] = "@PRIVATE_INSTALLDIR@/@CMAKE_SHARED_LIBRARY_PREFIX@exec@CMAKE_SHARED_LIBRARY_SUFFIX@";
|
||||
|
||||
constexpr char KEY_REPORTER[] = "INTERCEPT_REPORT_COMMAND";
|
||||
constexpr char KEY_DESTINATION[] = "INTERCEPT_REPORT_DESTINATION";
|
||||
Loading…
Add table
Add a link
Reference in a new issue