2019-02-09 15:08:24 +01:00
|
|
|
{ lib, stdenv, fetchhg, fetchurl, gtk2, glib, pkgconfig, unzip, ncurses, zip }:
|
2016-06-22 06:58:50 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-02-09 15:08:24 +01:00
|
|
|
version = "10.2";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "textadept";
|
2016-06-22 06:58:50 +02:00
|
|
|
|
2017-09-14 21:24:37 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2016-06-22 06:58:50 +02:00
|
|
|
buildInputs = [
|
2019-02-09 15:08:24 +01:00
|
|
|
gtk2 ncurses glib unzip zip
|
2016-06-22 06:58:50 +02:00
|
|
|
];
|
|
|
|
|
2015-06-02 19:31:57 +02:00
|
|
|
src = fetchhg {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "http://foicica.com/hg/textadept";
|
2015-06-02 19:31:57 +02:00
|
|
|
rev = "textadept_${version}";
|
2019-02-09 15:08:24 +01:00
|
|
|
sha256 = "0fai8xqddkkprmbf0cf8wwgv7ccfdb1iyim30nppm2m16whkc8fl";
|
2015-06-02 19:31:57 +02:00
|
|
|
};
|
2016-06-22 06:58:50 +02:00
|
|
|
|
2019-02-09 15:08:24 +01:00
|
|
|
preConfigure =
|
|
|
|
lib.concatStringsSep "\n" (lib.mapAttrsToList (name: params:
|
|
|
|
"ln -s ${fetchurl params} $PWD/src/${name}"
|
|
|
|
) (import ./deps.nix)) + ''
|
2016-06-22 06:58:50 +02:00
|
|
|
|
2019-02-09 15:08:24 +01:00
|
|
|
# work around trying to download stuff in `make deps`
|
|
|
|
function wget() { true; }
|
|
|
|
export -f wget
|
2016-06-22 06:58:50 +02:00
|
|
|
|
2019-02-09 15:08:24 +01:00
|
|
|
cd src
|
2015-06-02 19:31:57 +02:00
|
|
|
make deps
|
|
|
|
'';
|
2016-06-22 06:58:50 +02:00
|
|
|
|
2015-06-02 19:31:57 +02:00
|
|
|
postBuild = ''
|
|
|
|
make curses
|
|
|
|
'';
|
2016-06-22 06:58:50 +02:00
|
|
|
|
2015-06-02 19:31:57 +02:00
|
|
|
postInstall = ''
|
|
|
|
make curses install PREFIX=$out MAKECMDGOALS=curses
|
|
|
|
'';
|
2016-06-22 06:58:50 +02:00
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-06-02 19:31:57 +02:00
|
|
|
description = "An extensible text editor based on Scintilla with Lua scripting";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://foicica.com/textadept";
|
2016-06-22 06:58:50 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ raskin mirrexagon ];
|
|
|
|
platforms = platforms.linux;
|
2015-06-02 19:31:57 +02:00
|
|
|
};
|
|
|
|
}
|