diff --git a/pkgs/servers/sftpgo/default.nix b/pkgs/servers/sftpgo/default.nix index 1bf14be196bc..6af33c31dbf8 100644 --- a/pkgs/servers/sftpgo/default.nix +++ b/pkgs/servers/sftpgo/default.nix @@ -1,4 +1,8 @@ -{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: +{ lib +, buildGoModule +, fetchFromGitHub +, installShellFiles +}: buildGoModule rec { pname = "sftpgo"; @@ -7,8 +11,8 @@ buildGoModule rec { src = fetchFromGitHub { owner = "drakkan"; repo = "sftpgo"; - rev = "v${version}"; - sha256 = "sha256-bI4IiYzVorocITkip+Xev3t7vGeMVmqCZn7oR1mAPpI="; + rev = "refs/tags/v${version}"; + hash = "sha256-bI4IiYzVorocITkip+Xev3t7vGeMVmqCZn7oR1mAPpI="; }; vendorHash = "sha256-+i6jUImDMrsDnIPjIp8uM2BR1IYMqWG1OmvA2w/AfVQ="; @@ -36,8 +40,9 @@ buildGoModule rec { --fish <($out/bin/sftpgo gen completion fish) ''; - meta = { + meta = with lib; { homepage = "https://github.com/drakkan/sftpgo"; + changelog = "https://github.com/drakkan/sftpgo/releases/tag/v${version}"; description = "Fully featured and highly configurable SFTP server"; longDescription = '' Fully featured and highly configurable SFTP server @@ -46,7 +51,7 @@ buildGoModule rec { 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 ]; + license = licenses.agpl3Only; + maintainers = with maintainers; [ thenonameguy ]; }; }