diff --git a/pkgs/applications/graphics/openscad/default.nix b/pkgs/applications/graphics/openscad/default.nix index 9299811de9cea..a3f11641ed4d0 100644 --- a/pkgs/applications/graphics/openscad/default.nix +++ b/pkgs/applications/graphics/openscad/default.nix @@ -64,6 +64,11 @@ mkDerivation rec { }) ]; + postPatch = '' + substituteInPlace src/FileModule.cc \ + --replace-fail 'fs::is_regular' 'fs::is_regular_file' + ''; + nativeBuildInputs = [ bison flex