a211d94291
after https://github.com/Mic92/nix-update/pull/120 and https://github.com/NixOS/nixpkgs/pull/207703, `attrPath` can now be omitted when using `nix-update-script`
25 lines
643 B
Nix
25 lines
643 B
Nix
{ lib, nix-update-script, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "goda";
|
|
version = "0.5.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "loov";
|
|
repo = "goda";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-5MkErXgRJtaXbThJYjGWyvt+RAbtULTe0VoXKU3HQug=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-BYYuB4ZlCWD8NILkf4qrgM4q72ZTy7Ze3ICUXdoI5Ms=";
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/loov/goda";
|
|
description = "Go Dependency Analysis toolkit";
|
|
maintainers = with maintainers; [ michaeladler ];
|
|
license = licenses.mit;
|
|
mainProgram = "goda";
|
|
};
|
|
}
|