Unverified Commit a8f92371 authored by Fernando Rodrigues's avatar Fernando Rodrigues Committed by GitHub
Browse files

asciinema-agg: refactor and adopt (#458553)

parents 10abffd2 0e83a63f
Loading
Loading
Loading
Loading
+12 −7
Original line number Diff line number Diff line
@@ -2,16 +2,17 @@
  lib,
  rustPlatform,
  fetchFromGitHub,
  versionCheckHook,
}:

rustPlatform.buildRustPackage rec {
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "agg";
  version = "1.7.0";

  src = fetchFromGitHub {
    owner = "asciinema";
    repo = "agg";
    rev = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-6UenPE6mmmvliaIuGdQj/FrlmoJvmBJgfo0hW+uRaxM=";
  };

@@ -19,12 +20,16 @@ rustPlatform.buildRustPackage rec {

  cargoHash = "sha256-VpbjvrMhzS1zrcMNWBjTLda6o3ea2cwpnEDUouwyp8w=";

  meta = with lib; {
  doInstallCheck = true;
  nativeInstallCheckInputs = [ versionCheckHook ];
  versionCheckProgramArg = "--version";

  meta = {
    description = "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 = [ ];
    changelog = "https://github.com/asciinema/agg/releases/tag/${finalAttrs.src.tag}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ phanirithvij ];
    mainProgram = "agg";
  };
}
})