nixpkgs/pkgs/development/libraries/libcommuni/default.nix

49 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub
2017-08-29 13:45:19 +03:00
, qtbase, qtdeclarative, qmake, which
2016-01-10 14:01:05 +03:00
}:
stdenv.mkDerivation rec {
pname = "libcommuni";
2022-02-12 09:05:56 +03:00
version = "3.7.0";
2016-01-10 14:01:05 +03:00
src = fetchFromGitHub {
owner = "communi";
repo = "libcommuni";
2017-08-29 13:45:19 +03:00
rev = "v${version}";
2022-02-12 09:05:56 +03:00
sha256 = "sha256-9eYJpmjW1J48RD6wVJOHmsAgTbauNeeCrXe076ufq1I=";
2016-01-10 14:01:05 +03:00
};
buildInputs = [ qtbase qtdeclarative ];
2017-06-02 18:40:19 +03:00
nativeBuildInputs = [ qmake which ];
2016-01-10 14:01:05 +03:00
enableParallelBuilding = true;
2016-01-10 14:01:05 +03:00
2016-06-30 04:29:59 +03:00
dontUseQmakeConfigure = true;
2021-05-11 12:55:22 +03:00
configureFlags = [ "-config" "release" ]
# Build mixes up dylibs/frameworks if one is not explicitely specified.
++ lib.optionals stdenv.isDarwin [ "-config" "qt_framework" ];
dontWrapQtApps = true;
2016-06-30 04:29:59 +03:00
preConfigure = ''
sed -i -e 's|/bin/pwd|pwd|g' configure
2016-01-10 14:01:05 +03:00
'';
# 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.
2017-08-29 13:45:19 +03:00
preFixup = "rm -rf lib";
meta = with lib; {
2016-01-10 14:01:05 +03:00
description = "A cross-platform IRC framework written with Qt";
homepage = "https://communi.github.io";
2016-01-10 14:01:05 +03:00
license = licenses.bsd3;
platforms = platforms.all;
maintainers = with maintainers; [ hrdinka ];
};
}