32 lines
880 B
Nix
32 lines
880 B
Nix
{ stdenv, fetchFromGitHub, libsodium, ncurses, curl
|
|
, libtoxcore, openal, libvpx, freealut, libconfig, pkgconfig, libopus
|
|
, qrencode, gdk-pixbuf, libnotify }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "toxic";
|
|
version = "0.10.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Tox";
|
|
repo = "toxic";
|
|
rev = "v${version}";
|
|
sha256 = "1v9cdpy6i3xl70g75zg33sqi4aqp20by0pyjhjg5iz24fxvfaw6c";
|
|
};
|
|
|
|
makeFlags = [ "PREFIX=$(out)"];
|
|
installFlags = [ "PREFIX=$(out)"];
|
|
|
|
buildInputs = [
|
|
libtoxcore libsodium ncurses curl gdk-pixbuf libnotify
|
|
] ++ stdenv.lib.optionals (!stdenv.isAarch32) [
|
|
openal libopus libvpx freealut qrencode
|
|
];
|
|
nativeBuildInputs = [ pkgconfig libconfig ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Reference CLI for Tox";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|