depot/pkgs/by-name/te/termsvg/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

35 lines
770 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "termsvg";
version = "0.9.2";
src = fetchFromGitHub {
owner = "mrmarble";
repo = "termsvg";
rev = "v${version}";
hash = "sha256-q6xjsoxQTIQwPYkBTGwLfTt1VQ8GJPdsiP5dvTyEBIw=";
};
vendorHash = "sha256-HhJcf+NwM1h0Hh76LU/cddaLoCaQdyuKLSvDFmiKEEg=";
ldflags = [
"-s"
"-w"
"-X=main.version=${version}"
"-X=main.commit=${src.rev}"
"-X=main.date=1970-01-01T00:00:00Z"
];
meta = with lib; {
description = "Record, share and export your terminal as a animated SVG image";
homepage = "https://github.com/mrmarble/termsvg";
license = licenses.gpl3Only;
maintainers = with maintainers; [ pbsds ];
mainProgram = "termsvg";
};
}