Skip to content

Commit

Permalink
box2d-lite: init at 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Oct 6, 2024
1 parent fade7e3 commit 1a68e10
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions pkgs/by-name/bo/box2d-lite/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
lib,
stdenv,
fetchFromGitHub,

# nativeBuildInputs
cmake,

# buildInputs
glfw3,
libGL,
libX11,
}:

stdenv.mkDerivation rec {
pname = "box2d-lite";
version = "1.0.1";

src = fetchFromGitHub {
owner = "erincatto";
repo = "box2d-lite";
rev = "refs/tags/${version}";
hash = "sha256-XilbE1HsDgpTvmz2EmcF9OZBHkabNxuBAo08al0Zixo=";
};

nativeBuildInputs = [
cmake
];

buildInputs = [
glfw3
libGL
libX11
];

meta = {
description = "A small 2D physics engine";
homepage = "https://github.com/erincatto/box2d-lite";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
mainProgram = "box2d-lite";
platforms = lib.platforms.all;
};
}

0 comments on commit 1a68e10

Please sign in to comment.