Merge pull request #169039 from SebTM/notepad-next

notepad-next: init at 0.5.1
This commit is contained in:
Maximilian Bosch 2022-05-22 14:13:45 +02:00 committed by GitHub
commit e402e3c061
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,36 @@
{ mkDerivation, lib, fetchFromGitHub, qmake, libsForQt5 }:
mkDerivation rec {
pname = "notepad-next";
version = "0.5.1";
src = fetchFromGitHub {
owner = "dail8859";
repo = "NotepadNext";
rev = "v${version}";
sha256 = "sha256-J7Ngt6YtAAZsza2lN0d1lX3T8gNJHp60sCwwaLMGBHQ=";
# External dependencies - https://github.com/dail8859/NotepadNext/issues/135
fetchSubmodules = true;
};
nativeBuildInputs = [ qmake libsForQt5.qt5.qttools ];
qmakeFlags = [ "src/NotepadNext.pro" ];
# References
# https://github.com/dail8859/NotepadNext/blob/master/doc/Building.md
# https://github.com/dail8859/NotepadNext/pull/124
postPatch = ''
substituteInPlace ./src/NotepadNext/NotepadNext.pro --replace /usr $out
'';
# Upstream suggestion: https://github.com/dail8859/NotepadNext/issues/135
CXXFLAGS = "-std=gnu++1z";
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 ];
};
}

View file

@ -28662,6 +28662,8 @@ with pkgs;
nomacs = libsForQt5.callPackage ../applications/graphics/nomacs { };
notepad-next = libsForQt5.callPackage ../applications/editors/notepad-next { };
notepadqq = libsForQt514.callPackage ../applications/editors/notepadqq { };
notmuch = callPackage ../applications/networking/mailreaders/notmuch {