mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 09:33:41 +00:00
54 lines
908 B
Nix
54 lines
908 B
Nix
{ lib
|
|
, stdenv
|
|
, cmake
|
|
, fetchFromGitLab
|
|
, pkg-config
|
|
, meson
|
|
, ninja
|
|
, glib
|
|
, libusb1
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "usbredir";
|
|
version = "0.13.0";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
owner = "spice";
|
|
repo = "usbredir";
|
|
rev = "${pname}-${version}";
|
|
sha256 = "sha256-zehf0DkqSSvmatbk/UB1oySjyqiFUYTuIhqb5xKeK7I=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
libusb1
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dgit_werror=disabled"
|
|
"-Dtools=enabled"
|
|
"-Dfuzzing=disabled"
|
|
];
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
meta = with lib; {
|
|
description = "USB traffic redirection protocol";
|
|
homepage = "https://www.spice-space.org/usbredir.html";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ offline ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|