Unverified Commit bf4c84ec authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

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

fastly: 5.1.1 -> 6.0.0
parents 67aa2302 1ef9f068
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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