Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 48 lines 847 B view raw
1{ 2 mkDerivation, 3 lib, 4 fetchurl, 5 qtbase, 6 qtsvg, 7 qttools, 8 qmake, 9}: 10 11let 12 inherit (lib) getDev; 13in 14 15mkDerivation rec { 16 pname = "qt5ct"; 17 version = "1.9"; 18 19 src = fetchurl { 20 url = "mirror://sourceforge/qt5ct/qt5ct-${version}.tar.bz2"; 21 sha256 = "sha256-3BDmk51CO5JZgc5n/rsaAVtvYcAiqcx+bIte/qRYi/8="; 22 }; 23 24 nativeBuildInputs = [ 25 qmake 26 qttools 27 ]; 28 29 buildInputs = [ 30 qtbase 31 qtsvg 32 ]; 33 34 qmakeFlags = [ 35 "LRELEASE_EXECUTABLE=${getDev qttools}/bin/lrelease" 36 "PLUGINDIR=${placeholder "out"}/${qtbase.qtPluginPrefix}" 37 "LIBDIR=${placeholder "out"}/lib" 38 ]; 39 40 meta = with lib; { 41 description = "Qt5 Configuration Tool"; 42 homepage = "https://sourceforge.net/projects/qt5ct/"; 43 platforms = platforms.linux; 44 license = licenses.bsd2; 45 maintainers = [ ]; 46 mainProgram = "qt5ct"; 47 }; 48}