depot/third_party/nixpkgs/pkgs/tools/misc/asciinema-agg/default.nix
Default email 87f9c27ba9 Project import generated by Copybara.
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
2023-04-12 14:48:02 +02:00

31 lines
820 B
Nix

{ lib, rustPlatform, fetchFromGitHub, stdenv, Security }:
rustPlatform.buildRustPackage rec {
pname = "agg";
version = "1.4.0";
src = fetchFromGitHub {
owner = "asciinema";
repo = pname;
rev = "v${version}";
sha256 = "sha256-QZtsL4siO/ydumHiJX9ely+04OKyEZ8ak/KFwDhU7q8=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"avt-0.5.1" = "sha256-AhOhmWxrMCyEKSLU/CDOoyCS12wQqBIaEjZd6oUsKHU=";
};
};
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";
license = licenses.asl20;
maintainers = with maintainers; [ figsoda ];
};
}