571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, check, cmake, pkg-config
|
|
, libtoxcore, filter-audio, dbus, libvpx, libX11, openal, freetype, libv4l
|
|
, libXrender, fontconfig, libXext, libXft, libsodium, libopus }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "utox";
|
|
|
|
version = "0.18.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "uTox";
|
|
repo = "uTox";
|
|
rev = "v${version}";
|
|
hash = "sha256-DxnolxUTn+CL6TbZHKLHOUMTHhtTSWufzzOTRpKjOwc=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
buildInputs = [
|
|
libtoxcore dbus libvpx libX11 openal freetype
|
|
libv4l libXrender fontconfig libXext libXft filter-audio
|
|
libsodium libopus
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake pkg-config
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DENABLE_AUTOUPDATE=OFF"
|
|
"-DENABLE_TESTS=${if doCheck then "ON" else "OFF"}"
|
|
];
|
|
|
|
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
|
|
nativeCheckInputs = [ check ];
|
|
|
|
meta = with lib; {
|
|
description = "Lightweight Tox client";
|
|
mainProgram = "utox";
|
|
homepage = "https://github.com/uTox/uTox";
|
|
license = licenses.gpl3;
|
|
maintainers = [ ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|