diff --git a/pkgs/by-name/co/cocoon/package.nix b/pkgs/by-name/co/cocoon/package.nix new file mode 100644 index 000000000000..35948e1380cb --- /dev/null +++ b/pkgs/by-name/co/cocoon/package.nix @@ -0,0 +1,36 @@ +{ + lib, + buildGoModule, + fetchFromGitHub, + nix-update-script, +}: +buildGoModule (finalAttrs: { + pname = "cocoon"; + version = "0.5.0"; + + src = fetchFromGitHub { + owner = "haileyok"; + repo = "cocoon"; + tag = finalAttrs.version; + hash = "sha256-9gJj+edTGkQsHH72F2f7A6EWDet+k38+8UZ1KN2UGT0="; + }; + + ldflags = [ + "-s" + "-w" + "-X main.Version=${finalAttrs.version}" + ]; + + vendorHash = "sha256-5WnME+AVrXfvHX2yPbFoL6QgZoCMAJmBj47OM7miOfc="; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "ATProtocol Personal Data Server written in Go with a SQLite block and blob store"; + changelog = "https://github.com/haileyok/cocoon/releases/${finalAttrs.version}"; + homepage = "https://github.com/haileyok/cocoon"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ isabelroses ]; + mainProgram = "cocoon"; + }; +})