Marc,

Thanks for the quick response.  I've made the changes you
suggested/requested. Any other suggestions?

Which of those features are you missing when using either less or echo
> 'foo' | vim - ?
>

I've been using most for a few years, so now that I am going to make the
switch to NixOS I just wanted to have it. In all honesty, I did not realize
that less paged horizontally.  That was a reason why I switch to most.

Thanks again,
Tim
Index: pkgs/tools/misc/most/default.nix
===================================================================
--- pkgs/tools/misc/most/default.nix	(revision 0)
+++ pkgs/tools/misc/most/default.nix	(revision 0)
@@ -0,0 +1,30 @@
+{stdenv, fetchurl, slang}:
+
+stdenv.mkDerivation {
+    name = "most-5.0.0";
+
+    src = fetchurl {
+        url = ftp://space.mit.edu/pub/davis/most/most-5.0.0.tar.bz2;
+        sha256 = "1f5x7rvjg89b5klfqs1gb91jmbnd3fy08d8rwgdvgg0plqkxr7ja";
+    };
+ 
+    preConfigure = ''
+        sed -i -e "s|-ltermcap|-ncurses|" configure
+        sed -i autoconf/Makefile.in src/Makefile.in \
+            -e "s|/bin/cp|cp|"  \
+            -e "s|/bin/rm|rm|" 
+    '';
+    configureFlags = "--with-slang=${slang}";
+
+    buildInputs = [ slang ];
+
+    meta = {
+        description = ''
+            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 = http://www.jedsoft.org/most/index.html;
+    };
+}
+
Index: pkgs/top-level/all-packages.nix
===================================================================
--- pkgs/top-level/all-packages.nix	(revision 21447)
+++ pkgs/top-level/all-packages.nix	(working copy)
@@ -1007,6 +1007,10 @@
     inherit fetchurl stdenv ncurses;
   };
 
+  most = import ../tools/misc/most {
+    inherit fetchurl stdenv slang;
+  };
+
   lftp = import ../tools/networking/lftp {
     inherit fetchurl stdenv readline;
   };
_______________________________________________
nix-dev mailing list
[email protected]
https://mail.cs.uu.nl/mailman/listinfo/nix-dev

Reply via email to