Merge pull request #129318 from fabaff/bump-usbredir
This commit is contained in:
commit
dc000ffa21
1 changed files with 34 additions and 11 deletions
|
@ -1,27 +1,50 @@
|
||||||
{ lib, stdenv, fetchurl, pkg-config, libusb1 }:
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, cmake
|
||||||
|
, fetchFromGitLab
|
||||||
|
, pkg-config
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, glib
|
||||||
|
, libusb1
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "usbredir";
|
pname = "usbredir";
|
||||||
version = "0.8.0";
|
version = "0.10.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitLab {
|
||||||
url = "https://spice-space.org/download/usbredir/${pname}-${version}.tar.bz2";
|
domain = "gitlab.freedesktop.org";
|
||||||
sha256 = "002yik1x7kn0427xahvnhjby2np14a6xqw7c3dx530n9h5d9rg47";
|
owner = "spice";
|
||||||
|
repo = "usbredir";
|
||||||
|
rev = "${pname}-${version}";
|
||||||
|
sha256 = "1dz8jms9l6gg2hw0k6p1p1lnchc9mcgmskgvm5gbdvw3j7wrhdbz";
|
||||||
};
|
};
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-Wno-error";
|
nativeBuildInputs = [
|
||||||
|
glib
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
propagatedBuildInputs = [
|
||||||
propagatedBuildInputs = [ libusb1 ];
|
libusb1
|
||||||
|
];
|
||||||
|
|
||||||
|
mesonFlags = [
|
||||||
|
"-Dgit_werror=disabled"
|
||||||
|
"-Dtools=enabled"
|
||||||
|
"-Dfuzzing=disabled"
|
||||||
|
];
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "USB traffic redirection protocol";
|
description = "USB traffic redirection protocol";
|
||||||
homepage = "https://www.spice-space.org/usbredir.html";
|
homepage = "https://www.spice-space.org/usbredir.html";
|
||||||
license = licenses.lgpl21;
|
license = licenses.lgpl21Plus;
|
||||||
|
maintainers = with maintainers; [ offline ];
|
||||||
maintainers = [ maintainers.offline ];
|
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue