2023-11-02 09:59:03 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2023-04-01 19:23:32 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gut";
|
2023-11-02 09:59:03 +00:00
|
|
|
version = "0.3.0";
|
2023-04-01 19:23:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "julien040";
|
|
|
|
repo = "gut";
|
|
|
|
rev = version;
|
2023-11-02 09:59:03 +00:00
|
|
|
hash = "sha256-l7yjZEcpsnVisd93EqIug1n0k18m4tUmCQFXC6b63cg=";
|
2023-04-01 19:23:32 +00:00
|
|
|
};
|
|
|
|
|
2023-11-02 09:59:03 +00:00
|
|
|
vendorHash = "sha256-G9oDMHLmdv/vQfofTqKAf21xaGp+lvW+sedLmaj+A5A=";
|
2023-04-01 19:23:32 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X github.com/julien040/gut/src/telemetry.gutVersion=${version}" ];
|
|
|
|
|
2023-06-23 12:43:39 +00:00
|
|
|
# Depends on `/home` existing
|
2023-04-01 19:23:32 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
2023-11-02 09:59:03 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Alternative git CLI";
|
|
|
|
homepage = "https://gut-cli.dev";
|
|
|
|
license = licenses.mit;
|
2024-07-28 14:44:11 +00:00
|
|
|
maintainers = [ ];
|
2023-11-27 01:17:53 +00:00
|
|
|
mainProgram = "gut";
|
2023-04-01 19:23:32 +00:00
|
|
|
};
|
|
|
|
}
|