depot/third_party/nixpkgs/pkgs/applications/version-management/gut/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

34 lines
751 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, nix-update-script
}:
buildGoModule rec {
pname = "gut";
version = "0.3.0";
src = fetchFromGitHub {
owner = "julien040";
repo = "gut";
rev = version;
hash = "sha256-l7yjZEcpsnVisd93EqIug1n0k18m4tUmCQFXC6b63cg=";
};
vendorHash = "sha256-G9oDMHLmdv/vQfofTqKAf21xaGp+lvW+sedLmaj+A5A=";
ldflags = [ "-s" "-w" "-X github.com/julien040/gut/src/telemetry.gutVersion=${version}" ];
# Depends on `/home` existing
doCheck = false;
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Alternative git CLI";
homepage = "https://gut-cli.dev";
license = licenses.mit;
maintainers = with maintainers; [ ];
mainProgram = "gut";
};
}