depot/third_party/nixpkgs/pkgs/by-name/sn/snips-sh/package.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

33 lines
848 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
sqlite,
libtensorflow,
withTensorflow ? false,
}:
buildGoModule rec {
pname = "snips-sh";
version = "0.4.1";
vendorHash = "sha256-weqlhnhUG2gn9SFS63q1LYmPa7liGYYcJN5qorj6x2E=";
src = fetchFromGitHub {
owner = "robherley";
repo = "snips.sh";
rev = "v${version}";
hash = "sha256-FEo2/TPwes8/Iwfp7OIo1HbLWF9xmVS9ZMC9HysyK/k=";
};
tags = (lib.optional (!withTensorflow) "noguesser");
buildInputs = [ sqlite ] ++ (lib.optional withTensorflow libtensorflow);
meta = {
description = "passwordless, anonymous SSH-powered pastebin with a human-friendly TUI and web UI";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
homepage = "https://snips.sh";
maintainers = with lib.maintainers; [ jeremiahs ];
mainProgram = "snips.sh";
};
}