3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/t-rec/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1,004 B
Nix
Raw Normal View History

2021-05-18 18:40:21 +01:00
{ lib, stdenv, imagemagick, ffmpeg, rustPlatform, fetchFromGitHub, makeWrapper
, libiconv, Foundation }:
let
binPath = lib.makeBinPath [
imagemagick
ffmpeg
];
in
rustPlatform.buildRustPackage rec {
pname = "t-rec";
2022-03-21 19:20:06 +00:00
version = "0.7.3";
src = fetchFromGitHub {
owner = "sassman";
repo = "t-rec-rs";
rev = "v${version}";
2022-03-21 19:20:06 +00:00
sha256 = "sha256-rVlNyvSeiQbauf8CREJDmb02wv6b/4IeOerRCRWVQVA=";
};
nativeBuildInputs = [ makeWrapper ];
2021-05-18 18:40:21 +01:00
buildInputs = [ imagemagick ]
++ lib.optionals stdenv.isDarwin [ libiconv Foundation ];
postInstall = ''
wrapProgram "$out/bin/t-rec" --prefix PATH : "${binPath}"
'';
2022-03-21 19:20:06 +00:00
cargoSha256 = "sha256-pcdvEHxqU6ZJwcsbnQEd9M0waK7y4aluYEpLIlZoK/s=";
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 ];
};
}