nixpkgs/pkgs/tools/security/ots/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

27 lines
759 B
Nix

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