summary refs log tree commit diff
path: root/pkgs/development/libraries/libcommuni/default.nix
blob: 3632fff43bdea0e58708f9283713bfdbc4a22f31 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ stdenv, fetchFromGitHub, qtbase, qtdeclarative, qmakeHook, which
}:

stdenv.mkDerivation rec {
  name = "libcommuni-${version}";
  version = "2016-08-17";

  src = fetchFromGitHub {
    owner = "communi";
    repo = "libcommuni";
    rev = "dedba6faf57c31c8c70fd563ba12d75a9caee8a3";
    sha256 = "0wvs53z34vfs5xlln4a6sbd4981svag89xm0f4k20mb1i052b20i";
  };

  buildInputs = [ qtbase qtdeclarative ];
  nativeBuildInputs = [ qmakeHook which ];

  enableParallelBuilding = true;

  dontUseQmakeConfigure = true;
  configureFlags = "-config release";
  preConfigure = ''
    sed -i -e 's|/bin/pwd|pwd|g' configure
  '';

  doCheck = true;

  # Hack to avoid TMPDIR in RPATHs.
  preFixup = ''rm -rf "$(pwd)" '';

  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 ];
  };
}