diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libcommuni')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libcommuni/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libcommuni/default.nix b/nixpkgs/pkgs/development/libraries/libcommuni/default.nix new file mode 100644 index 000000000000..532c91a0edab --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libcommuni/default.nix @@ -0,0 +1,46 @@ +{ lib, stdenv, fetchFromGitHub +, qtbase, qtdeclarative, qmake, which +}: + +stdenv.mkDerivation rec { + pname = "libcommuni"; + version = "3.6.0"; + + src = fetchFromGitHub { + owner = "communi"; + repo = "libcommuni"; + rev = "v${version}"; + sha256 = "sha256-ABvrMoOVSycbQ8iRDzi7zkFnuSgHMMBgm9cDUWlD4uc="; + }; + + buildInputs = [ qtbase qtdeclarative ]; + nativeBuildInputs = [ qmake which ]; + + enableParallelBuilding = true; + + dontUseQmakeConfigure = true; + configureFlags = [ "-config" "release" ]; + + 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 = "A cross-platform IRC framework written with Qt"; + homepage = "https://communi.github.io"; + license = licenses.bsd3; + platforms = platforms.all; + maintainers = with maintainers; [ hrdinka ]; + }; +} |