notepad-next: 0.5.1 -> 0.5.2
This commit is contained in:
parent
0bd9606a86
commit
3d506e9548
@ -1,31 +1,32 @@
|
|||||||
{ mkDerivation, lib, fetchFromGitHub, qmake, libsForQt5, stdenv }:
|
{ mkDerivation, lib, fetchFromGitHub, qmake, qttools, qtx11extras, stdenv }:
|
||||||
|
|
||||||
mkDerivation rec {
|
mkDerivation rec {
|
||||||
pname = "notepad-next";
|
pname = "notepad-next";
|
||||||
version = "0.5.1";
|
version = "0.5.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "dail8859";
|
owner = "dail8859";
|
||||||
repo = "NotepadNext";
|
repo = "NotepadNext";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-J7Ngt6YtAAZsza2lN0d1lX3T8gNJHp60sCwwaLMGBHQ=";
|
sha256 = "sha256-LyUV85wW6FGlkV0qSIfkLMHpXXj1qvRnGZuYy8ASwZ8=";
|
||||||
# External dependencies - https://github.com/dail8859/NotepadNext/issues/135
|
# External dependencies - https://github.com/dail8859/NotepadNext/issues/135
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ qmake libsForQt5.qt5.qttools ];
|
nativeBuildInputs = [ qmake qttools ];
|
||||||
qmakeFlags = [ "src/NotepadNext.pro" ];
|
buildInputs = [ qtx11extras ];
|
||||||
|
|
||||||
|
qmakeFlags = [
|
||||||
|
"PREFIX=${placeholder "out"}"
|
||||||
|
"src/NotepadNext.pro"
|
||||||
|
];
|
||||||
|
|
||||||
# References
|
|
||||||
# https://github.com/dail8859/NotepadNext/blob/master/doc/Building.md
|
|
||||||
# https://github.com/dail8859/NotepadNext/pull/124
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace ./src/NotepadNext/NotepadNext.pro --replace /usr $out
|
substituteInPlace src/i18n.pri \
|
||||||
|
--replace 'EXTRA_TRANSLATIONS = \' "" \
|
||||||
|
--replace '$$[QT_INSTALL_TRANSLATIONS]/qt_zh_CN.qm' ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Upstream suggestion: https://github.com/dail8859/NotepadNext/issues/135
|
|
||||||
CXXFLAGS = "-std=gnu++1z";
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/dail8859/NotepadNext";
|
homepage = "https://github.com/dail8859/NotepadNext";
|
||||||
description = "Notepad++-like editor for the Linux desktop";
|
description = "Notepad++-like editor for the Linux desktop";
|
||||||
|
Loading…
Reference in New Issue
Block a user