diff --git a/pkgs/by-name/go/golly/package.nix b/pkgs/by-name/go/golly/package.nix index b694632a2853..c18df599c950 100644 --- a/pkgs/by-name/go/golly/package.nix +++ b/pkgs/by-name/go/golly/package.nix @@ -48,6 +48,10 @@ stdenv.mkDerivation (finalAttrs: { postPatch = '' substituteInPlace wxprefs.cpp \ --replace-fail 'PYTHON_SHLIB' '${python3}/lib/libpython3.so' + + substituteInPlace ../cmdline/bgolly.cpp \ + --replace-fail '&popcount' '&::popcount' \ + --replace-fail 'if (popcount)' 'if (::popcount)' '' + lib.optionalString stdenv.hostPlatform.isDarwin '' substituteInPlace makefile-gtk \