Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

45 lines
919 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
lua,
}:
stdenv.mkDerivation rec {
version = "1.0.93";
pname = "toluapp";
src = fetchFromGitHub {
owner = "LuaDist";
repo = "toluapp";
rev = version;
sha256 = "0zd55bc8smmgk9j4cf0jpibb03lgsvl0knpwhplxbv93mcdnw7s0";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ lua ];
patches = [
./environ-and-linux-is-kinda-posix.patch
./headers.patch
];
postPatch = ''
substituteInPlace CMakeLists.txt --replace-fail \
'cmake_minimum_required ( VERSION 2.8 )' \
'cmake_minimum_required ( VERSION 4.0 )'
'';
strictDeps = true;
meta = with lib; {
description = "Tool to integrate C/Cpp code with Lua";
homepage = "http://www.codenix.com/~tolua/";
license = licenses.mit;
maintainers = with lib.maintainers; [ colinsane ];
mainProgram = "tolua++";
platforms = with platforms; unix;
};
}