mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
27 lines
586 B
Nix
27 lines
586 B
Nix
|
{ 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 ];
|
||
|
};
|
||
|
}
|