Skip to content

Commit

Permalink
Merge pull request NixOS#332131 from pbsds/init-termsvg-1722734162
Browse files Browse the repository at this point in the history
termsvg: init at 0.9.2
  • Loading branch information
pbsds authored Aug 7, 2024
2 parents 63a3de2 + eb14616 commit 9942b13
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions pkgs/by-name/te/termsvg/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
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";
};
}

0 comments on commit 9942b13

Please sign in to comment.