memorycoin: move to qmake4Hook
This commit is contained in:
parent
b857459bdb
commit
9fe57fa988
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, openssl, db48, boost
|
{ stdenv, fetchurl, pkgconfig, openssl, db48, boost
|
||||||
, zlib, miniupnpc, qt4, utillinux, protobuf, qrencode
|
, zlib, miniupnpc, qt4, qmake4Hook, utillinux, protobuf, qrencode
|
||||||
, withGui }:
|
, withGui }:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
@ -15,13 +15,11 @@ stdenv.mkDerivation rec{
|
|||||||
|
|
||||||
buildInputs = [ pkgconfig openssl db48 boost zlib
|
buildInputs = [ pkgconfig openssl db48 boost zlib
|
||||||
miniupnpc utillinux protobuf ]
|
miniupnpc utillinux protobuf ]
|
||||||
++ optionals withGui [ qt4 qrencode ];
|
++ optionals withGui [ qt4 qmake4Hook qrencode ];
|
||||||
|
|
||||||
configureFlags = [ "--with-boost-libdir=${boost.lib}/lib" ]
|
configureFlags = [ "--with-boost-libdir=${boost.lib}/lib" ]
|
||||||
++ optionals withGui [ "--with-gui=qt4" ];
|
++ optionals withGui [ "--with-gui=qt4" ];
|
||||||
|
|
||||||
configurePhase = optional withGui "qmake";
|
|
||||||
|
|
||||||
preBuild = optional (!withGui) "cd src; cp makefile.unix Makefile";
|
preBuild = optional (!withGui) "cd src; cp makefile.unix Makefile";
|
||||||
|
|
||||||
installPhase =
|
installPhase =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user