Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "enumer";
9 version = "1.5.11";
10
11 src = fetchFromGitHub {
12 owner = "dmarkham";
13 repo = "enumer";
14 tag = "v${version}";
15 hash = "sha256-zFx4Djar2nC/kanoEkmHTumon2MwKMsoZU6/heUPW2I=";
16 };
17
18 vendorHash = "sha256-w9T9PWMJjBJP2MmhGC7e78zbszgCwtVrfO5AQlu/ugQ=";
19
20 meta = with lib; {
21 description = "Go tool to auto generate methods for enums";
22 homepage = "https://github.com/dmarkham/enumer";
23 license = licenses.bsd2;
24 maintainers = with maintainers; [ hexa ];
25 mainProgram = "enumer";
26 };
27}