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

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

26 lines
575 B
Nix
Raw Normal View History

2022-11-14 00:43:24 +01:00
{ lib
, buildGoModule
, fetchFromGitHub
2022-11-14 00:43:24 +01:00
}:
buildGoModule rec {
pname = "enumer";
version = "1.5.8";
2022-11-14 00:43:24 +01:00
src = fetchFromGitHub {
owner = "dmarkham";
repo = "enumer";
rev = "refs/tags/v${version}";
hash = "sha256-+YTsXYWVmJ32V/Eptip3WAiqIYv+6nqbdph0K2XzLdc=";
2022-11-14 00:43:24 +01:00
};
vendorHash = "sha256-+dCitvPz2JUbybXVJxUOo1N6+SUPCSjlacL8bTSlb7w=";
2022-11-14 00:43:24 +01:00
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 ];
};
}