forked from mirrors/nixpkgs
psql: Use less as the default pager
less is more common and better than more Fixes #1681
This commit is contained in:
parent
fdf97c5df3
commit
15d6da8740
|
@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
LC_ALL = "C";
|
||||
|
||||
patches = [ ./less-is-more.patch ];
|
||||
|
||||
passthru = { inherit readline; };
|
||||
|
||||
meta = {
|
||||
|
|
|
@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
LC_ALL = "C";
|
||||
|
||||
patches = [ ./less-is-more.patch ];
|
||||
|
||||
passthru = {
|
||||
inherit readline;
|
||||
psqlSchema = "9.0";
|
||||
|
|
|
@ -16,6 +16,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
LC_ALL = "C";
|
||||
|
||||
patches = [ ./less-is-more.patch ];
|
||||
|
||||
postInstall =
|
||||
''
|
||||
mkdir -p $out/share/man
|
||||
|
|
|
@ -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" ];
|
||||
|
||||
|
|
|
@ -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" ];
|
||||
|
||||
|
|
12
pkgs/servers/sql/postgresql/less-is-more.patch
Normal file
12
pkgs/servers/sql/postgresql/less-is-more.patch
Normal 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
|
Loading…
Reference in a new issue