diff --git a/pkgs/applications/science/physics/crystfel/default.nix b/pkgs/applications/science/physics/crystfel/default.nix index bcc9e2cb8138..00c8fc0c4a17 100644 --- a/pkgs/applications/science/physics/crystfel/default.nix +++ b/pkgs/applications/science/physics/crystfel/default.nix @@ -73,6 +73,9 @@ let in '' cp ${mesonPatch}/meson.build . + + substituteInPlace ccp4/library_utils.c \ + --replace-fail " int putenv ();" " int putenv (char *);" ''; }; # This is the statically-linked, pre-built binary of mosflm. Compiling it ourselves turns out to be very difficult