Added rlwrap - readline wrapper
svn path=/nixpkgs/trunk/; revision=10271
This commit is contained in:
parent
c6b14c8b54
commit
dac5ce6e48
|
@ -0,0 +1,23 @@
|
||||||
|
args : with args; with builderDefs {src="";} null;
|
||||||
|
let localDefs = builderDefs {
|
||||||
|
src = /* put a fetchurl here */
|
||||||
|
fetchurl {
|
||||||
|
url = ftp://ftp.chg.ru/mirrors/ftp.freebsd.org/pub/FreeBSD/ports/distfiles/rlwrap-0.28.tar.gz;
|
||||||
|
sha256 = "07jzhcqzb8jsmsscc28dk4md7swnhn3vyai5fpxwdj6a1kbn4y3p";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [readline ];
|
||||||
|
configureFlags = [];
|
||||||
|
} null; /* null is a terminator for sumArgs */
|
||||||
|
in with localDefs;
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "rlwrap-"+version;
|
||||||
|
builder = writeScript (name + "-builder")
|
||||||
|
(textClosure localDefs
|
||||||
|
[doConfigure doMakeInstall doForceShare doPropagate]);
|
||||||
|
meta = {
|
||||||
|
description = "
|
||||||
|
Readline wrapper for console programs.
|
||||||
|
";
|
||||||
|
};
|
||||||
|
}
|
|
@ -222,7 +222,7 @@ rec {
|
||||||
else x);
|
else x);
|
||||||
|
|
||||||
builderDefs = lib.sumArgs (import ./builder-defs.nix) {
|
builderDefs = lib.sumArgs (import ./builder-defs.nix) {
|
||||||
inherit stringsWithDeps lib stdenv writeScript;
|
inherit stringsWithDeps lib stdenv writeScript fetchurl;
|
||||||
};
|
};
|
||||||
|
|
||||||
stringsWithDeps = import ../lib/strings-with-deps.nix {
|
stringsWithDeps = import ../lib/strings-with-deps.nix {
|
||||||
|
@ -725,6 +725,13 @@ rec {
|
||||||
};
|
};
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
rlwrapFun = lib.sumArgs (selectVersion ../tools/misc/rlwrap) {
|
||||||
|
version = "0.28";
|
||||||
|
inherit builderDefs readline;
|
||||||
|
};
|
||||||
|
|
||||||
|
rlwrap = rlwrapFun null;
|
||||||
|
|
||||||
rpm = import ../tools/package-management/rpm {
|
rpm = import ../tools/package-management/rpm {
|
||||||
inherit fetchurl stdenv cpio zlib bzip2 file sqlite beecrypt neon elfutils;
|
inherit fetchurl stdenv cpio zlib bzip2 file sqlite beecrypt neon elfutils;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue