summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/ratox/default.nix
blob: 4635814e11c2cdbf7fc6a30fd366267764d437d5 (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, libtoxcore
, conf ? null }:

with stdenv.lib;

stdenv.mkDerivation rec {
  name = "ratox-0.2.1";

  src = fetchurl {
    url = "nix-prefetch-url http://git.2f30.org/ratox/snapshot/${name}.tar.gz";
    sha256 = "1fm9b3clvnc2nf0pd1z8g08kfszwhk1ij1lyx57wl8vd51z4xsi5";
  };

  buildInputs = [ libtoxcore ];

  configFile = optionalString (conf!=null) (builtins.toFile "config.h" conf);
  preConfigure = optionalString (conf!=null) "cp ${configFile} config.def.h";

  preBuild = "makeFlags=PREFIX=$out";

  meta =
    { description = "FIFO based tox client";
      homepage = http://ratox.2f30.org/;
      license = licenses.isc;
      maintainers = with maintainers; [ emery ];
      platforms = platforms.linux;
    };
}