leocad: move to qmake4Hook

+3 -4
+3 -4
pkgs/applications/graphics/leocad/default.nix
··· 3 set the variable LEOCAD_LIB=/path/to/libs/ or use option -l /path/to/libs/ 4 */ 5 6 - { stdenv, fetchsvn, qt4, zlib }: 7 8 stdenv.mkDerivation rec { 9 name = "leocad-${version}"; ··· 14 sha256 = "1190gb437ls51hhfiwa79fq131026kywpy3j3k4fkdgfr8a9v3q8"; 15 }; 16 17 - buildInputs = [ qt4 zlib ]; 18 19 - prefixKey = "INSTALL_PREFIX="; 20 - configureScript = "qmake leocad.pro"; 21 postPatch = '' 22 substituteInPlace common/camera.cpp --replace "isnan(" "std::isnan(" 23 ''; 24 25 meta = with stdenv.lib; {
··· 3 set the variable LEOCAD_LIB=/path/to/libs/ or use option -l /path/to/libs/ 4 */ 5 6 + { stdenv, fetchsvn, qt4, qmake4Hook, zlib }: 7 8 stdenv.mkDerivation rec { 9 name = "leocad-${version}"; ··· 14 sha256 = "1190gb437ls51hhfiwa79fq131026kywpy3j3k4fkdgfr8a9v3q8"; 15 }; 16 17 + buildInputs = [ qt4 qmake4Hook zlib ]; 18 19 postPatch = '' 20 substituteInPlace common/camera.cpp --replace "isnan(" "std::isnan(" 21 + export qmakeFlags="$qmakeFlags INSTALL_PREFIX=$out" 22 ''; 23 24 meta = with stdenv.lib; {