1 { mkDerivation, lib, fetchFromGitHub, qmake, qttools, qtx11extras, stdenv }:
4 pname = "notepad-next";
7 src = fetchFromGitHub {
11 sha256 = "sha256-I2bS8oT/TGf6fuXpTwOKo2MaUo0jLFIU/DfW9h1toOk=";
12 # External dependencies - https://github.com/dail8859/NotepadNext/issues/135
13 fetchSubmodules = true;
16 nativeBuildInputs = [ qmake qttools ];
17 buildInputs = [ qtx11extras ];
20 "PREFIX=${placeholder "out"}"
25 substituteInPlace src/i18n.pri \
26 --replace 'EXTRA_TRANSLATIONS = \' "" \
27 --replace '$$[QT_INSTALL_TRANSLATIONS]/qt_zh_CN.qm' ""
30 postInstall = lib.optionalString stdenv.isDarwin ''
31 mv $out/bin $out/Applications
36 homepage = "https://github.com/dail8859/NotepadNext";
37 description = "A cross-platform, reimplementation of Notepad++";
38 license = licenses.gpl3Plus;
39 platforms = platforms.unix;
40 maintainers = [ maintainers.sebtm ];
41 broken = stdenv.isAarch64;
42 mainProgram = "NotepadNext";