forked from mirrors/nixpkgs
fastly: add changelog to meta
This commit is contained in:
parent
de9055931b
commit
925a64a3c9
|
@ -1,4 +1,10 @@
|
|||
{ lib, fetchurl, fetchFromGitHub, installShellFiles, buildGoModule, go }:
|
||||
{ lib
|
||||
, fetchurl
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, buildGoModule
|
||||
, go
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "fastly";
|
||||
|
@ -7,8 +13,8 @@ buildGoModule rec {
|
|||
src = fetchFromGitHub {
|
||||
owner = "fastly";
|
||||
repo = "cli";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-82OZwO6r+wPq6AMm27M9U6dQyE3iOpAzW31HzRji5Fo=";
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue