2012-01-18 19:44:16 +00:00
|
|
|
{ stdenv, fetchurl, slang, ncurses }:
|
2010-04-30 09:21:18 +00:00
|
|
|
|
2019-07-09 12:27:29 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "most";
|
|
|
|
version = "5.1.0";
|
2010-04-30 09:21:18 +00:00
|
|
|
|
2010-04-30 16:05:55 +00:00
|
|
|
src = fetchurl {
|
2019-07-09 12:27:29 +00:00
|
|
|
url = "https://www.jedsoft.org/releases/${pname}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "008537ns659pw2aag15imwjrxj73j26aqq90h285is6kz8gmv06v";
|
2010-04-30 16:05:55 +00:00
|
|
|
};
|
2010-04-30 09:21:18 +00:00
|
|
|
|
2019-07-09 12:27:29 +00:00
|
|
|
outputs = [ "out" "doc" ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"DOC_DIR=${placeholder ''doc''}/share/doc/most"
|
|
|
|
];
|
|
|
|
|
2010-04-30 16:05:55 +00:00
|
|
|
preConfigure = ''
|
2012-01-18 19:44:16 +00:00
|
|
|
sed -i -e "s|-ltermcap|-lncurses|" configure
|
2010-04-30 16:05:55 +00:00
|
|
|
sed -i autoconf/Makefile.in src/Makefile.in \
|
|
|
|
-e "s|/bin/cp|cp|" \
|
|
|
|
-e "s|/bin/rm|rm|"
|
|
|
|
'';
|
2017-07-30 07:18:12 +00:00
|
|
|
|
2018-07-25 21:44:21 +00:00
|
|
|
configureFlags = [ "--with-slang=${slang.dev}" ];
|
2010-04-30 09:21:18 +00:00
|
|
|
|
2012-01-18 19:44:16 +00:00
|
|
|
buildInputs = [ slang ncurses ];
|
2010-04-30 09:21:18 +00:00
|
|
|
|
2019-07-09 12:27:29 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "A terminal pager similar to 'more' and 'less'";
|
|
|
|
longDescription = ''
|
2010-04-30 16:05:55 +00:00
|
|
|
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?
|
|
|
|
'';
|
2019-07-09 12:27:29 +00:00
|
|
|
homepage = "https://www.jedsoft.org/most/index.html";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.unix;
|
2010-04-30 16:05:55 +00:00
|
|
|
};
|
2010-04-30 09:21:18 +00:00
|
|
|
}
|