about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/ranger/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/misc/ranger/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/misc/ranger/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/applications/misc/ranger/default.nix b/nixpkgs/pkgs/applications/misc/ranger/default.nix
index 68ddef656972..8394fd4c5343 100644
--- a/nixpkgs/pkgs/applications/misc/ranger/default.nix
+++ b/nixpkgs/pkgs/applications/misc/ranger/default.nix
@@ -1,7 +1,7 @@
 { stdenv, lib, fetchFromGitHub, python3Packages, file, less, highlight
 , imagePreviewSupport ? true, w3m ? null}:
 
-with stdenv.lib;
+with lib;
 
 assert imagePreviewSupport -> w3m != null;
 
@@ -36,7 +36,7 @@ python3Packages.buildPythonApplication rec {
       --replace "/bin/echo" "echo"
 
     substituteInPlace ranger/__init__.py \
-      --replace "DEFAULT_PAGER = 'less'" "DEFAULT_PAGER = '${stdenv.lib.getBin less}/bin/less'"
+      --replace "DEFAULT_PAGER = 'less'" "DEFAULT_PAGER = '${lib.getBin less}/bin/less'"
 
     for i in ranger/config/rc.conf doc/config/rc.conf ; do
       substituteInPlace $i --replace /usr/share $out/share