mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 02:33:25 +00:00
33 lines
720 B
Nix
33 lines
720 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "termshot";
|
|
version = "0.2.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "homeport";
|
|
repo = "termshot";
|
|
rev = "v${version}";
|
|
hash = "sha256-cCtae2O9P9czivNVcytJKz3tQ41TaqokZcTOwt2v6jk=";
|
|
};
|
|
|
|
vendorHash = "sha256-ji2B9Gr1oQGouGH2hBpTyfjbht6bRfIeLcdTBhmmIwk=";
|
|
|
|
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";
|
|
};
|
|
}
|