2015-01-13 19:42:25 +00:00
|
|
|
{ stdenv, fetchurl, spidermonkey_24, unzip, curl, pcre, readline, openssl }:
|
|
|
|
stdenv.mkDerivation rec {
|
2015-08-20 13:32:45 +01:00
|
|
|
name = "edbrowse-${version}";
|
|
|
|
version = "3.5.4.1";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip ];
|
|
|
|
buildInputs = [ curl pcre readline openssl spidermonkey_24 ];
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace src/ebjs.c --replace \"edbrowse-js\" \"$out/bin/edbrowse-js\"
|
|
|
|
'';
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-I${spidermonkey_24}/include/mozjs-24";
|
|
|
|
makeFlags = "-C src prefix=$(out)";
|
|
|
|
|
2015-01-13 19:42:25 +00:00
|
|
|
src = fetchurl {
|
2015-08-20 13:32:45 +01:00
|
|
|
url = "http://edbrowse.org/${name}.zip";
|
|
|
|
sha256 = "0fpzaalwvgwbns7yxq4a4i6hpdljmcjfyvx19r1dlb3vdfw0vx5l";
|
2015-01-13 19:42:25 +00:00
|
|
|
};
|
|
|
|
meta = {
|
2015-08-20 13:32:45 +01:00
|
|
|
description = "Command Line Editor Browser";
|
2015-01-13 19:42:25 +00:00
|
|
|
longDescription = ''
|
|
|
|
Edbrowse is a combination editor, browser, and mail client that is 100% text based.
|
|
|
|
The interface is similar to /bin/ed, though there are many more features, such as editing multiple files simultaneously, and rendering html.
|
|
|
|
This program was originally written for blind users, but many sighted users have taken advantage of the unique scripting capabilities of this program, which can be found nowhere else.
|
|
|
|
A batch job, or cron job, can access web pages on the internet, submit forms, and send email, with no human intervention whatsoever.
|
|
|
|
edbrowse can also tap into databases through odbc. It was primarily written by Karl Dahlke.
|
|
|
|
'';
|
|
|
|
license = stdenv.lib.licenses.gpl1Plus;
|
2015-08-20 13:32:45 +01:00
|
|
|
homepage = http://edbrowse.org/;
|
2015-01-13 19:42:25 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.schmitthenner ];
|
|
|
|
};
|
|
|
|
}
|