1 { lib, stdenv, imagemagick, ffmpeg, rustPlatform, fetchFromGitHub, makeWrapper
2 , libiconv, Foundation }:
5 binPath = lib.makeBinPath [
10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
18 sha256 = "sha256-o1fO0N65L6Z6W6aBNhS5JqDHIc1MRQx0yECGzVSCsbo=";
21 nativeBuildInputs = [ makeWrapper ];
22 buildInputs = [ imagemagick ]
23 ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv Foundation ];
26 wrapProgram "$out/bin/t-rec" --prefix PATH : "${binPath}"
29 cargoHash = "sha256-3NExPlHNcoYVkpOzWCyd66chJpeDzQLRJUruSLAwGNw=";
32 description = "Blazingly fast terminal recorder that generates animated gif images for the web written in rust";
33 homepage = "https://github.com/sassman/t-rec-rs";
34 license = with licenses; [ gpl3Only ];
35 maintainers = with maintainers; [ hoverbear matthiasbeyer ];
36 mainProgram = "t-rec";