2021-01-19 06:50:56 +00:00
|
|
|
{ lib, stdenv, fetchhg, fetchurl, gtk2, glib, pkg-config, unzip, ncurses, zip }:
|
2020-10-11 19:30:19 +01:00
|
|
|
|
2016-06-22 05:58:50 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2020-10-11 19:30:19 +01:00
|
|
|
version = "10.8";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "textadept";
|
2016-06-22 05:58:50 +01:00
|
|
|
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ pkg-config unzip ];
|
2016-06-22 05:58:50 +01:00
|
|
|
buildInputs = [
|
2021-02-20 21:01:53 +00:00
|
|
|
gtk2 ncurses glib zip
|
2016-06-22 05:58:50 +01:00
|
|
|
];
|
|
|
|
|
2015-06-02 18:31:57 +01:00
|
|
|
src = fetchhg {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "http://foicica.com/hg/textadept";
|
2015-06-02 18:31:57 +01:00
|
|
|
rev = "textadept_${version}";
|
2020-10-11 19:30:19 +01:00
|
|
|
sha256 = "sha256-dEZSx2tuHTWYhk9q5iGlrWTAvDvKaM8HaHwXcFcv33s=";
|
2015-06-02 18:31:57 +01:00
|
|
|
};
|
2016-06-22 05:58:50 +01:00
|
|
|
|
2019-02-09 14:08:24 +00:00
|
|
|
preConfigure =
|
|
|
|
lib.concatStringsSep "\n" (lib.mapAttrsToList (name: params:
|
|
|
|
"ln -s ${fetchurl params} $PWD/src/${name}"
|
|
|
|
) (import ./deps.nix)) + ''
|
2016-06-22 05:58:50 +01:00
|
|
|
|
2019-02-09 14:08:24 +00:00
|
|
|
cd src
|
2015-06-02 18:31:57 +01:00
|
|
|
make deps
|
|
|
|
'';
|
2016-06-22 05:58:50 +01:00
|
|
|
|
2015-06-02 18:31:57 +01:00
|
|
|
postBuild = ''
|
|
|
|
make curses
|
|
|
|
'';
|
2016-06-22 05:58:50 +01:00
|
|
|
|
2020-10-11 19:30:19 +01:00
|
|
|
preInstall = ''
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
mkdir -p $out/share/pixmaps
|
|
|
|
'';
|
|
|
|
|
2015-06-02 18:31:57 +01:00
|
|
|
postInstall = ''
|
|
|
|
make curses install PREFIX=$out MAKECMDGOALS=curses
|
|
|
|
'';
|
2016-06-22 05:58:50 +01:00
|
|
|
|
|
|
|
makeFlags = [
|
2020-10-11 19:30:19 +01:00
|
|
|
"PREFIX=$(out) WGET=true PIXMAPS_DIR=$(out)/share/pixmaps"
|
2016-06-22 05:58:50 +01:00
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-06-02 18:31:57 +01:00
|
|
|
description = "An extensible text editor based on Scintilla with Lua scripting";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://foicica.com/textadept";
|
2016-06-22 05:58:50 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ raskin mirrexagon ];
|
|
|
|
platforms = platforms.linux;
|
2015-06-02 18:31:57 +01:00
|
|
|
};
|
|
|
|
}
|