1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "ots";
5 version = "0.2.0";
6
7 src = fetchFromGitHub {
8 owner = "sniptt-official";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "Oxs2ytf0rY9QYzVaLUkqyX15oWjas3ukSkq9D1TYbDE=";
12 };
13
14 vendorSha256 = "qYk8T0sYIO0wJ0R0j+0VetCy11w8usIRRdBm/Z6grJE=";
15
16 ldflags = [ "-X main.version=${version}" "-X main.buildSource=nix" ];
17
18 meta = with lib; {
19 description = "Share end-to-end encrypted secrets with others via a one-time URL";
20 homepage = "https://ots.sniptt.com";
21 changelog = "https://github.com/sniptt-official/ots/releases/tag/v${version}";
22 license = licenses.asl20;
23 maintainers = with maintainers; [ elliot ];
24 };
25}