From a580d5ab33d848ab27eda47917b8c9c680abf967 Mon Sep 17 00:00:00 2001 From: Defelo Date: Thu, 9 Nov 2023 09:37:44 +0100 Subject: [PATCH] termshot: init at 0.2.7 --- pkgs/by-name/te/termshot/package.nix | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkgs/by-name/te/termshot/package.nix diff --git a/pkgs/by-name/te/termshot/package.nix b/pkgs/by-name/te/termshot/package.nix new file mode 100644 index 000000000000..b44f6ec906f3 --- /dev/null +++ b/pkgs/by-name/te/termshot/package.nix @@ -0,0 +1,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"; + }; +}