Merge pull request #215185 from ereslibre/bump-fastly-6.0.0

fastly: 5.1.1 -> 6.0.0
This commit is contained in:
Weijia Wang 2023-02-08 05:01:11 +01:00 committed by GitHub
commit bf4c84ec06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,13 +8,13 @@
buildGoModule rec {
pname = "fastly";
version = "5.1.1";
version = "6.0.0";
src = fetchFromGitHub {
owner = "fastly";
repo = "cli";
rev = "refs/tags/v${version}";
hash = "sha256-gPToEeLymKIRjL52wb5AjMpDM6vU0Yb0rbcpouev4rQ=";
hash = "sha256-meUKWAFKT6EgHtzgR6jjDCA8EUD1kVoT3reXaRheukw=";
# 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,
@ -49,8 +49,8 @@ buildGoModule rec {
];
preBuild = let
cliConfigToml = fetchurl {
url = "https://web.archive.org/web/20221224152051/https://developer.fastly.com/api/internal/cli-config";
hash = "sha256-IjakfeqjHshlGoamRJTnhUC8cTVMIY63F3vO6I/ZHO4=";
url = "https://web.archive.org/web/20230207211120/https://developer.fastly.com/api/internal/cli-config";
hash = "sha256-Vkl8V5AkiJMZLswSN0vTnz7S7/5lXftlWD5UZh//vUw=";
};
in ''
cp ${cliConfigToml} ./pkg/config/config.toml