Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub 2, qtbase, qtdeclarative, qmake, which 3}: 4 5stdenv.mkDerivation rec { 6 pname = "libcommuni"; 7 version = "3.7.0"; 8 9 src = fetchFromGitHub { 10 owner = "communi"; 11 repo = "libcommuni"; 12 rev = "v${version}"; 13 sha256 = "sha256-9eYJpmjW1J48RD6wVJOHmsAgTbauNeeCrXe076ufq1I="; 14 }; 15 16 buildInputs = [ qtbase qtdeclarative ]; 17 nativeBuildInputs = [ qmake which ]; 18 19 enableParallelBuilding = true; 20 21 dontUseQmakeConfigure = true; 22 configureFlags = [ "-config" "release" ] 23 # Build mixes up dylibs/frameworks if one is not explicitly specified. 24 ++ lib.optionals stdenv.isDarwin [ "-config" "qt_framework" ]; 25 26 dontWrapQtApps = true; 27 28 preConfigure = '' 29 sed -i -e 's|/bin/pwd|pwd|g' configure 30 ''; 31 32 # The tests fail on darwin because of install_name if they run 33 # before the frameworks are installed. 34 doCheck = false; 35 doInstallCheck = true; 36 installCheckTarget = "check"; 37 38 # Hack to avoid TMPDIR in RPATHs. 39 preFixup = "rm -rf lib"; 40 41 meta = with lib; { 42 description = "A cross-platform IRC framework written with Qt"; 43 homepage = "https://communi.github.io"; 44 license = licenses.bsd3; 45 platforms = platforms.all; 46 maintainers = with maintainers; [ hrdinka ]; 47 }; 48}