From f05b50b53e78872d4a86a08919a9d8e9af9d482a Mon Sep 17 00:00:00 2001 From: arcnmx Date: Sat, 27 Apr 2024 12:01:33 -0700 Subject: [PATCH] chore(nginx): lua-resty-core overlay unneeded --- overlays/nginx.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/overlays/nginx.nix b/overlays/nginx.nix index 6a95731c..d57369bc 100644 --- a/overlays/nginx.nix +++ b/overlays/nginx.nix @@ -1,13 +1,15 @@ final: prev: let inherit (final) lib; - luaOverlay = luafinal: luaprev: { - lua-resty-core = luaprev.lua-resty-core.overrideAttrs (old: rec { - version = lib.warnIf (old.version != "0.1.24") "lua-resty-core updated upstream" "0.1.28"; + luaOverlay = luafinal: luaprev: let + mkRestyCore = { nixpkgsVersion, version, sha256 }: luaprev.lua-resty-core.overrideAttrs (old: { + version = lib.warnIf (old.version != nixpkgsVersion) "lua-resty-core updated upstream" version; src = old.src.override { rev = "v${version}"; - sha256 = "sha256-RJ2wcHTu447wM0h1fa2qCBl4/p9XL6ZqX9pktRW64RI="; + inherit sha256; }; }); + in { + #lua-resty-core = mkRestyCore { nixpkgsVersion = "0.1.24"; version = "0.1.28"; sha256 = "sha256-RJ2wcHTu447wM0h1fa2qCBl4/p9XL6ZqX9pktRW64RI="; }; }; in { nginxModules = prev.nginxModules // {