mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
ranger: syntax highlight previews by default
This commit is contained in:
parent
4f14ccee07
commit
d152089772
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchFromGitHub, python3Packages, file, less
|
||||
{ stdenv, lib, fetchFromGitHub, python3Packages, file, less, highlight
|
||||
, imagePreviewSupport ? true, w3m ? null}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
@ -24,6 +24,11 @@ python3Packages.buildPythonApplication rec {
|
|||
'';
|
||||
|
||||
preConfigure = ''
|
||||
${lib.optionalString (highlight != null) ''
|
||||
sed -i -e 's|^\s*highlight\b|${highlight}/bin/highlight|' \
|
||||
ranger/data/scope.sh
|
||||
''}
|
||||
|
||||
substituteInPlace ranger/data/scope.sh \
|
||||
--replace "/bin/echo" "echo"
|
||||
|
||||
|
@ -46,7 +51,7 @@ python3Packages.buildPythonApplication rec {
|
|||
--replace "set preview_images false" "set preview_images true"
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
meta = with lib; {
|
||||
description = "File manager with minimalistic curses interface";
|
||||
homepage = http://ranger.github.io/;
|
||||
license = licenses.gpl3;
|
||||
|
|
Loading…
Reference in a new issue