Merge pull request #19053 from Profpatsch/ranger-less

ranger: patch default pager
This commit is contained in:
Jörg Thalheim 2016-09-28 22:25:37 +02:00 committed by GitHub
commit dd0d050b67

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