nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 33 lines 774 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "ots"; 9 version = "0.3.1"; 10 11 src = fetchFromGitHub { 12 owner = "sniptt-official"; 13 repo = "ots"; 14 rev = "v${version}"; 15 hash = "sha256-GOCuH9yiVs3N3sHCCoSGaQkaaJs4NY/klNBRWjZGLE4="; 16 }; 17 18 vendorHash = "sha256-fLElExANWdPCCqpCAofqp0kba/FsQEHEhlxOFaC/kZw="; 19 20 ldflags = [ 21 "-X main.version=${version}" 22 "-X main.buildSource=nix" 23 ]; 24 25 meta = { 26 description = "Share end-to-end encrypted secrets with others via a one-time URL"; 27 mainProgram = "ots"; 28 homepage = "https://ots.sniptt.com"; 29 changelog = "https://github.com/sniptt-official/ots/releases/tag/v${version}"; 30 license = lib.licenses.asl20; 31 maintainers = with lib.maintainers; [ elliot ]; 32 }; 33}