@@ -1,28 +1,34 @@
1−{ stdenv, fetchurl, libtoxcore
1+{ stdenv, fetchgit, libtoxcore
22, conf ? null }:
33
44with stdenv.lib;
55
6+let
7+ configFile = optionalString (conf!=null) (builtins.toFile "config.h" conf);
8+in
9+
610stdenv.mkDerivation rec {
7− name = "ratox-0.2.1";
11+ name = "ratox-0.4";
812
9− src = fetchurl {
10− url = "http://git.2f30.org/ratox/snapshot/${name}.tar.gz";
11− sha256 = "0xnw3zcz9frmcxqhwg38hhnsy1g5xl9yc19nl0vwi5awz8wqqy19";
13+ src = fetchgit {
14+ url = "git://git.2f30.org/ratox.git";
15+ rev = "0db821b7bd566f6cfdc0cc5a7bbcc3e5e92adb4c";
16+ sha256 = "0wmf8hydbcq4bkpsld9vnqw4zfzf3f04vhgwy17nd4p5p389fbl5";
1217 };
1318
19+ patches = [ ./ldlibs.patch ];
20+
1421 buildInputs = [ libtoxcore ];
1522
16− configFile = optionalString (conf!=null) (builtins.toFile "config.h" conf);
1723 preConfigure = optionalString (conf!=null) "cp ${configFile} config.def.h";
1824
19− preBuild = "makeFlags=PREFIX=$out";
25+ makeFlags = [ "PREFIX=$(out)" ];
2026
21− meta =
22− { description = "FIFO based tox client";
23− homepage = http://ratox.2f30.org/;
24− license = licenses.isc;
25− maintainers = with maintainers; [ ehmry ];
26− platforms = platforms.linux;
27− };
27+ meta = {
28+ description = "FIFO based tox client";
29+ homepage = http://ratox.2f30.org/;
30+ license = licenses.isc;
31+ maintainers = with maintainers; [ ehmry ];
32+ platforms = platforms.linux;
33+ };
2834}