scite: 5.2.2 -> 5.5.3 (#350462)

This commit is contained in:
Pol Dellaiera
2024-10-23 14:12:13 +02:00
committed by GitHub
3 changed files with 59 additions and 44 deletions
@@ -1,42 +0,0 @@
{ lib, stdenv, fetchurl, pkg-config, gtk2 }:
stdenv.mkDerivation {
pname = "scite";
version = "5.2.2";
src = fetchurl {
url = "https://www.scintilla.org/scite522.tgz";
sha256 = "1q46clclx8r0b8zbq2zi89sygszgqf9ra5l83r2fs0ghvjgh2cxd";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk2 ];
sourceRoot = "scintilla/gtk";
CXXFLAGS = [
# GCC 13: error: 'intptr_t' does not name a type
"-include cstdint"
"-include system_error"
];
buildPhase = ''
make
cd ../../lexilla/src
make
cd ../../scite/gtk
make prefix=$out/
'';
installPhase = ''
make install prefix=$out/
'';
meta = with lib; {
homepage = "https://www.scintilla.org/SciTE.html";
description = "SCIntilla based Text Editor";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ maintainers.rszibele ];
mainProgram = "SciTE";
};
}
+59
View File
@@ -0,0 +1,59 @@
{
lib,
stdenv,
fetchurl,
pkg-config,
wrapGAppsHook3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "scite";
version = "5.5.3";
src = fetchurl {
url = "https://www.scintilla.org/scite${lib.replaceStrings [ "." ] [ "" ] finalAttrs.version}.tgz";
hash = "sha256-MtXy8a4MzdJP8Rf6otc+Zu+KfYSJnmmXfBS8RVBBbOY=";
};
nativeBuildInputs = [
pkg-config
wrapGAppsHook3
];
sourceRoot = "scite/gtk";
makeFlags = [
"GTK3=1"
"prefix=${placeholder "out"}"
];
CXXFLAGS = [
# GCC 13: error: 'intptr_t' does not name a type
"-include cstdint"
"-include system_error"
];
preBuild = ''
pushd ../../scintilla/gtk
make ''${makeFlags[@]}
popd
pushd ../../lexilla/src
make ''${makeFlags[@]}
popd
'';
enableParallelBuilding = true;
meta = {
homepage = "https://www.scintilla.org/SciTE.html";
description = "SCIntilla based Text Editor";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [
rszibele
aleksana
];
mainProgram = "SciTE";
};
})
-2
View File
@@ -32242,8 +32242,6 @@ with pkgs;
sc-im = callPackage ../applications/misc/sc-im { };
scite = callPackage ../applications/editors/scite { };
scli = callPackage ../applications/misc/scli { };
scribus_1_5 = libsForQt5.callPackage ../applications/office/scribus/default.nix { };