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

28 lines
621 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "termsnap";
version = "0.3.0";
src = fetchFromGitHub {
owner = "tomcur";
repo = "termsnap";
rev = "termsnap-v${version}";
sha256 = "sha256-FTgbbiDlHXGjkv3a2TAxjAqdClWkuteyUrtjQ8fMSIs=";
};
cargoHash = "sha256-hXlRkqcMHFEAnm883Q8sR8gcEbSNMutoJQsMW2M5wOY=";
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";
};
}