Skip to content

Commit

Permalink
editline: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dtzWill committed Jun 26, 2018
1 parent 1fb475e commit 8c7325b
Show file tree
Hide file tree
Showing 13 changed files with 92 additions and 4,645 deletions.
1 change: 1 addition & 0 deletions Makefile.config.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ SODIUM_LIBS = @SODIUM_LIBS@
LIBLZMA_LIBS = @LIBLZMA_LIBS@
SQLITE3_LIBS = @SQLITE3_LIBS@
LIBBROTLI_LIBS = @LIBBROTLI_LIBS@
EDITLINE_LIBS = @EDITLINE_LIBS@
bash = @bash@
bindir = @bindir@
brotli = @brotli@
Expand Down
2 changes: 2 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,8 @@ PKG_CHECK_MODULES([SQLITE3], [sqlite3 >= 3.6.19], [CXXFLAGS="$SQLITE3_CFLAGS $CX
# Look for libcurl, a required dependency.
PKG_CHECK_MODULES([LIBCURL], [libcurl], [CXXFLAGS="$LIBCURL_CFLAGS $CXXFLAGS"])

# Look for editline, a required dependency.
PKG_CHECK_MODULES([EDITLINE], [libeditline], [CXXFLAGS="$EDITLINE_CFLAGS $CXXFLAGS"])

# Look for libsodium, an optional dependency.
PKG_CHECK_MODULES([SODIUM], [libsodium],
Expand Down
6 changes: 0 additions & 6 deletions doc/manual/introduction/about-nix.xml
Original file line number Diff line number Diff line change
Expand Up @@ -262,12 +262,6 @@ xlink:href="http://nixos.org/">NixOS homepage</link>.</para>
xlink:href="http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html">GNU
LGPLv2.1 or (at your option) any later version</link>.</para>

<para>Nix uses the <link
xlink:href="https://github.com/arangodb/linenoise-ng">linenoise-ng
library</link>, which has the following license:</para>

<programlisting><xi:include href="../../../src/linenoise/LICENSE" parse="text" /></programlisting>

</simplesect>


Expand Down
24 changes: 24 additions & 0 deletions editline.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{ stdenv, fetchFromGitHub, autoreconfHook }:

stdenv.mkDerivation rec {
name = "editline-${version}";
version = "1.15.3";
src = fetchFromGitHub {
owner = "troglobit";
repo = "editline";
rev = version;
sha256 = "0dm5fgq0acpprr938idwml64nclg9l6c6avirsd8r6f40qicbgma";
};

nativeBuildInputs = [ autoreconfHook ];

dontDisableStatic = true;

meta = with stdenv.lib; {
homepage = http://troglobit.com/editline.html;
description = "A readline() replacement for UNIX without termcap (ncurses)";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ dtzWill ];
platforms = platforms.all;
};
}
4 changes: 3 additions & 1 deletion release-common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ rec {
'';
});

editline = pkgs.editline or (pkgs.callPackage ./editline.nix {});

configureFlags =
[ "--disable-init-state"
"--enable-gc"
Expand All @@ -49,7 +51,7 @@ rec {

buildDeps =
[ curl
bzip2 xz brotli
bzip2 xz brotli editline
openssl pkgconfig sqlite boehmgc
boost

Expand Down
Loading

0 comments on commit 8c7325b

Please sign in to comment.