From a8a948870445f0be77983b5ced7738c5df793a1c Mon Sep 17 00:00:00 2001 From: Elliot Date: Mon, 17 Apr 2023 14:33:18 +0800 Subject: [PATCH] ots: init at 0.2.0 --- pkgs/tools/security/ots/default.nix | 25 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/tools/security/ots/default.nix diff --git a/pkgs/tools/security/ots/default.nix b/pkgs/tools/security/ots/default.nix new file mode 100644 index 00000000000..47d53e741cc --- /dev/null +++ b/pkgs/tools/security/ots/default.nix @@ -0,0 +1,25 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "ots"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "sniptt-official"; + repo = pname; + rev = "v${version}"; + sha256 = "Oxs2ytf0rY9QYzVaLUkqyX15oWjas3ukSkq9D1TYbDE="; + }; + + vendorSha256 = "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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7cf53d7b398..46036a2c76e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -659,6 +659,8 @@ with pkgs; oletools = with python3.pkgs; toPythonApplication oletools; + ots = callPackage ../tools/security/ots { }; + credential-detector = callPackage ../tools/security/credential-detector { }; credslayer = callPackage ../tools/security/credslayer { };