nixpkgs/pkgs/by-name/ls/lsix/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
924 B
Nix
Raw Normal View History

2021-07-18 08:12:41 +00:00
{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper, imagemagick }:
2024-01-21 22:38:22 +00:00
stdenvNoCC.mkDerivation (finalAttrs: {
2021-07-18 08:12:41 +00:00
pname = "lsix";
2024-06-18 19:34:17 +00:00
version = "1.9.1";
2021-07-18 08:12:41 +00:00
src = fetchFromGitHub {
owner = "hackerb9";
2024-01-21 22:38:22 +00:00
repo = "lsix";
rev = finalAttrs.version;
2024-06-18 19:34:17 +00:00
sha256 = "sha256-msTG7otjzksg/2XyPDy31LEb7uGXSgB8fzfHvad9nPA=";
2021-07-18 08:12:41 +00:00
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
install -Dm755 lsix -t $out/bin
runHook postInstall
'';
postFixup = ''
wrapProgram $out/bin/lsix \
2024-01-21 22:40:28 +00:00
--prefix PATH : ${lib.makeBinPath [ (imagemagick.override { ghostscriptSupport = true;}) ]}
2021-07-18 08:12:41 +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-21 22:40:44 +00:00
maintainers = with maintainers; [ justinlime kidonng ];
2023-11-23 02:51:17 +00:00
mainProgram = "lsix";
2021-07-18 08:12:41 +00:00
};
2024-01-21 22:38:22 +00:00
})