depot/third_party/nixpkgs/pkgs/by-name/te/termshot/package.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

32 lines
720 B
Nix

{
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";
};
}