nixpkgs-suyu/pkgs/applications/editors/edbrowse/default.nix

41 lines
1.7 KiB
Nix
Raw Normal View History

2017-01-25 20:07:40 +01:00
{ stdenv, fetchurl, spidermonkey, unzip, curl, pcre, readline, openssl, perl, html-tidy }:
2015-01-13 20:42:25 +01:00
stdenv.mkDerivation rec {
2015-08-20 14:32:45 +02:00
name = "edbrowse-${version}";
2016-07-02 18:42:53 +02:00
version = "3.6.1";
2015-08-20 14:32:45 +02:00
nativeBuildInputs = [ unzip ];
2017-01-25 20:07:40 +01:00
buildInputs = [ curl pcre readline openssl spidermonkey perl html-tidy ];
2015-08-20 14:32:45 +02:00
patchPhase = ''
substituteInPlace src/ebjs.c --replace \"edbrowse-js\" \"$out/bin/edbrowse-js\"
2016-07-02 18:42:53 +02:00
for i in ./tools/*.pl
do
substituteInPlace $i --replace "/usr/bin/perl" "${perl}/bin/perl"
done
2015-08-20 14:32:45 +02:00
'';
2017-01-25 20:07:40 +01:00
NIX_CFLAGS_COMPILE = "-I${spidermonkey}/include/mozjs-31";
2015-08-20 14:32:45 +02:00
makeFlags = "-C src prefix=$(out)";
2015-01-13 20:42:25 +01:00
src = fetchurl {
2015-08-20 14:32:45 +02:00
url = "http://edbrowse.org/${name}.zip";
2016-07-02 18:42:53 +02:00
sha256 = "1grkn09r31nmvcnm76jkd8aclmd9n5141mpqvb86wndp9pa7gz7q";
2015-01-13 20:42:25 +01:00
};
2016-07-02 18:42:53 +02:00
meta = with stdenv.lib; {
2015-08-20 14:32:45 +02:00
description = "Command Line Editor Browser";
2015-01-13 20:42:25 +01: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 18:42:53 +02:00
license = licenses.gpl1Plus;
2015-08-20 14:32:45 +02:00
homepage = http://edbrowse.org/;
2016-07-02 18:42:53 +02:00
maintainers = [ maintainers.schmitthenner maintainers.vrthra ];
platforms = platforms.linux;
2017-01-25 20:07:40 +01:00
broken = true; # no compatible spidermonkey
2015-01-13 20:42:25 +01:00
};
}