nixpkgs/pkgs/by-name/mo/most/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

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/most/most-${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 = "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.gpl2Plus;
platforms = platforms.unix;
mainProgram = "most";
};
}