git.iko.soy/typeable/nixpkgs
on master help sign in
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

commit807b0105b41d101e8fb774d107927ee84571f7c7 authorDaiderd Jordan <daiderd@gmail.com> dateThu 13 Sep 2018, 23:44 (8 years ago) parent6895655
1 file changed+8−2
pkgs/development/libraries/ceres-solver/default.nix+8−2
pkgs/development/libraries/ceres-solver/default.nix+8−2
@@ -2,7 +2,7 @@
22, eigen
33, fetchurl
44, cmake
5−, google-gflags ? null
5+, google-gflags
66, glog
77, runTests ? false
88}:
@@ -21,7 +21,13 @@ stdenv.mkDerivation rec {
2121
2222 nativeBuildInputs = [ cmake ];
2323 buildInputs = [ eigen glog ]
24− ++ stdenv.lib.optional (google-gflags != null) google-gflags;
24+ ++ stdenv.lib.optional runTests google-gflags;
25+
26+ # The Basel BUILD file conflicts with the cmake build directory on
27+ # case-insensitive filesystems, eg. darwin.
28+ preConfigure = ''
29+ rm BUILD
30+ '';
2531
2632 doCheck = runTests;
2733