about summary refs log tree commit diff
path: root/pkgs/by-name/te/termshot/package.nix
blob: b44f6ec906f36ab36601555ad1b65fbccc91f279 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  lib,
  fetchFromGitHub,
  buildGoModule,
}:
buildGoModule rec {
  pname = "termshot";
  version = "0.2.7";

  src = fetchFromGitHub {
    owner = "homeport";
    repo = "termshot";
    rev = "v${version}";
    hash = "sha256-Sxp6abYq0MrqtqDdpffSBdZB3/EyIMF9Ixsc7IgW5hI=";
  };

  vendorHash = "sha256-jzDbA1iN+1dbTVgKw228TuCV3eeAVmHFDiHd2qF/80E=";

  ldflags = [
    "-s"
    "-w"
    "-X github.com/homeport/termshot/internal/cmd.version=${version}"
  ];

  meta = {
    description = "Creates screenshots based on terminal command output";
    homepage = "https://github.com/homeport/termshot";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [defelo];
    mainProgram = "termshot";
  };
}