mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +00:00
531e4b80c9
Only acts on one-line dependency lists.
30 lines
915 B
Nix
30 lines
915 B
Nix
{ stdenv, fetchurl, pkgconfig, libusb }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "usbredir-${version}";
|
|
version = "0.7.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://spice-space.org/download/usbredir/${name}.tar.bz2";
|
|
sha256 = "1wsnmk4wjpdhbn1zaxg6bmyxspcki2zgy0am9lk037rnl4krwzj0";
|
|
};
|
|
|
|
# Works around bunch of "format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'uint64_t {aka long long unsigned int}'" warnings
|
|
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isi686 "-Wno-error=format";
|
|
|
|
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;
|
|
};
|
|
}
|