nixpkgs/pkgs/development/libraries/usbredir/default.nix

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

54 lines
908 B
Nix
Raw Normal View History

2021-08-09 23:18:42 +01:00
{ lib
, stdenv
, cmake
, fetchFromGitLab
, pkg-config
, meson
, ninja
, glib
, libusb1
}:
stdenv.mkDerivation rec {
pname = "usbredir";
2021-12-06 09:58:15 +00:00
version = "0.12.0";
2021-08-09 23:18:42 +01:00
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "spice";
repo = "usbredir";
rev = "${pname}-${version}";
2021-12-06 09:58:15 +00:00
sha256 = "sha256-OVLc3FWLBjWJnqIhhe6k+pl/HsJGzqD6xp/fXXEgRwY=";
};
2021-08-09 23:18:42 +01:00
nativeBuildInputs = [
meson
ninja
pkg-config
];
usbredir: Fix 32-bit build Avoid these warnings from being errors: usbredirhost.c: In function 'usbredirhost_can_write_iso_package': usbredirhost.c:1023:19: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned int}' [-Wformat=] DEBUG("START dropping isoc packets %lu buffer > %lu hi threshold", ^ usbredirhost.c:1023:19: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'uint64_t {aka long long unsigned int}' [-Wformat=] DEBUG("START dropping isoc packets %lu buffer > %lu hi threshold", ^ usbredirhost.c:1028:19: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned int}' [-Wformat=] DEBUG("STOP dropping isoc packets %lu buffer < %lu low threshold", ^ usbredirhost.c:1028:19: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'uint64_t {aka long long unsigned int}' [-Wformat=] DEBUG("STOP dropping isoc packets %lu buffer < %lu low threshold", ^ usbredirhost.c: In function 'usbredirhost_set_iso_threshold': usbredirhost.c:1162:11: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned int}' [-Wformat=] DEBUG("higher threshold is %lu bytes | lower threshold is %lu bytes", ^ usbredirhost.c:1162:11: warning: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'uint64_t {aka long long unsigned int}' [-Wformat=] DEBUG("higher threshold is %lu bytes | lower threshold is %lu bytes", I think in all of these cases, the incorrect format modifier just causes wrong debug prints on i686.
2016-09-30 10:18:33 +01:00
2021-08-28 18:52:23 +01:00
buildInputs = [
glib
];
2021-08-09 23:18:42 +01:00
propagatedBuildInputs = [
libusb1
];
mesonFlags = [
"-Dgit_werror=disabled"
"-Dtools=enabled"
"-Dfuzzing=disabled"
];
2017-03-22 16:05:00 +00:00
outputs = [ "out" "dev" ];
meta = with lib; {
description = "USB traffic redirection protocol";
homepage = "https://www.spice-space.org/usbredir.html";
2021-08-09 23:18:42 +01:00
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ offline ];
platforms = platforms.unix;
};
}