depot/pkgs/by-name/sc/scite/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

59 lines
1.1 KiB
Nix

{
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";
};
})