diff options
author | Kid <44045911+kidonng@users.noreply.github.com> | 2021-07-18 08:12:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-20 01:10:48 +0000 |
commit | 174d8c0d3f04511cf7e186ccf22cfb6d9787498d (patch) | |
tree | f3cceed2b34946427644a5206906b065c4f92c44 /pkgs/tools/graphics/lsix | |
parent | 8e4607f40ffe2a80e8431968ac72cf47e93b7c4c (diff) |
lsix: init at 1.7.4
Diffstat (limited to 'pkgs/tools/graphics/lsix')
-rw-r--r-- | pkgs/tools/graphics/lsix/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/lsix/default.nix b/pkgs/tools/graphics/lsix/default.nix new file mode 100644 index 0000000000000..ba07e2886b533 --- /dev/null +++ b/pkgs/tools/graphics/lsix/default.nix @@ -0,0 +1,36 @@ +{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper, imagemagick }: + +stdenvNoCC.mkDerivation rec { + pname = "lsix"; + version = "1.7.4"; + + src = fetchFromGitHub { + owner = "hackerb9"; + repo = pname; + rev = version; + sha256 = "sha256-mOueSNhf1ywG4k1kRODBaWRjy0L162BAO1HRPaMMbFM="; + }; + + nativeBuildInputs = [ makeWrapper ]; + + installPhase = '' + runHook preInstall + + install -Dm755 lsix -t $out/bin + + runHook postInstall + ''; + + postFixup = '' + wrapProgram $out/bin/lsix \ + --prefix PATH : ${lib.makeBinPath [ imagemagick ]} + ''; + + meta = with lib; { + description = "Shows thumbnails in terminal using sixel graphics"; + homepage = "https://github.com/hackerb9/lsix"; + license = licenses.gpl3Only; + platforms = platforms.all; + maintainers = with maintainers; [ kidonng ]; + }; +} |