nixpkgs/pkgs/by-name/gu/gut/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
733 B
Nix
Raw Normal View History

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;
maintainers = [ ];
2023-11-27 01:17:53 +00:00
mainProgram = "gut";
2023-04-01 19:23:32 +00:00
};
}