forked from mirrors/nixpkgs
termshot: init at 0.2.7
This commit is contained in:
parent
9688941fd6
commit
a580d5ab33
32
pkgs/by-name/te/termshot/package.nix
Normal file
32
pkgs/by-name/te/termshot/package.nix
Normal file
|
@ -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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue