Files
nixpkgs/pkgs/by-name/ls/lsix/package.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

47 lines
954 B
Nix

{
lib,
stdenvNoCC,
fetchFromGitHub,
makeWrapper,
imagemagick,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "lsix";
version = "1.9.1";
src = fetchFromGitHub {
owner = "hackerb9";
repo = "lsix";
rev = finalAttrs.version;
sha256 = "sha256-msTG7otjzksg/2XyPDy31LEb7uGXSgB8fzfHvad9nPA=";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
install -Dm755 lsix -t $out/bin
runHook postInstall
'';
postFixup = ''
wrapProgram $out/bin/lsix \
--prefix PATH : ${lib.makeBinPath [ (imagemagick.override { ghostscriptSupport = true; }) ]}
'';
meta = {
description = "Shows thumbnails in terminal using sixel graphics";
homepage = "https://github.com/hackerb9/lsix";
license = lib.licenses.gpl3Only;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [
justinlime
kidonng
];
mainProgram = "lsix";
};
})