Skip to content

Commit 542b211

Browse files
committed
bear: fix cross compilation, set strictDeps
1 parent a04f874 commit 542b211

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pkgs/by-name/be/bear/package.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,14 @@ stdenv.mkDerivation (finalAttrs: {
3131
hash = "sha256-pwdjytP+kmTwozRl1Gd0jUqRs3wfvcYPqiQvVwa6s9c=";
3232
};
3333

34+
strictDeps = true;
35+
3436
nativeBuildInputs = [
3537
cmake
3638
ninja
3739
pkg-config
40+
grpc
41+
protobuf
3842
];
3943

4044
buildInputs = [
@@ -72,8 +76,8 @@ stdenv.mkDerivation (finalAttrs: {
7276
# CMAKE_INSTALL_{BIN,LIB}DIR, which breaks if these are absolute paths.
7377
"-DCMAKE_INSTALL_BINDIR=bin"
7478
"-DCMAKE_INSTALL_LIBDIR=lib"
75-
(lib.cmakeBool "ENABLE_UNIT_TESTS" finalAttrs.doCheck)
76-
(lib.cmakeBool "ENABLE_FUNC_TESTS" finalAttrs.doCheck)
79+
(lib.cmakeBool "ENABLE_UNIT_TESTS" finalAttrs.finalPackage.doCheck)
80+
(lib.cmakeBool "ENABLE_FUNC_TESTS" finalAttrs.finalPackage.doCheck)
7781
];
7882

7983
checkTarget = lib.concatStringsSep " " [

0 commit comments

Comments
 (0)