git.iko.soy/typeable/nixpkgs
on master help sign in
ranger: patch default pager
commit90556cedd0a9e9c0d143bcfe4411cbeef74c6906 authorProfpatsch <mail@profpatsch.de> dateWed 28 Sep 2016, 22:07 (10 years ago) parent8916ba1
1 file changed+3−1
pkgs/applications/misc/ranger/default.nix+3−1
pkgs/applications/misc/ranger/default.nix+3−1
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, pythonPackages, w3m, file }:
1+{ stdenv, fetchurl, pythonPackages, w3m, file, less }:
22
33pythonPackages.buildPythonApplication rec {
44 name = "ranger-1.7.2";
@@ -20,6 +20,8 @@ pythonPackages.buildPythonApplication rec {
2020 preConfigure = ''
2121 substituteInPlace ranger/ext/img_display.py \
2222 --replace /usr/lib/w3m ${w3m}/libexec/w3m
23+ substituteInPlace ranger/__init__.py \
24+ --replace "DEFAULT_PAGER = 'less'" "DEFAULT_PAGER = '${stdenv.lib.getBin less}/bin/less'"
2325
2426 for i in ranger/config/rc.conf doc/config/rc.conf ; do
2527 substituteInPlace $i --replace /usr/share $out/share