nixpkgs/pkgs/applications/networking/instant-messengers/ratox/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
897 B
Nix
Raw Normal View History

2021-01-15 05:42:41 +00:00
{ lib, stdenv, fetchgit, libtoxcore
, conf ? null }:
2017-12-01 00:00:00 +00:00
let
configFile = lib.optionalString (conf!=null) (builtins.toFile "config.h" conf);
2017-12-01 00:00:00 +00:00
2019-08-13 21:52:01 +00:00
in stdenv.mkDerivation {
pname = "ratox";
version = "0.4.20180303";
2017-12-01 00:00:00 +00:00
src = fetchgit {
url = "git://git.2f30.org/ratox.git";
2018-04-19 10:19:48 +00:00
rev = "269f7f97fb374a8f9c0b82195c21de15b81ddbbb";
sha256 = "0bpn37h8jvsqd66fkba8ky42nydc8acawa5x31yxqlxc8mc66k74";
};
buildInputs = [ libtoxcore ];
2018-04-19 10:19:48 +00:00
preConfigure = ''
substituteInPlace config.mk \
--replace '-lsodium -lopus -lvpx ' ""
${lib.optionalString (conf!=null) "cp ${configFile} config.def.h"}
2018-04-19 10:19:48 +00:00
'';
2017-12-01 00:00:00 +00:00
makeFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
2017-12-01 00:00:00 +00:00
description = "FIFO based tox client";
mainProgram = "ratox";
homepage = "http://ratox.2f30.org/";
2017-12-01 00:00:00 +00:00
license = licenses.isc;
maintainers = with maintainers; [ ehmry ];
platforms = platforms.linux;
};
}