toluapp: move to pkgs/by-name, modernize (#528975)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
})
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user