about summary refs log tree commit diff
path: root/src/nix/local.mk
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-05-10T16·34+0200
committerEelco Dolstra <edolstra@gmail.com>2017-05-10T16·37+0200
commitc5f23f10a84f568874321c04984b1a14d2dce978 (patch)
treefa672fb6cf9c64015d57438366492bb2eaa9c99c /src/nix/local.mk
parent82a9c93c7f090d5a4eebe84894669aa13d31ed61 (diff)
Replace readline by linenoise
Using linenoise avoids a license compatibility issue (#1356), is a lot
smaller and doesn't pull in ncurses.
Diffstat (limited to 'src/nix/local.mk')
-rw-r--r--src/nix/local.mk6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nix/local.mk b/src/nix/local.mk
index e71cf16fabf6..c7d2d328aab5 100644
--- a/src/nix/local.mk
+++ b/src/nix/local.mk
@@ -2,12 +2,8 @@ programs += nix
 
 nix_DIR := $(d)
 
-nix_SOURCES := $(wildcard $(d)/*.cc)
+nix_SOURCES := $(wildcard $(d)/*.cc) src/linenoise/linenoise.c
 
 nix_LIBS = libexpr libmain libstore libutil libformat
 
-ifeq ($(HAVE_READLINE), 1)
-  nix_LDFLAGS += -lreadline
-endif
-
 $(eval $(call install-symlink, nix, $(bindir)/nix-hash))