2021-10-01 09:20:50 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "viddy";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.4.0";
|
2021-10-01 09:20:50 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sachaos";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-iF5b5e3HPT3GJLRDxz9wN1U5rO9Ey51Cpw4p2zjffTI=";
|
2021-10-01 09:20:50 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
vendorHash = "sha256-/lx2D2FIByRnK/097M4SQKRlmqtPTvbFo1dwbThJ5Fs=";
|
2021-10-01 09:20:50 +00: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 ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "viddy";
|
2021-10-01 09:20:50 +00:00
|
|
|
};
|
|
|
|
}
|