From d34d237a728d161da7ce1ee0a39367f251178a33 Mon Sep 17 00:00:00 2001 From: Krisztian Szabo Date: Fri, 18 Nov 2022 10:42:55 +0100 Subject: [PATCH 1/2] maintainainers: add thenonameguy --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index f4ee00d4544..793fa7f83b4 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -13538,6 +13538,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"; From d26d3c6cf0b7154687c9fab32c02d493c1774845 Mon Sep 17 00:00:00 2001 From: Krisztian Szabo Date: Sun, 23 Oct 2022 14:44:59 +0200 Subject: [PATCH 2/2] sftpgo: init at 2.4.0 --- pkgs/servers/sftpgo/default.nix | 52 +++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 56 insertions(+) create mode 100644 pkgs/servers/sftpgo/default.nix diff --git a/pkgs/servers/sftpgo/default.nix b/pkgs/servers/sftpgo/default.nix new file mode 100644 index 00000000000..f59c0b6cc3c --- /dev/null +++ b/pkgs/servers/sftpgo/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9ef2108e841..61f38367a8f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11241,6 +11241,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 { };