diff --git a/pkgs/misc/fastly/default.nix b/pkgs/misc/fastly/default.nix index 3fe7295738f3..843fa781c2e8 100644 --- a/pkgs/misc/fastly/default.nix +++ b/pkgs/misc/fastly/default.nix @@ -1,14 +1,20 @@ -{ lib, fetchurl, fetchFromGitHub, installShellFiles, buildGoModule, go }: +{ lib +, fetchurl +, fetchFromGitHub +, installShellFiles +, buildGoModule +, go +}: buildGoModule rec { pname = "fastly"; - version = "4.4.0"; + version = "4.4.1"; src = fetchFromGitHub { owner = "fastly"; repo = "cli"; - rev = "v${version}"; - sha256 = "sha256-i3X4VetosUD60QCztJFFRWwHb4kCIaB8MjrT8gA4dYw="; + rev = "refs/tags/v${version}"; + hash = "sha256-82OZwO6r+wPq6AMm27M9U6dQyE3iOpAzW31HzRji5Fo="; # The git commit is part of the `fastly version` original output; # leave that output the same in nixpkgs. Use the `.git` directory # to retrieve the commit SHA, and remove the directory afterwards, @@ -21,11 +27,15 @@ buildGoModule rec { ''; }; - subPackages = [ "cmd/fastly" ]; + subPackages = [ + "cmd/fastly" + ]; - vendorSha256 = "sha256-zilgzfPD7HmHt0/u94JLaY6NPvn1JjXFu1K2YO0tF9M="; + vendorHash = "sha256-zilgzfPD7HmHt0/u94JLaY6NPvn1JjXFu1K2YO0tF9M="; - nativeBuildInputs = [ installShellFiles ]; + nativeBuildInputs = [ + installShellFiles + ]; # Flags as provided by the build automation of the project: # https://github.com/fastly/cli/blob/7844f9f54d56f8326962112b5534e5c40e91bf09/.goreleaser.yml#L14-L18 @@ -56,8 +66,9 @@ buildGoModule rec { meta = with lib; { description = "Command line tool for interacting with the Fastly API"; - license = licenses.asl20; homepage = "https://github.com/fastly/cli"; + changelog = "https://github.com/fastly/cli/blob/v${version}/CHANGELOG.md"; + license = licenses.asl20; maintainers = with maintainers; [ ereslibre shyim ]; }; }