Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 55 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 slang, 6 ncurses, 7}: 8 9stdenv.mkDerivation rec { 10 pname = "most"; 11 version = "5.2.0"; 12 13 src = fetchurl { 14 url = "https://www.jedsoft.org/releases/most/most-${version}.tar.gz"; 15 hash = "sha256-lFWuuPgm+oOFyFDcIr8PIs+QabPDQj+6S/LG9iJtmQM="; 16 }; 17 18 outputs = [ 19 "out" 20 "doc" 21 ]; 22 23 makeFlags = [ 24 "DOC_DIR=${placeholder "doc"}/share/doc/most" 25 ]; 26 27 preConfigure = '' 28 sed -i -e "s|-ltermcap|-lncurses|" configure 29 sed -i autoconf/Makefile.in src/Makefile.in \ 30 -e "s|/bin/cp|cp|" \ 31 -e "s|/bin/rm|rm|" 32 ''; 33 34 configureFlags = [ "--with-slang=${slang.dev}" ]; 35 36 buildInputs = [ 37 slang 38 ncurses 39 ]; 40 41 enableParallelBuilding = true; 42 43 meta = with lib; { 44 description = "Terminal pager similar to 'more' and 'less'"; 45 longDescription = '' 46 MOST is a powerful paging program for Unix, VMS, MSDOS, and win32 47 systems. Unlike other well-known paging programs most supports multiple 48 windows and can scroll left and right. Why settle for less? 49 ''; 50 homepage = "https://www.jedsoft.org/most/index.html"; 51 license = licenses.gpl2Plus; 52 platforms = platforms.unix; 53 mainProgram = "most"; 54 }; 55}