2022-09-30 11:47:45 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "agg";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.4.3";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "asciinema";
|
2023-07-15 17:15:38 +00:00
|
|
|
repo = "agg";
|
2022-09-30 11:47:45 +00:00
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-WCUYnveTWWQOzhIViMkSnyQ6vgLs5HDLWa/xvfZMh3A=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2023-10-09 19:29:22 +00:00
|
|
|
"avt-0.8.0" = "sha256-5IN8P/2UWJ2EmkbbTSGWECTqiD8TeOd8LgwLZ+W2z90=";
|
2023-03-27 19:17:25 +00:00
|
|
|
};
|
|
|
|
};
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
Security
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A command-line tool for generating animated GIF files from asciicast v2 files produced by asciinema terminal recorder";
|
|
|
|
homepage = "https://github.com/asciinema/agg";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/asciinema/agg/releases/tag/${src.rev}";
|
2022-09-30 11:47:45 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|