nixpkgs/pkgs/by-name/to/toxic/package.nix

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

35 lines
972 B
Nix
Raw Normal View History

2022-09-27 22:46:27 +00:00
{ lib, stdenv, fetchFromGitHub, libsodium, ncurses, curl
, libtoxcore, openal, libvpx, freealut, libconfig, pkg-config, libopus
2019-05-22 11:03:39 +00:00
, qrencode, gdk-pixbuf, libnotify }:
stdenv.mkDerivation rec {
pname = "toxic";
2024-03-31 08:36:36 +00:00
version = "0.15.1";
src = fetchFromGitHub {
2024-03-31 08:36:36 +00:00
owner = "TokTok";
2017-02-14 06:59:30 +00:00
repo = "toxic";
rev = "v${version}";
2024-03-31 08:36:36 +00:00
sha256 = "sha256-+nOjlQED2pbYwGV6IGeKK1pymBSrDVWCWKjZ42vib7E=";
};
2017-02-14 06:59:30 +00:00
makeFlags = [ "PREFIX=$(out)"];
installFlags = [ "PREFIX=$(out)"];
buildInputs = [
2019-05-22 11:03:39 +00:00
libtoxcore libsodium ncurses curl gdk-pixbuf libnotify
2021-01-15 05:42:41 +00:00
] ++ lib.optionals (!stdenv.isAarch32) [
2019-01-01 16:19:07 +00:00
openal libopus libvpx freealut qrencode
];
nativeBuildInputs = [ pkg-config libconfig ];
2024-03-31 08:36:36 +00:00
meta = src.meta // {
description = "Reference CLI for Tox";
mainProgram = "toxic";
2024-03-31 08:36:36 +00:00
homepage = "https://github.com/TokTok/toxic";
2024-03-31 22:10:33 +00:00
license = lib.licenses.gpl3Only;
2024-03-31 08:36:36 +00:00
maintainers = with lib.maintainers; [ ehmry ];
platforms = lib.platforms.linux;
};
}