box2d: make src name independent

+1 -2
+1 -2
pkgs/development/libraries/box2d/default.nix
··· 12 sha256 = "sha256-Z2J17YMzQNZqABIa5eyJDT7BWfXveymzs+DWsrklPIs="; 13 }; 14 15 - sourceRoot = "source/Box2D"; 16 - 17 nativeBuildInputs = [ cmake pkg-config ]; 18 buildInputs = [ libGLU libGL freeglut libX11 xorgproto libXi ]; 19 ··· 24 ]; 25 26 prePatch = '' 27 substituteInPlace Box2D/Common/b2Settings.h \ 28 --replace 'b2_maxPolygonVertices 8' 'b2_maxPolygonVertices 15' 29 '';
··· 12 sha256 = "sha256-Z2J17YMzQNZqABIa5eyJDT7BWfXveymzs+DWsrklPIs="; 13 }; 14 15 nativeBuildInputs = [ cmake pkg-config ]; 16 buildInputs = [ libGLU libGL freeglut libX11 xorgproto libXi ]; 17 ··· 22 ]; 23 24 prePatch = '' 25 + cd Box2D 26 substituteInPlace Box2D/Common/b2Settings.h \ 27 --replace 'b2_maxPolygonVertices 8' 'b2_maxPolygonVertices 15' 28 '';