Skip to content

Commit

Permalink
proj: fix test suite (#218719)
Browse files Browse the repository at this point in the history
When testing #213831 internally we ran into a build failure caused by
that change for the `proj` package (on `x86_64-linux`).  We're not sure
how that's possible, but the nature of the build failure was that the
network tests for the `proj` package were failing due to missing
certificates, so I fixed the build failure by adding `cacert` as a
test dependency.

It's still not clear (A) why the cert suddenly became necessary after
the change in #213831 or (B) why the build worked at all before, but
this is probably the right thing to do regardless because the test
suite does have a network component.
  • Loading branch information
Gabriella439 authored Mar 1, 2023
1 parent 79649ae commit 6340fcc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/development/libraries/proj/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
, gtest
, nlohmann_json
, python3
, cacert
}:

stdenv.mkDerivation (finalAttrs: rec {
Expand Down Expand Up @@ -40,7 +41,7 @@ stdenv.mkDerivation (finalAttrs: rec {

buildInputs = [ sqlite libtiff curl nlohmann_json ];

nativeCheckInputs = [ gtest ];
nativeCheckInputs = [ cacert gtest ];

cmakeFlags = [
"-DUSE_EXTERNAL_GTEST=ON"
Expand Down

0 comments on commit 6340fcc

Please sign in to comment.