3
0
Fork 0
forked from mirrors/nixpkgs

Added rlwrap - readline wrapper

svn path=/nixpkgs/trunk/; revision=10271
This commit is contained in:
Michael Raskin 2008-01-23 23:39:06 +00:00
parent c6b14c8b54
commit dac5ce6e48
2 changed files with 31 additions and 1 deletions

View file

@ -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.
";
};
}

View file

@ -222,7 +222,7 @@ rec {
else x);
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 {
@ -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 {
inherit fetchurl stdenv cpio zlib bzip2 file sqlite beecrypt neon elfutils;
};