summary refs log tree commit diff
path: root/pkgs/development/libraries/libcommuni/default.nix
blob: 7b83be7e911ac600900fb82e24bb48e705361724 (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
{ fetchgit, qtbase, qmakeHook, stdenv
}:

stdenv.mkDerivation rec {
  name = "libcommuni-${version}";
  version = "2016-01-02";

  src = fetchgit {
    url = "https://github.com/communi/libcommuni.git";
    rev = "779b0c774428669235d44d2db8e762558e2f4b79";
    sha256 = "15sb7vinaaz1v5nclxpnp5p9a0kmfmlgiqibkipnyydizclidpfx";
  };

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

  enableParallelBuild = true;

  configurePhase = ''
    sed -i -e 's|/bin/pwd|pwd|g' configure
    ./configure -config release -prefix $out -qmake $QMAKE
  '';

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