2022-07-14 12:49:19 +00:00
|
|
|
{ mkDerivation, lib, fetchFromGitHub, qmake, qttools, qtx11extras, stdenv }:
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "notepad-next";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.5.4";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dail8859";
|
|
|
|
repo = "NotepadNext";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-kEqoL4S/eHsbFoYxNlrv+Wq6acrHQm/qMfrARzl+BYA=";
|
2022-06-16 17:23:12 +00:00
|
|
|
# External dependencies - https://github.com/dail8859/NotepadNext/issues/135
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
nativeBuildInputs = [ qmake qttools ];
|
|
|
|
buildInputs = [ qtx11extras ];
|
|
|
|
|
|
|
|
qmakeFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
"src/NotepadNext.pro"
|
|
|
|
];
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
2022-07-14 12:49:19 +00:00
|
|
|
substituteInPlace src/i18n.pri \
|
|
|
|
--replace 'EXTRA_TRANSLATIONS = \' "" \
|
|
|
|
--replace '$$[QT_INSTALL_TRANSLATIONS]/qt_zh_CN.qm' ""
|
2022-06-16 17:23:12 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/dail8859/NotepadNext";
|
|
|
|
description = "Notepad++-like editor for the Linux desktop";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.sebtm ];
|
|
|
|
broken = stdenv.isAarch64;
|
|
|
|
};
|
|
|
|
}
|