{ stdenv, fetchzip, qt5 }: let version = "1.40.41"; in stdenv.mkDerivation { name = "qtbitcointrader-${version}"; src = fetchzip { url = "https://github.com/JulyIGHOR/QtBitcoinTrader/archive/v${version}.tar.gz"; sha256 = "0v2rqzswqxfhxvkj1i7b48sd6kbj3w9issvn05yhp7bx75gwns4p"; }; buildInputs = [ qt5.qtbase qt5.qtmultimedia qt5.qtscript ]; postUnpack = "sourceRoot=\${sourceRoot}/src"; configurePhase = '' runHook preConfigure qmake $qmakeFlags \ PREFIX=$out \ DESKTOPDIR=$out/share/applications \ ICONDIR=$out/share/pixmaps \ QtBitcoinTrader_Desktop.pro runHook postConfigure ''; meta = with stdenv.lib; { description = "Bitcoin trading client"; homepage = https://centrabit.com/; license = licenses.gpl3; platforms = qt5.qtbase.meta.platforms; maintainers = [ maintainers.ehmry ]; }; }