diff --git a/pkgs/applications/networking/instant-messengers/toxic/default.nix b/pkgs/applications/networking/instant-messengers/toxic/default.nix new file mode 100644 index 000000000000..a87bcc651d6f --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/toxic/default.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchurl, autoconf, libtool, automake, libsodium, ncurses +, tox_core, pkgconfig }: + +let + version = "75d356e52a"; + date = "20131011"; +in +stdenv.mkDerivation rec { + name = "toxic-${date}-${version}"; + + src = fetchurl { + url = "https://github.com/Tox/toxic/tarball/${version}"; + name = "${name}.tar.gz"; + sha256 = "14wyvms8l07sl88g8y6g2jv95sq7cnhbaqf4n32xxilch8rymq47"; + }; + + preConfigure = '' + autoreconf -i + ''; + + NIX_LDFLAGS = "-lsodium"; + + configureFlags = [ + "--with-libtoxcore-headers=${tox_core}/include" + "--with-libtoxcore-libs=${tox_core}/lib" + "--with-libsodium-headers=${tox_core}/include" + "--with-libsodium-libs=${tox_core}/lib" + ]; + + buildInputs = [ autoconf libtool automake tox_core libsodium ncurses pkgconfig ]; + + doCheck = true; + + meta = { + description = "Reference CLI for Tox"; + license = "GPLv3+"; + maintainers = with stdenv.lib.maintainers; [ viric ]; + platforms = stdenv.lib.platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b24a4b2dc891..b80e83b1dc17 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8719,6 +8719,8 @@ let tox_core = callPackage ../applications/networking/instant-messengers/toxcore { }; + toxic = callPackage ../applications/networking/instant-messengers/toxic { }; + transmission = callPackage ../applications/networking/p2p/transmission { }; transmission_gtk = transmission.override { enableGTK3 = true; };