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