2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
2023-04-12 12:48:02 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gut";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.3.0";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "julien040";
|
|
|
|
repo = "gut";
|
|
|
|
rev = version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-l7yjZEcpsnVisd93EqIug1n0k18m4tUmCQFXC6b63cg=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
vendorHash = "sha256-G9oDMHLmdv/vQfofTqKAf21xaGp+lvW+sedLmaj+A5A=";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X github.com/julien040/gut/src/telemetry.gutVersion=${version}" ];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
# Depends on `/home` existing
|
2023-04-12 12:48:02 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Alternative git CLI";
|
2023-11-16 04:20:00 +00:00
|
|
|
homepage = "https://gut-cli.dev";
|
|
|
|
license = licenses.mit;
|
2024-01-25 14:12:00 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "gut";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
}
|