diff --git a/pkgs/by-name/no/notepad-next/package.nix b/pkgs/by-name/no/notepad-next/package.nix index 32760a7495cf..036a8a015c1b 100644 --- a/pkgs/by-name/no/notepad-next/package.nix +++ b/pkgs/by-name/no/notepad-next/package.nix @@ -25,6 +25,12 @@ stdenv.mkDerivation (finalAttrs: { ]; buildInputs = [ qt5.qtx11extras ]; + # Fix build with GCC 14+: Scintilla needs cstdint for intptr_t/uintptr_t types + # https://github.com/dail8859/NotepadNext/issues/752 + postPatch = '' + sed -i '1i #include ' src/scintilla/include/ScintillaTypes.h + ''; + qmakeFlags = [ "PREFIX=${placeholder "out"}" "src/NotepadNext.pro"