2021-07-21 07:28:18 +00:00
|
|
|
{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper, imagemagick }:
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "lsix";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.9.1";
|
2021-07-21 07:28:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hackerb9";
|
2024-01-25 14:12:00 +00:00
|
|
|
repo = "lsix";
|
|
|
|
rev = finalAttrs.version;
|
2024-06-20 14:57:18 +00:00
|
|
|
sha256 = "sha256-msTG7otjzksg/2XyPDy31LEb7uGXSgB8fzfHvad9nPA=";
|
2021-07-21 07:28:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm755 lsix -t $out/bin
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram $out/bin/lsix \
|
2024-01-25 14:12:00 +00:00
|
|
|
--prefix PATH : ${lib.makeBinPath [ (imagemagick.override { ghostscriptSupport = true;}) ]}
|
2021-07-21 07:28:18 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Shows thumbnails in terminal using sixel graphics";
|
|
|
|
homepage = "https://github.com/hackerb9/lsix";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
platforms = platforms.all;
|
2024-01-25 14:12:00 +00:00
|
|
|
maintainers = with maintainers; [ justinlime kidonng ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "lsix";
|
2021-07-21 07:28:18 +00:00
|
|
|
};
|
2024-01-25 14:12:00 +00:00
|
|
|
})
|