From 01f48c7fc1b73a544017bb2b0303b8b59d26cafb Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 18 Jan 2012 19:44:16 +0000 Subject: [PATCH] * Fix "most". Not clear how passing "-ncurses" to the linker ever worked. svn path=/nixpkgs/branches/stdenv-updates/; revision=31641 --- pkgs/tools/misc/most/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/misc/most/default.nix b/pkgs/tools/misc/most/default.nix index 98e5d5c25af..941d805a6ff 100644 --- a/pkgs/tools/misc/most/default.nix +++ b/pkgs/tools/misc/most/default.nix @@ -1,22 +1,23 @@ -{stdenv, fetchurl, slang}: +{ stdenv, fetchurl, slang, ncurses }: stdenv.mkDerivation { name = "most-5.0.0"; src = fetchurl { - url = ftp://space.mit.edu/pub/davis/most/most-5.0.0.tar.bz2; - sha256 = "1f5x7rvjg89b5klfqs1gb91jmbnd3fy08d8rwgdvgg0plqkxr7ja"; + url = ftp://space.mit.edu/pub/davis/most/most-5.0.0.tar.bz2; + sha256 = "1f5x7rvjg89b5klfqs1gb91jmbnd3fy08d8rwgdvgg0plqkxr7ja"; }; preConfigure = '' - sed -i -e "s|-ltermcap|-ncurses|" configure + sed -i -e "s|-ltermcap|-lncurses|" configure sed -i autoconf/Makefile.in src/Makefile.in \ -e "s|/bin/cp|cp|" \ -e "s|/bin/rm|rm|" ''; + configureFlags = "--with-slang=${slang}"; - buildInputs = [ slang ]; + buildInputs = [ slang ncurses ]; meta = { description = ''