2
0
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 10:43:27 +00:00
nixpkgs/pkgs/applications/editors/notepad-next/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

45 lines
1.2 KiB
Nix

{ mkDerivation, lib, fetchFromGitHub, qmake, qttools, qtx11extras, stdenv }:
mkDerivation rec {
pname = "notepad-next";
version = "0.7";
src = fetchFromGitHub {
owner = "dail8859";
repo = "NotepadNext";
rev = "v${version}";
sha256 = "sha256-I2bS8oT/TGf6fuXpTwOKo2MaUo0jLFIU/DfW9h1toOk=";
# 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' ""
'';
postInstall = lib.optionalString stdenv.isDarwin ''
mv $out/bin $out/Applications
rm -fr $out/share
'';
meta = with lib; {
homepage = "https://github.com/dail8859/NotepadNext";
description = "Cross-platform, reimplementation of Notepad++";
license = licenses.gpl3Plus;
platforms = platforms.unix;
maintainers = [ maintainers.sebtm ];
broken = stdenv.isAarch64;
mainProgram = "NotepadNext";
};
}