openbrf: move to qmake4Hook

This commit is contained in:
Nikolay Amiantov 2016-04-17 02:34:22 +03:00
parent e9e112817d
commit 4e1d2d9afb

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, qt4, vcg, glew }:
{ stdenv, fetchFromGitHub, qt4, qmake4Hook, vcg, glew }:
stdenv.mkDerivation {
name = "openbrf-2016-01-09";
@ -10,18 +10,16 @@ stdenv.mkDerivation {
sha256 = "0laikpz0ljz7l5fgapwj09ygizmvj1iywnpfgfd0i14j46s134xb";
};
buildInputs = [ qt4 vcg glew ];
buildInputs = [ qt4 qmake4Hook vcg glew ];
enableParallelBuilding = true;
qmakeFlags = [ "openBrf.pro" ];
postPatch = ''
sed -i 's,^VCGLIB .*,VCGLIB = ${vcg}/include,' openBrf.pro
'';
configurePhase = ''
qmake PREFIX=$out openBrf.pro
'';
installPhase = ''
install -Dm755 openBrf $out/bin/openBrf
'';