mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ stdenv, fetchFromGitHub
|
|
, qtbase, qtdeclarative, qmake, which
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libcommuni";
|
|
version = "3.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "communi";
|
|
repo = "libcommuni";
|
|
rev = "v${version}";
|
|
sha256 = "15crqc7a4kwrfbxs121rpdysw0694hh7dr290gg7pm61akvnrqcm";
|
|
};
|
|
|
|
buildInputs = [ qtbase qtdeclarative ];
|
|
nativeBuildInputs = [ qmake which ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
dontUseQmakeConfigure = true;
|
|
configureFlags = [ "-config" "release" ];
|
|
|
|
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 stdenv.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 ];
|
|
};
|
|
}
|