apk-tools: prepare for pkgs/by-name

This commit is contained in:
Bjørn Forsman
2025-12-19 19:27:09 +01:00
parent c02129778b
commit 3656b70ffb
2 changed files with 6 additions and 8 deletions
@@ -8,7 +8,7 @@
zlib,
zstd,
luaSupport ? stdenv.hostPlatform == stdenv.buildPlatform,
lua,
lua5_3,
}:
stdenv.mkDerivation rec {
@@ -28,15 +28,15 @@ stdenv.mkDerivation rec {
scdoc
]
++ lib.optionals luaSupport [
lua
lua.pkgs.lua-zlib
lua5_3
lua5_3.pkgs.lua-zlib
];
buildInputs = [
openssl
zlib
zstd
]
++ lib.optional luaSupport lua;
++ lib.optional luaSupport lua5_3;
strictDeps = true;
makeFlags = [
@@ -44,7 +44,7 @@ stdenv.mkDerivation rec {
"SBINDIR=$(out)/bin"
"LIBDIR=$(out)/lib"
"LUA=${if luaSupport then "lua" else "no"}"
"LUA_LIBDIR=$(out)/lib/lua/${lib.versions.majorMinor lua.version}"
"LUA_LIBDIR=$(out)/lib/lua/${lib.versions.majorMinor lua5_3.version}"
"MANDIR=$(out)/share/man"
"DOCDIR=$(out)/share/doc/apk"
"INCLUDEDIR=$(out)/include"
+1 -3
View File
@@ -1456,9 +1456,7 @@ with pkgs;
angie-console-light = callPackage ../servers/http/angie/console-light.nix { };
apk-tools = callPackage ../tools/package-management/apk-tools {
lua = lua5_3;
};
apk-tools = callPackage ../tools/package-management/apk-tools { };
appimage-run = callPackage ../tools/package-management/appimage-run { };
appimage-run-tests = callPackage ../tools/package-management/appimage-run/test.nix {