ranger: fix paths to w3m and share

Picked from #11222.
This commit is contained in:
Jan Malakhovski 2015-08-18 15:41:23 +00:00 committed by Vladimír Čunát
parent 35fbee7964
commit b13c7186d6

View File

@ -1,4 +1,4 @@
{ stdenv, buildPythonPackage, python, fetchurl }:
{ stdenv, fetchurl, buildPythonPackage, python, w3m }:
buildPythonPackage rec {
name = "ranger-1.7.1";
@ -17,4 +17,14 @@ buildPythonPackage rec {
};
propagatedBuildInputs = with python.modules; [ curses ];
preConfigure = ''
substituteInPlace ranger/ext/img_display.py \
--replace /usr/lib/w3m ${w3m}/libexec/w3m
for i in ranger/config/rc.conf doc/config/rc.conf ; do
substituteInPlace $i --replace /usr/share $out/share
done
'';
}