git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #19053 from Profpatsch/ranger-less

ranger: patch default pager

commitdd0d050b671811a9e03e1e1770cff91494844a8c authorJörg Thalheim <joerg@higgsboson.tk> dateWed 28 Sep 2016, 22:25 (10 years ago) parent5cf8d6490556ce
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