python312Packages.llama-index: 0.12.9 -> 0.12.9.post1 (#371957)
[NixPkgs.git] / pkgs / by-name / li / libccd / package.nix
blob67eaa7eba25ea2fce5d61e8de460b3eee5498415
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   fetchpatch,
6   cmake,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "libccd";
11   version = "2.1";
13   src = fetchFromGitHub {
14     owner = "danfis";
15     repo = pname;
16     rev = "v${version}";
17     sha256 = "0sfmn5pd7k5kyhbxnd689xmsa5v843r7sska96dlysqpljd691jc";
18   };
20   patches = [
21     # Fix pkgconfig file with absolute CMAKE_INSTALL_*DIR
22     # https://github.com/danfis/libccd/pull/76
23     (fetchpatch {
24       url = "https://github.com/danfis/libccd/commit/cd16c4f168ae308e4c77db66ac97a2eaf47e059e.patch";
25       sha256 = "02wj21c185kwf8bn4qi4cnna0ypzqm481xw9rr8jy1i0cb1r9idg";
26     })
27   ];
29   nativeBuildInputs = [ cmake ];
31   meta = with lib; {
32     description = "Library for collision detection between two convex shapes";
33     homepage = "https://github.com/danfis/libccd";
34     license = licenses.bsd3;
35     maintainers = with maintainers; [ lopsided98 ];
36     platforms = platforms.unix;
37   };