2021-03-20 04:20:00 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchurl, gtk2, glib, pkg-config, unzip, ncurses, zip }:
|
2020-11-03 02:18:15 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "11.4";
|
2022-06-16 17:23:12 +00:00
|
|
|
pname = "textadept";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-20 04:20:00 +00:00
|
|
|
nativeBuildInputs = [ pkg-config unzip zip ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2021-03-20 04:20:00 +00:00
|
|
|
gtk2 ncurses glib
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-11-06 00:33:48 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
name = "textadept11";
|
|
|
|
owner = "orbitalquark";
|
|
|
|
repo = "textadept";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "textadept_${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-1we2NC4N8oY4QmmqIIWGSpTBuLx3MEFkZK+BjmNEfD0=";
|
2020-04-24 23:36:52 +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
|
|
|
|
'';
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
mkdir -p $out/share/pixmaps
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postInstall = ''
|
|
|
|
make curses install PREFIX=$out MAKECMDGOALS=curses
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [
|
2021-03-20 04:20:00 +00:00
|
|
|
"PREFIX=$(out)"
|
|
|
|
"WGET=true"
|
|
|
|
"PIXMAPS_DIR=$(out)/share/pixmaps"
|
2022-08-12 12:06:08 +00:00
|
|
|
"GTK2=1"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
description = "An extensible text editor based on Scintilla with Lua scripting.";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://foicica.com/textadept";
|
|
|
|
license = licenses.mit;
|
2022-06-16 17:23:12 +00:00
|
|
|
maintainers = with maintainers; [ raskin mirrexagon patricksjackson ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|