git.iko.soy/typeable/nixpkgs
on master help sign in
libccd: fix pkgconfig file paths

libccd has the common bug of assuming CMAKE_INSTALL_*DIR is relative. I have submitted the fix upstream, but don't have much hope of getting it merged because there have been no updates since 2018.

commit3d2092ab58fe83e89a3162728e9d4b733295b561 authorBen Wolsieffer <benwolsieffer@gmail.com> dateSun 30 May 2021, 11:37 (5 years ago) parent2a6db4c
1 file changed+10−1
pkgs/development/libraries/libccd/default.nix+10−1
pkgs/development/libraries/libccd/default.nix+10−1
@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchFromGitHub, cmake }:
1+{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake }:
22
33stdenv.mkDerivation rec {
44 pname = "libccd";
@@ -11,6 +11,15 @@ stdenv.mkDerivation rec {
1111 sha256 = "0sfmn5pd7k5kyhbxnd689xmsa5v843r7sska96dlysqpljd691jc";
1212 };
1313
14+ patches = [
15+ # Fix pkgconfig file with absolute CMAKE_INSTALL_*DIR
16+ # https://github.com/danfis/libccd/pull/76
17+ (fetchpatch {
18+ url = "https://github.com/danfis/libccd/commit/cd16c4f168ae308e4c77db66ac97a2eaf47e059e.patch";
19+ sha256 = "02wj21c185kwf8bn4qi4cnna0ypzqm481xw9rr8jy1i0cb1r9idg";
20+ })
21+ ];
22+
1423 nativeBuildInputs = [ cmake ];
1524
1625 meta = with lib; {