12 stdenv.mkDerivation rec {
17 url = "https://github.com/google/liquidfun/releases/download/v${version}/liquidfun-${version}";
18 sha256 = "5011a000eacd6202a47317c489e44aa753a833fb562d970e7b8c0da9de01df86";
19 name = "liquidfun-${version}.tar.gz";
22 nativeBuildInputs = [ cmake ];
30 sourceRoot = "liquidfun/Box2D";
32 preConfigurePhases = [ "preConfigure" ];
35 sed -i Box2D/Common/b2Settings.h -e 's@b2_maxPolygonVertices .*@b2_maxPolygonVertices 15@'
36 substituteInPlace Box2D/CMakeLists.txt --replace "Common/b2GrowableStack.h" "Common/b2GrowableStack.h Common/b2GrowableBuffer.h"
42 cmake -DBOX2D_INSTALL=ON -DBOX2D_BUILD_SHARED=ON -DCMAKE_INSTALL_PREFIX=$out ..
46 description = "2D physics engine based on Box2D";
47 maintainers = with maintainers; [ qknight ];
48 platforms = platforms.linux;
50 license = licenses.bsd2;
51 homepage = "https://google.github.io/liquidfun/";