Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / luabridge / default.nix
blobc16f56065ca70f24dbe99a13f3d18b320464ef55
1 { lib
2 , stdenvNoCC
3 , fetchFromGitHub
4 }:
6 stdenvNoCC.mkDerivation rec {
7   pname = "luabridge";
8   version = "2.8";
10   src = fetchFromGitHub {
11     owner = "vinniefalco";
12     repo = "LuaBridge";
13     rev = version;
14     sha256 = "sha256-gXrBNzE41SH98Xz480+uHQlxHjMHzs23AImxil5LZ0g=";
15   };
17   dontConfigure = true;
18   dontBuild = true;
20   installPhase = ''
21     runHook preInstall
22     mkdir -p $out/include
23     cp -r Source/LuaBridge $out/include
24     runHook postInstall
25   '';
27   meta = with lib; {
28     description = "A lightweight, dependency-free library for binding Lua to C++";
29     homepage = "https://github.com/vinniefalco/LuaBridge";
30     changelog = "https://github.com/vinniefalco/LuaBridge/blob/${version}/CHANGES.md";
31     platforms = platforms.unix;
32     license = licenses.mit;
33     maintainers = with maintainers; [ ivar ];
34   };