02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
38 lines
1 KiB
Nix
38 lines
1 KiB
Nix
{ mkDerivation, lib, fetchFromGitHub, qmake, qttools, qtx11extras, stdenv }:
|
|
|
|
mkDerivation rec {
|
|
pname = "notepad-next";
|
|
version = "0.5.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dail8859";
|
|
repo = "NotepadNext";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-kEqoL4S/eHsbFoYxNlrv+Wq6acrHQm/qMfrARzl+BYA=";
|
|
# External dependencies - https://github.com/dail8859/NotepadNext/issues/135
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ qmake qttools ];
|
|
buildInputs = [ qtx11extras ];
|
|
|
|
qmakeFlags = [
|
|
"PREFIX=${placeholder "out"}"
|
|
"src/NotepadNext.pro"
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace src/i18n.pri \
|
|
--replace 'EXTRA_TRANSLATIONS = \' "" \
|
|
--replace '$$[QT_INSTALL_TRANSLATIONS]/qt_zh_CN.qm' ""
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|