depot/third_party/nixpkgs/pkgs/applications/editors/scite/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

36 lines
786 B
Nix

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