mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
ceres-solver: fix darwin build (#46626)
The Basel BUILD file conflicts with the cmake build directory on case-insensitive filesystems, eg. darwin. /cc ZHF #45961
This commit is contained in:
parent
68956555c1
commit
807b0105b4
@ -2,7 +2,7 @@
|
||||
, eigen
|
||||
, fetchurl
|
||||
, cmake
|
||||
, google-gflags ? null
|
||||
, google-gflags
|
||||
, glog
|
||||
, runTests ? false
|
||||
}:
|
||||
@ -21,7 +21,13 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ eigen glog ]
|
||||
++ stdenv.lib.optional (google-gflags != null) google-gflags;
|
||||
++ stdenv.lib.optional runTests google-gflags;
|
||||
|
||||
# The Basel BUILD file conflicts with the cmake build directory on
|
||||
# case-insensitive filesystems, eg. darwin.
|
||||
preConfigure = ''
|
||||
rm BUILD
|
||||
'';
|
||||
|
||||
doCheck = runTests;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user