2023-04-29 16:46:19 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ots";
|
|
|
|
version = "0.2.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sniptt-official";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-Oxs2ytf0rY9QYzVaLUkqyX15oWjas3ukSkq9D1TYbDE=";
|
2023-04-29 16:46:19 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-qYk8T0sYIO0wJ0R0j+0VetCy11w8usIRRdBm/Z6grJE=";
|
2023-04-29 16:46:19 +00:00
|
|
|
|
|
|
|
ldflags = [ "-X main.version=${version}" "-X main.buildSource=nix" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Share end-to-end encrypted secrets with others via a one-time URL";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ots";
|
2023-04-29 16:46:19 +00:00
|
|
|
homepage = "https://ots.sniptt.com";
|
|
|
|
changelog = "https://github.com/sniptt-official/ots/releases/tag/v${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ elliot ];
|
|
|
|
};
|
|
|
|
}
|