mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
Merge pull request #197368 from thenonameguy/sftpgo
sftpgo: init at 2.4.0
This commit is contained in:
commit
30eddf1dfb
@ -13680,6 +13680,12 @@
|
||||
githubId = 3105057;
|
||||
name = "Jan Beinke";
|
||||
};
|
||||
thenonameguy = {
|
||||
email = "thenonameguy24@gmail.com";
|
||||
name = "Krisztian Szabo";
|
||||
github = "thenonameguy";
|
||||
githubId = 2217181;
|
||||
};
|
||||
therealansh = {
|
||||
email = "tyagiansh23@gmail.com";
|
||||
github = "therealansh";
|
||||
|
52
pkgs/servers/sftpgo/default.nix
Normal file
52
pkgs/servers/sftpgo/default.nix
Normal file
@ -0,0 +1,52 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "sftpgo";
|
||||
version = "2.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "drakkan";
|
||||
repo = "sftpgo";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-A4+YmChUPn+6P0rBuzYcABXyjXRZWY5KS1YcFZHCrYo=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-kwluXCkbclrfRsrdqSxb5+TCBpVPZmDmrbpzR+yuQdQ=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/drakkan/sftpgo/v2/internal/version.commit=${src.rev}"
|
||||
"-X github.com/drakkan/sftpgo/v2/internal/version.date=1970-01-01T00:00:00Z"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
postInstall = ''
|
||||
$out/bin/sftpgo gen man
|
||||
installManPage man/*.1
|
||||
|
||||
installShellCompletion --cmd sftpgo \
|
||||
--bash <($out/bin/sftpgo gen completion bash) \
|
||||
--zsh <($out/bin/sftpgo gen completion zsh) \
|
||||
--fish <($out/bin/sftpgo gen completion fish)
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/drakkan/sftpgo";
|
||||
description = "Fully featured and highly configurable SFTP server";
|
||||
longDescription = ''
|
||||
Fully featured and highly configurable SFTP server
|
||||
with optional HTTP/S, FTP/S and WebDAV support.
|
||||
Several storage backends are supported:
|
||||
local filesystem, encrypted local filesystem, S3 (compatible) Object Storage,
|
||||
Google Cloud Storage, Azure Blob Storage, SFTP.
|
||||
'';
|
||||
license = lib.licenses.agpl3Only;
|
||||
maintainers = with lib.maintainers; [ thenonameguy ];
|
||||
};
|
||||
}
|
@ -11318,6 +11318,10 @@ with pkgs;
|
||||
|
||||
sftpman = callPackage ../tools/filesystems/sftpman { };
|
||||
|
||||
sftpgo = callPackage ../servers/sftpgo {
|
||||
buildGoModule = buildGo119Module;
|
||||
};
|
||||
|
||||
screenfetch = callPackage ../tools/misc/screenfetch { };
|
||||
|
||||
sg3_utils = callPackage ../tools/system/sg3_utils { };
|
||||
|
Loading…
Reference in New Issue
Block a user