nixpkgs-suyu/pkgs/tools/misc/viddy/default.nix

30 lines
617 B
Nix
Raw Normal View History

2021-09-14 16:36:23 +02:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "viddy";
2021-12-06 09:06:58 +01:00
version = "0.3.4";
2021-09-14 16:36:23 +02:00
src = fetchFromGitHub {
owner = "sachaos";
repo = pname;
rev = "v${version}";
2021-12-06 09:06:58 +01:00
sha256 = "sha256-V/x969wi5u5ND9QgJfc4vtI2t1G1ETlATzeqnpHMncc=";
2021-09-14 16:36:23 +02:00
};
2022-01-31 01:36:16 +01:00
vendorSha256 = "sha256-LtRHnZF0ynnIp77K9anljqq42BumXohDMwlU7hzSxZk=";
2021-09-14 16:36:23 +02:00
ldflags = [
"-s"
"-w"
"-X"
"main.version=${version}"
];
meta = with lib; {
description = "A modern watch command";
homepage = "https://github.com/sachaos/viddy";
license = licenses.mit;
maintainers = with maintainers; [ j-hui ];
};
}