Merge pull request #121699 from Hoverbear/t-rec

t-rec: init at 0.5.2
This commit is contained in:
Aaron Andersen
2021-05-08 08:15:42 -04:00
committed by GitHub
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
{ lib, imagemagick, ffmpeg, rustPlatform, fetchFromGitHub, makeWrapper }:
let
binPath = lib.makeBinPath [
imagemagick
ffmpeg
];
in
rustPlatform.buildRustPackage rec {
pname = "t-rec";
version = "0.6.0";
src = fetchFromGitHub {
owner = "sassman";
repo = "t-rec-rs";
rev = "v${version}";
sha256 = "InArrBqfhDrsonjmCIPTBVOA/s2vYml9Ay6cdrKLd7c=";
};
buildInputs = [ imagemagick ];
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
wrapProgram "$out/bin/t-rec" --prefix PATH : "${binPath}"
'';
cargoSha256 = "4gwfrC65YlXV6Wu2ninK1TvMNUkY1GstVYPr0FK+xLU=";
meta = with lib; {
description = "Blazingly fast terminal recorder that generates animated gif images for the web written in rust";
homepage = "https://github.com/sassman/t-rec-rs";
license = with licenses; [ gpl3Only ];
maintainers = [ maintainers.hoverbear ];
};
}