mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 22:38:06 +00:00
snips-sh: init at 0.4.0
This commit is contained in:
parent
b6cf41ad8d
commit
62d918d66f
33
pkgs/by-name/sn/snips-sh/package.nix
Normal file
33
pkgs/by-name/sn/snips-sh/package.nix
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
sqlite,
|
||||
libtensorflow,
|
||||
withTensorflow ? false,
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "snips-sh";
|
||||
version = "0.4.0";
|
||||
vendorHash = "sha256-u2f9aHUrfuM4ZsTWA955sCkgcGBFlNhEU2Qlq2C2Kso=";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "robherley";
|
||||
repo = "snips.sh";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-gfZFLlTFofYQ72rQjgB8g012vbxFjk8bLYTVJwZNgMs=";
|
||||
};
|
||||
|
||||
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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user