2022-09-26 22:58:50 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "agg";
|
2023-06-11 13:40:36 +00:00
|
|
|
version = "1.4.2";
|
2022-09-26 22:58:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "asciinema";
|
2023-06-11 13:40:36 +00:00
|
|
|
repo = "agg";
|
2022-09-26 22:58:50 +00:00
|
|
|
rev = "v${version}";
|
2023-06-11 13:40:36 +00:00
|
|
|
sha256 = "sha256-pyXGWSL2HnRfcLo1V/pFKNI08B51ZvmJsYhl893CUl0=";
|
2022-09-26 22:58:50 +00:00
|
|
|
};
|
|
|
|
|
2023-03-25 23:16:46 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2023-04-13 19:06:57 +00:00
|
|
|
"avt-0.6.0" = "sha256-JA1Ln90Pew6m5YOZp8weOC9JdKJqjFG0PDPNL2kDWUc=";
|
2023-03-25 23:16:46 +00:00
|
|
|
};
|
|
|
|
};
|
2022-09-26 22:58:50 +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-06-11 13:40:36 +00:00
|
|
|
changelog = "https://github.com/asciinema/agg/releases/tag/${src.rev}";
|
2022-09-26 22:58:50 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
};
|
|
|
|
}
|