2021-03-14 06:09:52 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchurl, gtk2, glib, pkg-config, unzip, ncurses, zip }:
|
2020-11-02 14:19:55 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-08-02 19:13:35 +00:00
|
|
|
version = "11.4";
|
2022-06-06 21:27:40 +00:00
|
|
|
pname = "textadept";
|
2020-11-02 14:19:55 +00:00
|
|
|
|
2021-03-14 06:09:52 +00:00
|
|
|
nativeBuildInputs = [ pkg-config unzip zip ];
|
2020-11-02 14:19:55 +00:00
|
|
|
buildInputs = [
|
2021-03-14 06:09:52 +00:00
|
|
|
gtk2 ncurses glib
|
2020-11-02 14:19:55 +00:00
|
|
|
];
|
|
|
|
|
2022-05-25 23:09:24 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-11-02 14:19:55 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
name = "textadept11";
|
|
|
|
owner = "orbitalquark";
|
|
|
|
repo = "textadept";
|
2022-05-25 23:09:24 +00:00
|
|
|
rev = "textadept_${version}";
|
2022-08-02 19:13:35 +00:00
|
|
|
sha256 = "sha256-1we2NC4N8oY4QmmqIIWGSpTBuLx3MEFkZK+BjmNEfD0=";
|
2020-11-02 14:19:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure =
|
|
|
|
lib.concatStringsSep "\n" (lib.mapAttrsToList (name: params:
|
|
|
|
"ln -s ${fetchurl params} $PWD/src/${name}"
|
|
|
|
) (import ./deps.nix)) + ''
|
|
|
|
|
|
|
|
cd src
|
|
|
|
make deps
|
|
|
|
'';
|
|
|
|
|
|
|
|
postBuild = ''
|
|
|
|
make curses
|
|
|
|
'';
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
mkdir -p $out/share/pixmaps
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
make curses install PREFIX=$out MAKECMDGOALS=curses
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [
|
2021-03-14 06:09:52 +00:00
|
|
|
"PREFIX=$(out)"
|
|
|
|
"WGET=true"
|
|
|
|
"PIXMAPS_DIR=$(out)/share/pixmaps"
|
2022-08-02 19:13:35 +00:00
|
|
|
"GTK2=1"
|
2020-11-02 14:19:55 +00:00
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2022-05-25 23:09:24 +00:00
|
|
|
description = "An extensible text editor based on Scintilla with Lua scripting.";
|
2020-11-02 14:19:55 +00:00
|
|
|
homepage = "http://foicica.com/textadept";
|
|
|
|
license = licenses.mit;
|
2022-06-06 21:27:40 +00:00
|
|
|
maintainers = with maintainers; [ raskin mirrexagon patricksjackson ];
|
2020-11-02 14:19:55 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|