18 stdenv.mkDerivation (finalAttrs: {
22 src = fetchFromGitHub {
25 rev = "v${finalAttrs.version}";
26 hash = "sha256-ZXxzQBAmu7kM3sjqg/rDLBXNucO8sFRFKXV8UxQVQZU=";
29 sourceRoot = "${finalAttrs.src.name}/src";
32 # Fixes some small annoyances on src/makefile
33 ./0001-small-fixes.patch
41 for file in $(find ./tools/ -type f ! -name '*.c'); do
60 ] ++ lib.optionals withODBC [
65 "PREFIX=${placeholder "out"}"
70 BUILD_EDBR_ODBC=${if withODBC then "on" else "off"}
72 QUICKJS_LDFLAGS="-L${quickjs}/lib/quickjs -lquickjs -ldl -latomic"
77 homepage = "https://edbrowse.org/";
78 description = "Command Line Editor Browser";
80 Edbrowse is a combination editor, browser, and mail client that is 100%
81 text based. The interface is similar to /bin/ed, though there are many
82 more features, such as editing multiple files simultaneously, and
83 rendering html. This program was originally written for blind users, but
84 many sighted users have taken advantage of the unique scripting
85 capabilities of this program, which can be found nowhere else. A batch
86 job, or cron job, can access web pages on the internet, submit forms, and
87 send email, with no human intervention whatsoever. edbrowse can also tap
88 into databases through odbc. It was primarily written by Karl Dahlke.
90 license = with lib.licenses; [ gpl1Plus ];
91 mainProgram = "edbrowse";
92 maintainers = with lib.maintainers; [
97 platforms = lib.platforms.linux;
100 # TODO: send the patch to upstream developers