nixpkgs/pkgs/tools/misc/most/default.nix
Muhammad Falak R Wani 72dc2e661c most: 5.1.0 -> 5.2.0
Drop already upstreamed patch & switch to hash instead of sha256

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
2024-01-26 08:36:33 +05:30

44 lines
1.1 KiB
Nix

{ lib, stdenv, fetchurl, slang, ncurses }:
stdenv.mkDerivation rec {
pname = "most";
version = "5.2.0";
src = fetchurl {
url = "https://www.jedsoft.org/releases/${pname}/${pname}-${version}.tar.gz";
hash = "sha256-lFWuuPgm+oOFyFDcIr8PIs+QabPDQj+6S/LG9iJtmQM=";
};
outputs = [ "out" "doc" ];
makeFlags = [
"DOC_DIR=${placeholder "doc"}/share/doc/most"
];
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 ];
enableParallelBuilding = true;
meta = with lib; {
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 = "https://www.jedsoft.org/most/index.html";
license = licenses.gpl2;
platforms = platforms.unix;
mainProgram = "most";
};
}