about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/scite/default.nix
blob: 67ebd13134b2f8c8880a31ed41b637a174948af9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ 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";
  };
}