diff options
author | Felix Buehler <account@buehler.rocks> | 2021-12-27 01:04:16 +0100 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2021-12-30 14:36:15 +0100 |
commit | 4c2bc0764d26692acbb1a5f26d8e8328f0ad8fde (patch) | |
tree | afa0fec7ec0e6bdaf9c2dca0a95329fd8a6eb9f9 /pkgs/development/libraries/box2d | |
parent | f3669aec919ae0311213419fd3f23c2d7d311f4b (diff) |
box2d: switch to fetchFromGitHub
Diffstat (limited to 'pkgs/development/libraries/box2d')
-rw-r--r-- | pkgs/development/libraries/box2d/default.nix | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/pkgs/development/libraries/box2d/default.nix b/pkgs/development/libraries/box2d/default.nix index 64349b1e3cf37..80287f4f31406 100644 --- a/pkgs/development/libraries/box2d/default.nix +++ b/pkgs/development/libraries/box2d/default.nix @@ -1,18 +1,20 @@ -{ lib, stdenv, fetchurl, unzip, cmake, libGLU, libGL, freeglut, libX11, xorgproto +{ lib, stdenv, fetchFromGitHub, cmake, libGLU, libGL, freeglut, libX11, xorgproto , libXi, pkg-config }: stdenv.mkDerivation rec { pname = "box2d"; version = "2.3.1"; - src = fetchurl { - url = "https://github.com/erincatto/box2d/archive/v${version}.tar.gz"; - sha256 = "0p03ngsmyz0r5kbpiaq10ns4fxwkjvvawi8k6pfall46b93wizsq"; + src = fetchFromGitHub { + owner = "erincatto"; + repo = "box2d"; + rev = "v${version}"; + sha256 = "sha256-Z2J17YMzQNZqABIa5eyJDT7BWfXveymzs+DWsrklPIs="; }; - sourceRoot = "box2d-${version}/Box2D"; + sourceRoot = "source/Box2D"; - nativeBuildInputs = [ cmake unzip pkg-config ]; + nativeBuildInputs = [ cmake pkg-config ]; buildInputs = [ libGLU libGL freeglut libX11 xorgproto libXi ]; cmakeFlags = [ |