depot/third_party/nixpkgs/pkgs/by-name/te/termsnap/package.nix

28 lines
619 B
Nix
Raw Normal View History

{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "termsnap";
version = "0.4.0";
src = fetchFromGitHub {
owner = "tomcur";
repo = "termsnap";
rev = "termsnap-v${version}";
hash = "sha256-bYqhrMmgkEAiA1eiDbIOwH/PktwtIfxmYJRwDrFsNIc=";
};
cargoHash = "sha256-Q1FTVaFZzJJNQg6FDOaPpRCpPgw2EPQsnb8o6dSoVWw=";
meta = with lib; {
description = "Create SVGs from terminal output";
homepage = "https://github.com/tomcur/termsnap";
license = licenses.mit;
maintainers = with maintainers; [ yash-garg ];
mainProgram = "termsnap";
};
}