depot/third_party/nixpkgs/pkgs/tools/misc/asciinema-agg/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

33 lines
921 B
Nix

{ lib, rustPlatform, fetchFromGitHub, stdenv, Security }:
rustPlatform.buildRustPackage rec {
pname = "agg";
version = "1.4.3";
src = fetchFromGitHub {
owner = "asciinema";
repo = "agg";
rev = "v${version}";
sha256 = "sha256-WCUYnveTWWQOzhIViMkSnyQ6vgLs5HDLWa/xvfZMh3A=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"avt-0.8.0" = "sha256-5IN8P/2UWJ2EmkbbTSGWECTqiD8TeOd8LgwLZ+W2z90=";
};
};
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";
changelog = "https://github.com/asciinema/agg/releases/tag/${src.rev}";
license = licenses.asl20;
maintainers = with maintainers; [ figsoda ];
mainProgram = "agg";
};
}