Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions pkgs/tools/misc/lesspipe/default.nix
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
{ lib, stdenv, fetchFromGitHub, substituteAll, perl, file, ncurses, bash }:
{ lib, stdenv, fetchFromGitHub, substituteAll, makeWrapper, perl, procps, file, gnused, bash }:

stdenv.mkDerivation rec {
pname = "lesspipe";
version = "1.85";
version = "2.05";

nativeBuildInputs = [ perl ];
nativeBuildInputs = [ perl makeWrapper ];
buildInputs = [ perl bash ];
strictDeps = true;
preConfigure = ''
Comment thread
avdv marked this conversation as resolved.
Outdated
patchShebangs --build configure
substituteInPlace configure --replace '/etc/bash_completion.d' '/share/bash-completion/completions'
'';
configureFlags = [ "--shell=${bash}/bin/bash" "--yes" ];
configurePlatforms = [];
configureFlags = [ "--shell=${bash}/bin/bash" "--prefix=/" ];
configurePlatforms = [ ];
dontBuild = true;

installFlags = [ "DESTDIR=$(out)" ];

postInstall = ''
for f in lesspipe.sh lesscomplete; do
wrapProgram "$out/bin/$f" --prefix-each PATH : "${lib.makeBinPath [ file gnused procps ]}"
done
'';
Comment thread
SuperSandro2000 marked this conversation as resolved.

src = fetchFromGitHub {
Comment thread
SuperSandro2000 marked this conversation as resolved.
Outdated
owner = "wofr06";
repo = "lesspipe";
rev = version;
sha256 = "1v1jdkdq1phc93gdr6mjlk98gipxrkkq4bj8kks0kfdvjgdwkdaa";
rev = "v${version}";
sha256 = "sha256-mRgOndoDpyMnlj/BIoqwpZzuth4eA6yoB2VFZOigRw4=";
};

patches = [
(substituteAll {
src = ./fix-paths.patch;
file = "${file}/bin/file";
tput = "${ncurses}/bin/tput";
})
./override-shell-detection.patch
];

meta = with lib; {
description = "A preprocessor for less";
longDescription = ''
Expand Down
22 changes: 0 additions & 22 deletions pkgs/tools/misc/lesspipe/fix-paths.patch

This file was deleted.

12 changes: 0 additions & 12 deletions pkgs/tools/misc/lesspipe/override-shell-detection.patch

This file was deleted.