nixpkgs/pkgs/tools/misc/enumer/default.nix

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

27 lines
586 B
Nix
Raw Normal View History

2022-11-13 23:43:24 +00:00
{ lib
, stdenv
, fetchFromGitHub
, buildGoModule
}:
buildGoModule rec {
pname = "enumer";
version = "1.5.7";
src = fetchFromGitHub {
owner = "dmarkham";
repo = "enumer";
rev = "refs/tags/v${version}";
hash = "sha256-2fVWrrWOiCtg7I3Lul2PgQ2u/qDEDioPSB61Tp0rfEo=";
};
vendorSha256 = "sha256-BmFv0ytRnjaB7z7Gb+38Fw2ObagnaFMnMhlejhaGxsk=";
meta = with lib; {
description = "Go tool to auto generate methods for enums";
homepage = "https://github.com/dmarkham/enumer";
license = licenses.bsd2;
maintainers = with maintainers; [ hexa ];
};
}