nixpkgs/pkgs/tools/misc/most/default.nix
2018-08-03 17:06:03 -04:00

34 lines
986 B
Nix

{ stdenv, fetchurl, slang, ncurses }:
stdenv.mkDerivation {
name = "most-5.0.0a";
src = fetchurl {
url = ftp://space.mit.edu/pub/davis/most/most-5.0.0a.tar.bz2;
sha256 = "1aas904g8x48vsfh3wcr2k6mjzkm5808lfgl2qqhdfdnf4p5mjwl";
};
preConfigure = ''
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.dev}" ];
buildInputs = [ slang ncurses ];
meta = {
description = "A terminal pager similar to 'more' and 'less'";
longDescription = ''
MOST is a powerful paging program for Unix, VMS, MSDOS, and win32
systems. Unlike other well-known paging programs most supports multiple
windows and can scroll left and right. Why settle for less?
'';
homepage = http://www.jedsoft.org/most/index.html;
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.unix;
};
}