scite: 5.2.2 -> 5.5.3

This commit is contained in:
aleksana 2024-10-22 19:22:26 +08:00
parent 196f5c8560
commit ee3099b5aa

View File

@ -1,17 +1,31 @@
{ lib, stdenv, fetchurl, pkg-config, gtk2 }: {
lib,
stdenv,
fetchurl,
pkg-config,
wrapGAppsHook3,
}:
stdenv.mkDerivation { stdenv.mkDerivation (finalAttrs: {
pname = "scite"; pname = "scite";
version = "5.2.2"; version = "5.5.3";
src = fetchurl { src = fetchurl {
url = "https://www.scintilla.org/scite522.tgz"; url = "https://www.scintilla.org/scite${lib.replaceStrings [ "." ] [ "" ] finalAttrs.version}.tgz";
sha256 = "1q46clclx8r0b8zbq2zi89sygszgqf9ra5l83r2fs0ghvjgh2cxd"; hash = "sha256-MtXy8a4MzdJP8Rf6otc+Zu+KfYSJnmmXfBS8RVBBbOY=";
}; };
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [
buildInputs = [ gtk2 ]; pkg-config
sourceRoot = "scintilla/gtk"; wrapGAppsHook3
];
sourceRoot = "scite/gtk";
makeFlags = [
"GTK3=1"
"prefix=${placeholder "out"}"
];
CXXFLAGS = [ CXXFLAGS = [
# GCC 13: error: 'intptr_t' does not name a type # GCC 13: error: 'intptr_t' does not name a type
@ -19,24 +33,27 @@ stdenv.mkDerivation {
"-include system_error" "-include system_error"
]; ];
buildPhase = '' preBuild = ''
make pushd ../../scintilla/gtk
cd ../../lexilla/src make ''${makeFlags[@]}
make popd
cd ../../scite/gtk
make prefix=$out/ pushd ../../lexilla/src
make ''${makeFlags[@]}
popd
''; '';
installPhase = '' enableParallelBuilding = true;
make install prefix=$out/
'';
meta = with lib; { meta = {
homepage = "https://www.scintilla.org/SciTE.html"; homepage = "https://www.scintilla.org/SciTE.html";
description = "SCIntilla based Text Editor"; description = "SCIntilla based Text Editor";
license = licenses.mit; license = lib.licenses.mit;
platforms = platforms.linux; platforms = lib.platforms.linux;
maintainers = [ maintainers.rszibele ]; maintainers = with lib.maintainers; [
rszibele
aleksana
];
mainProgram = "SciTE"; mainProgram = "SciTE";
}; };
} })