2024-06-05 15:53:02 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ets";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.3.0";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-05-15 15:35:15 +00:00
|
|
|
owner = "gdubicki";
|
|
|
|
repo = "ets";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-PowJ3ig8TfGx9P/PJPVBL8GsMh+gGZVt9l4Rf7Mqk00=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
vendorHash = "sha256-XHgdiXdp9aNEAc/Apvb64ExnpywjddWOw1scNKy+ico=";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X main.version=v${version}-nixpkgs" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
rm -rf fixtures
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage ets.1
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Command output timestamper";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://github.com/gdubicki/ets/";
|
2022-05-18 14:49:53 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ cameronfyfe ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "ets";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
}
|