openbrf: fix build

patch BoundaryWeight into BoundaryQuadricWeight and QualityQuadricWeight
add eigen to include path as it is no longer in the vcg include directory

authored by Rob and committed by Yt d183e697 58ee71d9

+13 -2
+13 -2
pkgs/applications/misc/openbrf/default.nix
··· 1 - { mkDerivation, lib, stdenv, fetchFromGitHub, qtbase, vcg, glew, qmake, libGLU, libGL }: 2 3 4 mkDerivation { ··· 12 sha256 = "16254cnr60ihcn7bki7wl1qm6gkvzb99cn66md1pnb7za8nvzf4j"; 13 }; 14 15 - buildInputs = [ qtbase vcg glew ]; 16 17 nativeBuildInputs = [ qmake ]; 18 19 qmakeFlags = [ "openBrf.pro" ]; 20 21 postPatch = '' 22 sed -i 's,^VCGLIB .*,VCGLIB = ${vcg}/include,' openBrf.pro
··· 1 + { mkDerivation, lib, stdenv, fetchFromGitHub, fetchpatch, qtbase, vcg, glew, qmake, libGLU, eigen, libGL }: 2 3 4 mkDerivation { ··· 12 sha256 = "16254cnr60ihcn7bki7wl1qm6gkvzb99cn66md1pnb7za8nvzf4j"; 13 }; 14 15 + patches = [ 16 + # https://github.com/cfcohen/openbrf/pull/7 17 + (fetchpatch { 18 + name = "fix-build-against-newer-vcglib.patch"; 19 + url = "https://github.com/cfcohen/openbrf/commit/6d82a25314a393e72bfbe2ffc3965bcac407df4c.patch"; 20 + hash = "sha256-rNxAw6Le6QXMSirIAMhMmqVgNJLq6osnEOhWrY3mTpM="; 21 + }) 22 + ]; 23 + 24 + buildInputs = [ qtbase vcg glew eigen ]; 25 26 nativeBuildInputs = [ qmake ]; 27 28 qmakeFlags = [ "openBrf.pro" ]; 29 + 30 + env.NIX_CFLAGS_COMPILE = "-isystem ${lib.getDev eigen}/include/eigen3"; 31 32 postPatch = '' 33 sed -i 's,^VCGLIB .*,VCGLIB = ${vcg}/include,' openBrf.pro