mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
42 lines
1.5 KiB
Nix
42 lines
1.5 KiB
Nix
{ lib, stdenv, fetchFromGitHub, duktape, curl, pcre, readline, openssl, perl, html-tidy }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "edbrowse";
|
|
version = "3.7.7";
|
|
|
|
buildInputs = [ curl pcre readline openssl duktape perl html-tidy ];
|
|
|
|
postPatch = ''
|
|
for i in ./tools/*.pl
|
|
do
|
|
substituteInPlace $i --replace "/usr/bin/perl" "${perl}/bin/perl"
|
|
done
|
|
'';
|
|
|
|
makeFlags = [
|
|
"-C" "src"
|
|
"prefix=${placeholder "out"}"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CMB";
|
|
repo = "edbrowse";
|
|
rev = "v${version}";
|
|
sha256 = "0cw9d60mdhwna57r1vxn53s8gl81rr3cxnvm769ifq3xyh49vfcf";
|
|
};
|
|
meta = with lib; {
|
|
description = "Command Line Editor Browser";
|
|
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 = licenses.gpl1Plus;
|
|
homepage = "https://edbrowse.org/";
|
|
maintainers = with maintainers; [ schmitthenner vrthra equirosa ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|