{ stdenv, fetchurl, qtbase, qttools, qmake }: let inherit (stdenv.lib) getDev; in stdenv.mkDerivation rec { pname = "qt5ct"; version = "0.38"; src = fetchurl { url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.bz2"; sha256 = "0p0317z79h906qwaf0p8ga6lmr1dlabkx12gn31bv9lnp9f55jwg"; }; nativeBuildInputs = [ qmake qttools ]; buildInputs = [ qtbase ]; qmakeFlags = [ "LRELEASE_EXECUTABLE=${getDev qttools}/bin/lrelease" ]; preConfigure = '' qmakeFlags+=" PLUGINDIR=$out/$qtPluginPrefix" ''; enableParallelBuilding = true; meta = with stdenv.lib; { description = "Qt5 Configuration Tool"; homepage = https://www.opendesktop.org/content/show.php?content=168066; platforms = platforms.linux; license = licenses.bsd2; maintainers = with maintainers; [ ralith ]; }; }