chore: nf-fmt-nix

This commit is contained in:
arcnmx 2024-05-13 15:13:58 -07:00
parent 7486517713
commit 9903866044
160 changed files with 4570 additions and 3019 deletions

View file

@ -1,27 +1,36 @@
final: prev: let
inherit (final) lib;
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}";
inherit sha256;
};
});
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}";
inherit sha256;
};
});
in {
#lua-resty-core = mkRestyCore { nixpkgsVersion = "0.1.24"; version = "0.1.28"; sha256 = "sha256-RJ2wcHTu447wM0h1fa2qCBl4/p9XL6ZqX9pktRW64RI="; };
};
in {
nginxModules = prev.nginxModules // {
lua = let
inherit (prev.nginxModules) lua;
in lua // lib.warnIf (lua.version != "0.10.26") "nginxModules.lua updated upstream" {
preConfigure = lib.replaceStrings [ "patch " ] [ "#patch " ] lua.preConfigure;
nginxModules =
prev.nginxModules
// {
lua = let
inherit (prev.nginxModules) lua;
in
lua
// lib.warnIf (lua.version != "0.10.26") "nginxModules.lua updated upstream" {
preConfigure = lib.replaceStrings ["patch "] ["#patch "] lua.preConfigure;
};
};
};
luaInterpreters = prev.luaInterpreters.override (old: {
callPackage = final.newScope {
packageOverrides = lib.composeExtensions (final.packageOverrides or (_: _: { })) luaOverlay;
packageOverrides = lib.composeExtensions (final.packageOverrides or (_: _: {})) luaOverlay;
};
});
}