summary refs log tree commit diff
path: root/pkgs/applications/networking/p2p/ldcpp/default.nix
blob: 14b68d71e79a42c6ea2a8fc9a20c4835fd673750 (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
{ stdenv, fetchurl, scons, pkgconfig, gtk, bzip2, libglade, openssl
, libX11, boost, zlib, libnotify }:

stdenv.mkDerivation rec {
  name = "ldcpp-1.1.0";
  src = fetchurl {
    url = http://launchpad.net/linuxdcpp/1.1/1.1.0/+download/linuxdcpp-1.1.0.tar.bz2;
    sha256 = "12i92hirmwryl1qy0n3jfrpziwzb82f61xca9jcjwyilx502f0b6";
  };
  buildInputs = [ scons pkgconfig gtk bzip2 libglade openssl libX11 boost libnotify ];

  installPhase = ''
    export NIX_LDFLAGS="$NIX_LDFLAGS -lX11";

    touch gettext xgettext msgfmt msgcat
    chmod +x gettext xgettext msgfmt msgcat
    export PATH=$PATH:$PWD

    mkdir -p $out
    scons PREFIX=$out
    scons PREFIX=$out install
  '';

  meta = {
    description = "Direct Connect client";
    license = stdenv.lib.licenses.gpl2;
  };
}