2021-06-07 23:42:42 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, curl
|
|
|
|
, duktape
|
|
|
|
, html-tidy
|
|
|
|
, openssl
|
|
|
|
, pcre
|
|
|
|
, perl
|
|
|
|
, pkg-config
|
|
|
|
, quickjs
|
|
|
|
, readline
|
|
|
|
, which
|
|
|
|
}:
|
2017-01-25 19:07:40 +00:00
|
|
|
|
2015-01-13 19:42:25 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "edbrowse";
|
2021-06-07 23:42:42 +01:00
|
|
|
version = "3.8.0";
|
2015-08-20 13:32:45 +01:00
|
|
|
|
2021-06-07 23:42:42 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CMB";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-ZXxzQBAmu7kM3sjqg/rDLBXNucO8sFRFKXV8UxQVQZU=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
which
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
curl
|
|
|
|
duktape
|
|
|
|
html-tidy
|
|
|
|
openssl
|
|
|
|
pcre
|
|
|
|
perl
|
|
|
|
quickjs
|
|
|
|
readline
|
|
|
|
];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Fixes some small annoyances on src/makefile
|
|
|
|
./0001-small-fixes.patch
|
|
|
|
];
|
2015-08-20 13:32:45 +01:00
|
|
|
|
2019-01-05 00:00:26 +00:00
|
|
|
postPatch = ''
|
2021-06-07 23:42:42 +01:00
|
|
|
substituteInPlace src/makefile --replace\
|
|
|
|
'-L/usr/local/lib/quickjs' '-L${quickjs}/lib/quickjs'
|
|
|
|
for i in $(find ./tools/ -type f ! -name '*.c'); do
|
|
|
|
patchShebangs $i
|
2016-07-02 17:42:53 +01:00
|
|
|
done
|
2015-08-20 13:32:45 +01:00
|
|
|
'';
|
|
|
|
|
2019-10-27 13:03:25 +00:00
|
|
|
makeFlags = [
|
|
|
|
"-C" "src"
|
2021-06-07 23:42:42 +01:00
|
|
|
"PREFIX=${placeholder "out"}"
|
2019-12-12 19:01:35 +00:00
|
|
|
];
|
2015-08-20 13:32:45 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-06-07 23:42:42 +01:00
|
|
|
homepage = "https://edbrowse.org/";
|
2015-08-20 13:32:45 +01:00
|
|
|
description = "Command Line Editor Browser";
|
2015-01-13 19:42:25 +00:00
|
|
|
longDescription = ''
|
2021-06-07 23:42:42 +01:00
|
|
|
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;
|
2019-12-12 19:01:35 +00:00
|
|
|
maintainers = with maintainers; [ schmitthenner vrthra equirosa ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = platforms.linux;
|
2015-01-13 19:42:25 +00:00
|
|
|
};
|
|
|
|
}
|
2021-06-07 23:42:42 +01:00
|
|
|
# TODO: send the patch to upstream developers
|