about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/security/ots/default.nix
blob: bba9e8e6fb89d6b996173d4bb3023e96deebf37f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
  pname = "ots";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "sniptt-official";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-Oxs2ytf0rY9QYzVaLUkqyX15oWjas3ukSkq9D1TYbDE=";
  };

  vendorHash = "sha256-qYk8T0sYIO0wJ0R0j+0VetCy11w8usIRRdBm/Z6grJE=";

  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";
    homepage = "https://ots.sniptt.com";
    changelog = "https://github.com/sniptt-official/ots/releases/tag/v${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ elliot ];
  };
}