mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03: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
|
, eigen
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, cmake
|
, cmake
|
||||||
, google-gflags ? null
|
, google-gflags
|
||||||
, glog
|
, glog
|
||||||
, runTests ? false
|
, runTests ? false
|
||||||
}:
|
}:
|
||||||
@ -21,7 +21,13 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs = [ eigen glog ]
|
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;
|
doCheck = runTests;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user