7 stdenvNoCC.mkDerivation (finalAttrs: {
9 version = "1.1-unstable-2023-12-11";
11 src = fetchFromGitHub {
12 owner = "victorfisac";
14 rev = "29d9fc06860b54571a02402fff6fa8572d19bd12";
15 hash = "sha256-PTlV1tT0axQbmGmJ7JD1n6wmbIxUdu7xho78EO0HNNk=";
22 mkdir -p $out/{include,lib/pkgconfig}
24 install -Dm644 $src/src/physac.h $out/include/physac.h
26 cat <<EOF > $out/lib/pkgconfig/physac.pc
28 includedir=$out/include
31 Description: ${finalAttrs.meta.description}
32 URL: ${finalAttrs.meta.homepage}
33 Version: ${finalAttrs.version}
34 Cflags: -I"{includedir}"
41 description = "2D physics header-only library for raylib";
42 homepage = "https://github.com/victorfisac/Physac";
43 license = lib.licenses.mit;
44 maintainers = with lib.maintainers; [ sigmanificient ];
45 platforms = lib.platforms.unix;