about summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorChristian Kögler <ck3d@gmx.de>2022-10-31 07:14:48 +0100
committerGitHub <noreply@github.com>2022-10-31 07:14:48 +0100
commit5c4ca40f94258515b1835d40756c3004a81f7c31 (patch)
tree84819d47fa2fedd958bb6224c8e1612a51fa67ca /pkgs/development/libraries
parent7b4698543fb5017ce55376e6b29280d0c416c1a8 (diff)
parent01261df9ba78111d47a280d9b9ab4172d12ae6ad (diff)
Merge pull request #193013 from IvarWithoutBones/init-luabridge
luabridge: init at 2.8
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/luabridge/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/libraries/luabridge/default.nix b/pkgs/development/libraries/luabridge/default.nix
new file mode 100644
index 0000000000000..c16f56065ca70
--- /dev/null
+++ b/pkgs/development/libraries/luabridge/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, stdenvNoCC
+, fetchFromGitHub
+}:
+
+stdenvNoCC.mkDerivation rec {
+  pname = "luabridge";
+  version = "2.8";
+
+  src = fetchFromGitHub {
+    owner = "vinniefalco";
+    repo = "LuaBridge";
+    rev = version;
+    sha256 = "sha256-gXrBNzE41SH98Xz480+uHQlxHjMHzs23AImxil5LZ0g=";
+  };
+
+  dontConfigure = true;
+  dontBuild = true;
+
+  installPhase = ''
+    runHook preInstall
+    mkdir -p $out/include
+    cp -r Source/LuaBridge $out/include
+    runHook postInstall
+  '';
+
+  meta = with lib; {
+    description = "A lightweight, dependency-free library for binding Lua to C++";
+    homepage = "https://github.com/vinniefalco/LuaBridge";
+    changelog = "https://github.com/vinniefalco/LuaBridge/blob/${version}/CHANGES.md";
+    platforms = platforms.unix;
+    license = licenses.mit;
+    maintainers = with maintainers; [ ivar ];
+  };
+}