2023-06-27 04:35:52 +02:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2023-07-01 23:53:09 +02:00
|
|
|
, testers
|
|
|
|
, tailer
|
2023-06-27 04:35:52 +02:00
|
|
|
}:
|
|
|
|
|
2023-07-01 23:51:55 +02:00
|
|
|
buildGoModule rec {
|
2023-06-27 04:35:52 +02:00
|
|
|
pname = "tailer";
|
2023-07-01 23:51:55 +02:00
|
|
|
version = "0.1.1";
|
2023-06-27 04:35:52 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hionay";
|
|
|
|
repo = "tailer";
|
2023-07-01 23:51:55 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-gPezz2ksqdCffgdAHwU2NMTar2glp5YGfA5C+tMYPtE=";
|
2023-06-27 04:35:52 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorHash = "sha256-nQqSvfN+ed/g5VkbD6XhZNA1G3CGGfwFDdadJ5+WoD0=";
|
|
|
|
|
2023-07-01 23:51:55 +02:00
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X=main.version=${version}"
|
|
|
|
];
|
2023-06-27 04:35:52 +02:00
|
|
|
|
2023-07-01 23:53:09 +02:00
|
|
|
passthru.tests = {
|
|
|
|
version = testers.testVersion {
|
|
|
|
package = tailer;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-06-27 04:35:52 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A CLI tool to insert lines when command output stops";
|
|
|
|
homepage = "https://github.com/hionay/tailer";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "tailer";
|
2023-06-27 04:35:52 +02:00
|
|
|
};
|
|
|
|
}
|