toluapp: move to pkgs/by-name, modernize (#528975)

This commit is contained in:
Colin
2026-06-07 21:31:49 +00:00
committed by GitHub
4 changed files with 7 additions and 9 deletions
@@ -3,22 +3,24 @@
stdenv,
fetchFromGitHub,
cmake,
lua,
lua5_1,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
version = "1.0.93";
pname = "toluapp";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "LuaDist";
repo = "toluapp";
rev = version;
tag = finalAttrs.version;
sha256 = "0zd55bc8smmgk9j4cf0jpibb03lgsvl0knpwhplxbv93mcdnw7s0";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ lua ];
buildInputs = [ lua5_1 ];
patches = [
./environ-and-linux-is-kinda-posix.patch
@@ -41,4 +43,4 @@ stdenv.mkDerivation rec {
mainProgram = "tolua++";
platforms = with lib.platforms; unix;
};
}
})
-4
View File
@@ -4761,10 +4761,6 @@ with pkgs;
luarocks = luaPackages.luarocks;
luarocks-nix = luaPackages.luarocks-nix;
toluapp = callPackage ../development/tools/toluapp {
lua = lua5_1; # doesn't work with any other :(
};
### END OF LUA
### CuboCore