Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenvNoCC, fetchFromGitHub, makeWrapper, imagemagick }: 2 3stdenvNoCC.mkDerivation rec { 4 pname = "lsix"; 5 version = "1.8"; 6 7 src = fetchFromGitHub { 8 owner = "hackerb9"; 9 repo = pname; 10 rev = version; 11 sha256 = "sha256-Qx6/PFm1XBmEI6iI+Ref9jNe6sXIhsVL4VQ1CX+caZE="; 12 }; 13 14 nativeBuildInputs = [ makeWrapper ]; 15 16 installPhase = '' 17 runHook preInstall 18 19 install -Dm755 lsix -t $out/bin 20 21 runHook postInstall 22 ''; 23 24 postFixup = '' 25 wrapProgram $out/bin/lsix \ 26 --prefix PATH : ${lib.makeBinPath [ imagemagick ]} 27 ''; 28 29 meta = with lib; { 30 description = "Shows thumbnails in terminal using sixel graphics"; 31 homepage = "https://github.com/hackerb9/lsix"; 32 license = licenses.gpl3Only; 33 platforms = platforms.all; 34 maintainers = with maintainers; [ kidonng ]; 35 }; 36}