fastly: 5.1.1 -> 6.0.0

This commit is contained in:
Rafael Fernández López 2023-02-07 22:23:23 +01:00
parent 4d4c6bd87a
commit 1ef9f06820
No known key found for this signature in database
GPG Key ID: A07C55EEE4CCE570

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