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