summary refs log tree commit diff
path: root/pkgs/development/libraries/usbredir/default.nix
blob: 8e43135196c9024d2500cd55e807ba4c38aaaac5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchurl, pkgconfig, libusb }:

stdenv.mkDerivation rec {
  pname = "usbredir";
  version = "0.8.0";

  src = fetchurl {
    url = "https://spice-space.org/download/usbredir/${pname}-${version}.tar.bz2";
    sha256 = "002yik1x7kn0427xahvnhjby2np14a6xqw7c3dx530n9h5d9rg47";
  };

  NIX_CFLAGS_COMPILE = "-Wno-error";

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ libusb ];
  propagatedBuildInputs = [ libusb ];

  outputs = [ "out" "dev" ];

  meta = with stdenv.lib; {
    description = "USB traffic redirection protocol";
    homepage = http://spice-space.org/page/UsbRedir;
    license = licenses.lgpl21;

    maintainers = [ maintainers.offline ];
    platforms = platforms.linux;
  };
}