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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
617 B
Nix
Raw Normal View History

2021-09-14 16:36:23 +02:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "viddy";
2022-07-31 07:19:59 +02:00
version = "0.3.6";
2021-09-14 16:36:23 +02:00
src = fetchFromGitHub {
owner = "sachaos";
repo = pname;
rev = "v${version}";
2022-07-31 07:19:59 +02:00
sha256 = "sha256-AcRfKu6P7b/HsuC6DTezbYLI9rQZwjklH/bs7mKITUk=";
2021-09-14 16:36:23 +02:00
};
2022-07-31 07:19:59 +02:00
vendorSha256 = "sha256-QxYM4N3E/BqmeNaofLR1crwFLVaF3IigDXKlKA2Bkuw=";
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 ];
};
}