Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 46 lines 952 B view raw
1{ 2 lib, 3 stdenvNoCC, 4 fetchFromGitHub, 5 makeWrapper, 6 imagemagick, 7}: 8 9stdenvNoCC.mkDerivation (finalAttrs: { 10 pname = "lsix"; 11 version = "1.9.1"; 12 13 src = fetchFromGitHub { 14 owner = "hackerb9"; 15 repo = "lsix"; 16 rev = finalAttrs.version; 17 sha256 = "sha256-msTG7otjzksg/2XyPDy31LEb7uGXSgB8fzfHvad9nPA="; 18 }; 19 20 nativeBuildInputs = [ makeWrapper ]; 21 22 installPhase = '' 23 runHook preInstall 24 25 install -Dm755 lsix -t $out/bin 26 27 runHook postInstall 28 ''; 29 30 postFixup = '' 31 wrapProgram $out/bin/lsix \ 32 --prefix PATH : ${lib.makeBinPath [ (imagemagick.override { ghostscriptSupport = true; }) ]} 33 ''; 34 35 meta = with lib; { 36 description = "Shows thumbnails in terminal using sixel graphics"; 37 homepage = "https://github.com/hackerb9/lsix"; 38 license = licenses.gpl3Only; 39 platforms = platforms.all; 40 maintainers = with maintainers; [ 41 justinlime 42 kidonng 43 ]; 44 mainProgram = "lsix"; 45 }; 46})