Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 66 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667{ lib, stdenv, fetchFromGitHub, qtbase, qtdeclarative, qmake, which,}:
stdenv.mkDerivation rec { pname = "libcommuni"; version = "3.7.0";
src = fetchFromGitHub { owner = "communi"; repo = "libcommuni"; rev = "v${version}"; sha256 = "sha256-9eYJpmjW1J48RD6wVJOHmsAgTbauNeeCrXe076ufq1I="; };
buildInputs = [ qtbase qtdeclarative ]; nativeBuildInputs = [ qmake which ];
enableParallelBuilding = true;
dontUseQmakeConfigure = true; configureFlags = [ "-config" "release" ] # Build mixes up dylibs/frameworks if one is not explicitly specified. ++ lib.optionals stdenv.hostPlatform.isDarwin [ "-config" "qt_framework" ];
dontWrapQtApps = true;
preConfigure = '' sed -i -e 's|/bin/pwd|pwd|g' configure '';
# The tests fail on darwin because of install_name if they run # before the frameworks are installed. doCheck = false; doInstallCheck = true; installCheckTarget = "check";
# Hack to avoid TMPDIR in RPATHs. preFixup = "rm -rf lib";
meta = with lib; { description = "Cross-platform IRC framework written with Qt"; homepage = "https://communi.github.io"; license = licenses.bsd3; platforms = platforms.all; maintainers = with maintainers; [ hrdinka ]; };}