From b1d79f0ef39faffee5ade67e806c22c048d4aa77 Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Sun, 2 Jul 2017 01:51:40 +0200 Subject: [PATCH] ranger: fix absolute paths in scope.sh --- pkgs/applications/misc/ranger/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/misc/ranger/default.nix b/pkgs/applications/misc/ranger/default.nix index 92e017c3f28f..f378c3529363 100644 --- a/pkgs/applications/misc/ranger/default.nix +++ b/pkgs/applications/misc/ranger/default.nix @@ -28,6 +28,9 @@ pythonPackages.buildPythonApplication rec { ''; preConfigure = '' + substituteInPlace ranger/data/scope.sh \ + --replace "/bin/echo" "echo" + substituteInPlace ranger/__init__.py \ --replace "DEFAULT_PAGER = 'less'" "DEFAULT_PAGER = '${stdenv.lib.getBin less}/bin/less'"