ranger: patch default pager

This commit is contained in:
Profpatsch 2016-09-28 22:07:45 +02:00
parent 8916ba141b
commit 90556cedd0

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pythonPackages, w3m, file }:
{ stdenv, fetchurl, pythonPackages, w3m, file, less }:
pythonPackages.buildPythonApplication rec {
name = "ranger-1.7.2";
@ -20,6 +20,8 @@ pythonPackages.buildPythonApplication rec {
preConfigure = ''
substituteInPlace ranger/ext/img_display.py \
--replace /usr/lib/w3m ${w3m}/libexec/w3m
substituteInPlace ranger/__init__.py \
--replace "DEFAULT_PAGER = 'less'" "DEFAULT_PAGER = '${stdenv.lib.getBin less}/bin/less'"
for i in ranger/config/rc.conf doc/config/rc.conf ; do
substituteInPlace $i --replace /usr/share $out/share