about summary refs log tree commit diff
path: root/pkgs/development/libraries/box2d/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/box2d/default.nix')
-rw-r--r--pkgs/development/libraries/box2d/default.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/development/libraries/box2d/default.nix b/pkgs/development/libraries/box2d/default.nix
index c2611a8b8dffb..acc2d96caf4a7 100644
--- a/pkgs/development/libraries/box2d/default.nix
+++ b/pkgs/development/libraries/box2d/default.nix
@@ -4,7 +4,7 @@
 , cmake
 , libGLU
 , libGL
-, freeglut
+, libglut
 , libX11
 , libXcursor
 , libXinerama
@@ -25,13 +25,13 @@ let
 in
 stdenv.mkDerivation (finalAttrs: {
   pname = "box2d";
-  version = "2.4.1";
+  version = "2.4.2";
 
   src = fetchFromGitHub {
     owner = "erincatto";
     repo = "box2d";
     rev = "v${finalAttrs.version}";
-    hash = "sha256-cL8L+WSTcswj+Bwy8kSOwuEqLyWEM6xa/j/94aBiSck=";
+    hash = "sha256-yvhpgiZpjTPeSY7Ma1bh4LwIokUUKB10v2WHlamL9D8=";
   };
 
   nativeBuildInputs = [ cmake pkg-config ];
@@ -39,19 +39,19 @@ stdenv.mkDerivation (finalAttrs: {
   buildInputs = [
     libGLU
     libGL
-    freeglut
+    libglut
     libX11
     libXcursor
     libXinerama
     libXrandr
     xorgproto
     libXi
-  ] ++ optionals stdenv.isDarwin [
+  ] ++ optionals stdenv.hostPlatform.isDarwin [
     Carbon Cocoa Kernel OpenGL
   ];
 
   cmakeFlags = [
-    (cmakeBool "BOX2D_BUILD_UNIT_TESTS" finalAttrs.doCheck)
+    (cmakeBool "BOX2D_BUILD_UNIT_TESTS" finalAttrs.finalPackage.doCheck)
   ];
 
   prePatch = ''
@@ -59,7 +59,7 @@ stdenv.mkDerivation (finalAttrs: {
       --replace-fail 'b2_maxPolygonVertices	8' 'b2_maxPolygonVertices	15'
   '';
 
-  # tests are broken on 2.4.1 and 2.3.x doesn't have tests: https://github.com/erincatto/box2d/issues/677
+  # tests are broken on 2.4.2 and 2.3.x doesn't have tests: https://github.com/erincatto/box2d/issues/677
   doCheck = lib.versionAtLeast finalAttrs.version "2.4.2";
 
   meta = with lib; {