diff --git a/pkgs/by-name/li/libLAS/package.nix b/pkgs/by-name/li/libLAS/package.nix index 5bec9b5f2075b..79c067673f5f2 100644 --- a/pkgs/by-name/li/libLAS/package.nix +++ b/pkgs/by-name/li/libLAS/package.nix @@ -45,6 +45,12 @@ stdenv.mkDerivation rec { }) ]; + # Disable setting of C++98 standard which was dropped in boost 1.84.0 + postPatch = '' + substituteInPlace CMakeLists.txt \ + --replace-fail 'set(CMAKE_CXX_FLAGS "''${CMAKE_CXX_FLAGS} -std=c++98 -ansi")' '#' + ''; + nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames; buildInputs = [ boost