2019-01-05 00:00:26 +00:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, duktape, curl, pcre, readline, openssl, perl, html-tidy }:
|
2017-01-25 19:07:40 +00:00
|
|
|
|
2015-01-13 19:42:25 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2015-08-20 13:32:45 +01:00
|
|
|
name = "edbrowse-${version}";
|
2018-07-06 20:08:11 +01:00
|
|
|
version = "3.7.4";
|
2015-08-20 13:32:45 +01:00
|
|
|
|
2018-03-15 07:08:24 +00:00
|
|
|
buildInputs = [ curl pcre readline openssl duktape perl html-tidy ];
|
2015-08-20 13:32:45 +01:00
|
|
|
|
2019-01-05 00:00:26 +00:00
|
|
|
patches = [
|
|
|
|
# Fix build against recent libcurl
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://github.com/CMB/edbrowse/commit/5d2b9e21fdf019f461ebe62738d615428d5db963.diff;
|
|
|
|
sha256 = "167q8n0syj3iv6lxrbpv4kvb63j4byj4qxrxayy08bah3pss3gky";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2016-07-02 17:42:53 +01:00
|
|
|
for i in ./tools/*.pl
|
|
|
|
do
|
|
|
|
substituteInPlace $i --replace "/usr/bin/perl" "${perl}/bin/perl"
|
|
|
|
done
|
2015-08-20 13:32:45 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = "-C src prefix=$(out)";
|
|
|
|
|
2018-03-18 12:42:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CMB";
|
|
|
|
repo = "edbrowse";
|
|
|
|
rev = "v${version}";
|
2018-07-06 20:08:11 +01:00
|
|
|
sha256 = "0i9ivyfy1dd16c89f392kwx6wxgkkpyq2hl32jhzra0fb0zyl0k6";
|
2015-01-13 19:42:25 +00:00
|
|
|
};
|
2016-07-02 17:42:53 +01:00
|
|
|
meta = with stdenv.lib; {
|
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.
|
|
|
|
'';
|
2016-07-02 17:42:53 +01:00
|
|
|
license = licenses.gpl1Plus;
|
2015-08-20 13:32:45 +01:00
|
|
|
homepage = http://edbrowse.org/;
|
2016-07-02 17:42:53 +01:00
|
|
|
maintainers = [ maintainers.schmitthenner maintainers.vrthra ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = platforms.linux;
|
2015-01-13 19:42:25 +00:00
|
|
|
};
|
|
|
|
}
|