1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "termsvg";
9 version = "0.9.3";
10
11 src = fetchFromGitHub {
12 owner = "mrmarble";
13 repo = "termsvg";
14 rev = "v${version}";
15 hash = "sha256-ejrg1UywPQDCeaymkGzU+xZoPXME6XEP/SBe3Yxf4YU=";
16 };
17
18 vendorHash = "sha256-BoXRLWhQmfvMIN658MiXGCFMbnvuXfv/H/jCE6h4aWk=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 "-X=main.version=${version}"
24 "-X=main.commit=${src.rev}"
25 "-X=main.date=1970-01-01T00:00:00Z"
26 ];
27
28 meta = with lib; {
29 description = "Record, share and export your terminal as a animated SVG image";
30 homepage = "https://github.com/mrmarble/termsvg";
31 license = licenses.gpl3Only;
32 maintainers = with maintainers; [ pbsds ];
33 mainProgram = "termsvg";
34 };
35}