Unverified Commit 599d9b8a authored by Leona Maroni's avatar Leona Maroni Committed by GitHub
Browse files

varnish80: init at 8.0.1 (#501601)

parents 3ef3ae7c e738bd66
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -122,6 +122,9 @@

- `lima` has been updated from `1.x` to `2.x`. This major update includes several breaking changes, such as `/tmp/lima` no longer being mounted by default.

- Varnish Cache has been updated to major version 8, `varnish` now refers to `varnish80`. That release contains breaking changes, see [Upgrading to Varnish-Cache 8.0](https://vinyl-cache.org/docs/8.0/whats-new/upgrading-8.0.html).
  Note that the Varnish 6 LTS release remains available as `varnish60`.

- `eslint` has been updated from version 9 to version 10. Please see https://eslint.org/blog/2026/02/eslint-v10.0.0-released/ for details about the breaking changes included in the update.

- `minio_legacy_fs` has been removed. If you used that package, migrate your data to be compatible with the newest minio and use the package `minio`.
+4 −0
Original line number Diff line number Diff line
@@ -1708,6 +1708,10 @@ in
    imports = [ ./varnish.nix ];
    _module.args.package = pkgs.varnish77;
  };
  varnish80 = runTest {
    imports = [ ./varnish.nix ];
    _module.args.package = pkgs.varnish80;
  };
  vault = runTest ./vault.nix;
  vault-agent = runTest ./vault-agent.nix;
  vault-dev = runTest ./vault-dev.nix;
+26 −14
Original line number Diff line number Diff line
@@ -68,7 +68,9 @@ let
      buildFlags = [ "localstatedir=/var/run" ];

      patches =
        lib.optionals (stdenv.isDarwin && lib.versionAtLeast version "7.7") [
        lib.optionals
          (stdenv.isDarwin && lib.versionAtLeast version "7.7" && lib.versionOlder version "8.0")
          [
            # Fix VMOD section attribute on macOS
            # Unreleased commit on master
            (fetchpatch2 {
@@ -85,8 +87,12 @@ let
          ./patches/0002-fix-duplicate-os-code-definitions-on-macos.patch
        ];

      postPatch = ''
      postPatch =
        lib.optionalString (lib.versionOlder version "8.0") ''
          substituteInPlace bin/varnishtest/vtc_main.c --replace-fail /bin/rm "${coreutils}/bin/rm"
        ''
        + lib.optionalString (lib.versionAtLeast version "8.0") ''
          substituteInPlace bin/varnishtest/vtest2/src/vtc_main.c --replace-fail /bin/rm "${coreutils}/bin/rm"
        '';

      postConfigure = lib.optionalString (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
@@ -144,6 +150,7 @@ let
        knownVulnerabilities = lib.optionals (lib.versions.major version == "7") [
          "VSV00018: https://vinyl-cache.org/security/VSV00018.html"
        ];
        broken = stdenv.isDarwin && version == "8.0.1"; # https://github.com/NixOS/nixpkgs/issues/495368
      };
    };
in
@@ -158,4 +165,9 @@ in
    version = "7.7.3";
    hash = "sha256-6W7q/Ez+KlWO0vtU8eIr46PZlfRvjADaVF1YOq74AjY=";
  };
  # EOL 2026-09-15
  varnish80 = common {
    version = "8.0.1";
    hash = "sha256-n1oi1YrNvqw3GhY9683TYSG+XuS8hKoYfrfNDDGP5oI=";
  };
}
+5 −1
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ let
      src = fetchFromGitHub {
        owner = "varnish";
        repo = "varnish-modules";
        rev = version;
        tag = version;
        inherit hash;
      };

@@ -59,4 +59,8 @@ in
    version = "0.26.0";
    hash = "sha256-xKMOkqm6/GoBve0AhPqyVMQv/oh5Rtj6uCeg/yId7BU=";
  };
  modules27 = common {
    version = "0.27.0";
    hash = "sha256-1hE+AKsC6Td+Al7LFN6bgPicU8dtWd3A8PP7VKZLvYM=";
  };
}
+5 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  callPackage,
  varnish60,
  varnish77,
  varnish80,
  lib,
}:
{
@@ -24,4 +25,8 @@
    varnish = varnish77;
    modules = (callPackages ./modules.nix { inherit varnish; }).modules26;
  };
  varnish80Packages = lib.recurseIntoAttrs rec {
    varnish = varnish80;
    modules = (callPackages ./modules.nix { inherit varnish; }).modules27;
  };
}
Loading