default.nix (563B)
1 { stdenv, lib, buildGoModule, fetchFromGitHub }: 2 3 buildGoModule rec { 4 name = "athens-${version}"; 5 version = "0.11.0"; 6 rev = "v${version}"; 7 8 subPackages = [ "cmd/proxy" ]; 9 10 src = fetchFromGitHub { 11 inherit rev; 12 owner = "gomods"; 13 repo = "athens"; 14 sha256 = "sha256-hkewZ21ElkoDsbPPiCZNmWu4MBlKTlnrK72/xCX06Sk="; 15 }; 16 vendorHash = "Hash-9iwT+PE54zy+DCJLb9R2YOXVYPqy3UGs+ro/2JoAFDU="; 17 18 meta = { 19 description = "a Go module datastore and proxy"; 20 homepage = "https://github.com/godmods/athens"; 21 license = lib.licenses.mit; 22 }; 23 }