python312Packages.types-aiobotocore: 2.15.2 -> 2.15.2.post3 (#361801)
[NixPkgs.git] / pkgs / by-name / cg / cglm / package.nix
blob3ad9c33bb3cff765a735a3f21f91a1c18243d46d
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 }:
7 stdenv.mkDerivation rec {
8   pname = "cglm";
9   version = "0.9.4";
11   src = fetchFromGitHub {
12     owner = "recp";
13     repo = "cglm";
14     rev = "v${version}";
15     sha256 = "sha256-VQgnc3DSZoY1ounc9fj3Mju52noI0JZ7ck8FqWpEgY8=";
16   };
18   nativeBuildInputs = [ cmake ];
20   postPatch = ''
21     substituteInPlace CMakeLists.txt \
22       --replace '\$'{prefix}/'$'{CMAKE_INSTALL_LIBDIR} '$'{CMAKE_INSTALL_FULL_LIBDIR} \
23       --replace '\$'{prefix}/'$'{CMAKE_INSTALL_INCLUDEDIR} '$'{CMAKE_INSTALL_FULL_INCLUDEDIR}
24   '';
26   meta = with lib; {
27     homepage = "https://github.com/recp/cglm";
28     description = "Highly Optimized Graphics Math (glm) for C";
29     license = licenses.mit;
30     maintainers = [ ];
31     platforms = platforms.unix;
32   };