Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
62 lines
1007 B
Nix
62 lines
1007 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
libsodium,
|
|
ncurses,
|
|
curl,
|
|
libtoxcore,
|
|
openal,
|
|
libvpx,
|
|
freealut,
|
|
libconfig,
|
|
pkg-config,
|
|
libopus,
|
|
qrencode,
|
|
gdk-pixbuf,
|
|
libnotify,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "toxic";
|
|
version = "0.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "TokTok";
|
|
repo = "toxic";
|
|
rev = "v${version}";
|
|
hash = "sha256-qwMkqPTONtG+LnH6a/Debp+n39dJpbUMoy1nIukYjKo=";
|
|
};
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
buildInputs = [
|
|
libtoxcore
|
|
libsodium
|
|
ncurses
|
|
curl
|
|
gdk-pixbuf
|
|
libnotify
|
|
]
|
|
++ lib.optionals (!stdenv.hostPlatform.isAarch32) [
|
|
openal
|
|
libopus
|
|
libvpx
|
|
freealut
|
|
qrencode
|
|
];
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
libconfig
|
|
];
|
|
|
|
meta = src.meta // {
|
|
description = "Reference CLI for Tox";
|
|
mainProgram = "toxic";
|
|
homepage = "https://github.com/TokTok/toxic";
|
|
license = lib.licenses.gpl3Only;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|