7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
15 sha256 = "sha256-qOPOJ+h1bq5yKkP3ZNeZnRwiOMSgS7bxTk7s/5tREQw=";
18 nativeBuildInputs = [ cmake ];
21 substituteInPlace CMakeLists.txt \
22 --replace '\$'{prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \
23 --replace '\$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR}
27 homepage = "https://github.com/recp/cglm";
28 description = "Highly Optimized Graphics Math (glm) for C";
29 license = licenses.mit;
30 maintainers = [ maintainers.ivar ];
31 platforms = platforms.unix;