diff options
author | Emery Hemingway <ehmry@posteo.net> | 2024-03-31 09:32:35 +0100 |
---|---|---|
committer | Emery Hemingway <ehmry@posteo.net> | 2024-03-31 09:39:25 +0100 |
commit | 8736da4cc6e35748c6e6d06059971fb1063e75ff (patch) | |
tree | 819178a8ebf9ca178500668975c827917b92bcbb /pkgs/by-name/to | |
parent | d9b42d5143563e0c8d3dd10d108a8aa8c43be3f0 (diff) |
toxic: move to pkgs/by-name
Diffstat (limited to 'pkgs/by-name/to')
-rw-r--r-- | pkgs/by-name/to/toxic/package.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/by-name/to/toxic/package.nix b/pkgs/by-name/to/toxic/package.nix new file mode 100644 index 0000000000000..bd3f30adc6887 --- /dev/null +++ b/pkgs/by-name/to/toxic/package.nix @@ -0,0 +1,33 @@ +{ 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.11.3"; + + src = fetchFromGitHub { + owner = "Tox"; + repo = "toxic"; + rev = "v${version}"; + sha256 = "sha256-BabRY9iu5ccEXo5POrWkWaIWAeQU4MVlMK8I+Iju6aQ="; + }; + + makeFlags = [ "PREFIX=$(out)"]; + installFlags = [ "PREFIX=$(out)"]; + + buildInputs = [ + libtoxcore libsodium ncurses curl gdk-pixbuf libnotify + ] ++ lib.optionals (!stdenv.isAarch32) [ + openal libopus libvpx freealut qrencode + ]; + nativeBuildInputs = [ pkg-config libconfig ]; + + meta = with lib; src.meta // { + description = "Reference CLI for Tox"; + mainProgram = "toxic"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ ehmry ]; + platforms = platforms.linux; + }; +} |