3
0
Fork 0
forked from mirrors/nixpkgs

psql: Use less as the default pager

less is more common and better than more

Fixes 
This commit is contained in:
Shea Levy 2014-03-04 14:52:43 -05:00
parent fdf97c5df3
commit 15d6da8740
6 changed files with 20 additions and 2 deletions

View file

@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
LC_ALL = "C";
patches = [ ./less-is-more.patch ];
passthru = { inherit readline; };
meta = {

View file

@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
LC_ALL = "C";
patches = [ ./less-is-more.patch ];
passthru = {
inherit readline;
psqlSchema = "9.0";

View file

@ -16,6 +16,8 @@ stdenv.mkDerivation rec {
LC_ALL = "C";
patches = [ ./less-is-more.patch ];
postInstall =
''
mkdir -p $out/share/man

View file

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
makeFlags = [ "world" ];
patches = [ ./disable-resolve_symlinks.patch ];
patches = [ ./disable-resolve_symlinks.patch ./less-is-more.patch ];
installTargets = [ "install-world" ];

View file

@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
makeFlags = [ "world" ];
patches = [ ./disable-resolve_symlinks.patch ];
patches = [ ./disable-resolve_symlinks.patch ./less-is-more.patch ];
installTargets = [ "install-world" ];

View file

@ -0,0 +1,12 @@
diff -Naur postgresql-9.2.7-orig/src/bin/psql/print.h postgresql-9.2.7/src/bin/psql/print.h
--- postgresql-9.2.7-orig/src/bin/psql/print.h 2014-02-17 14:38:15.000000000 -0500
+++ postgresql-9.2.7/src/bin/psql/print.h 2014-03-04 14:42:28.874014415 -0500
@@ -178,7 +178,7 @@
extern const printTextFormat *get_line_style(const printTableOpt *opt);
#ifndef __CYGWIN__
-#define DEFAULT_PAGER "more"
+#define DEFAULT_PAGER "less"
#else
#define DEFAULT_PAGER "less"
#endif