nixpkgs/pkgs/applications/editors/scite/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
911 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pkg-config, gtk2 }:
2014-01-23 09:35:02 +00:00
2019-08-13 21:52:01 +00:00
stdenv.mkDerivation {
pname = "scite";
2022-05-10 21:32:06 +00:00
version = "5.2.2";
2014-01-23 09:35:02 +00:00
src = fetchurl {
2022-05-10 21:32:06 +00:00
url = "https://www.scintilla.org/scite522.tgz";
sha256 = "1q46clclx8r0b8zbq2zi89sygszgqf9ra5l83r2fs0ghvjgh2cxd";
2014-01-23 09:35:02 +00:00
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk2 ];
2014-01-23 09:35:02 +00:00
sourceRoot = "scintilla/gtk";
2024-01-11 16:14:00 +00:00
CXXFLAGS = [
# GCC 13: error: 'intptr_t' does not name a type
"-include cstdint"
"-include system_error"
];
2014-01-23 09:35:02 +00:00
buildPhase = ''
2021-05-14 05:35:43 +00:00
make
cd ../../lexilla/src
2014-01-23 09:35:02 +00:00
make
cd ../../scite/gtk
make prefix=$out/
'';
installPhase = ''
make install prefix=$out/
'';
meta = with lib; {
homepage = "https://www.scintilla.org/SciTE.html";
2014-01-23 09:35:02 +00:00
description = "SCIntilla based Text Editor";
license = licenses.mit;
platforms = platforms.linux;
maintainers = [ maintainers.rszibele ];
2023-11-27 01:17:53 +00:00
mainProgram = "SciTE";
2014-01-23 09:35:02 +00:00
};
}