biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / editors / scite / default.nix
blob9c230a2984eb919c093b9998d59b2110fa74845e
1 { lib, stdenv, fetchurl, pkg-config, gtk2 }:
3 stdenv.mkDerivation {
4   pname = "scite";
5   version = "5.2.2";
7   src = fetchurl {
8     url = "https://www.scintilla.org/scite522.tgz";
9     sha256 = "1q46clclx8r0b8zbq2zi89sygszgqf9ra5l83r2fs0ghvjgh2cxd";
10   };
12   nativeBuildInputs = [ pkg-config ];
13   buildInputs = [ gtk2 ];
14   sourceRoot = "scintilla/gtk";
16   CXXFLAGS = [
17     # GCC 13: error: 'intptr_t' does not name a type
18     "-include cstdint"
19     "-include system_error"
20   ];
22   buildPhase = ''
23     make
24     cd ../../lexilla/src
25     make
26     cd ../../scite/gtk
27     make prefix=$out/
28   '';
30   installPhase = ''
31     make install prefix=$out/
32   '';
34   meta = with lib; {
35     homepage = "https://www.scintilla.org/SciTE.html";
36     description = "SCIntilla based Text Editor";
37     license = licenses.mit;
38     platforms = platforms.linux;
39     maintainers = [ maintainers.rszibele ];
40     mainProgram = "SciTE";
41   };