spice-gtk: 0.37 → 0.40
Fixes #159270. Co-authored-by: Tadeo Kondrak <me@tadeo.ca> Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
parent
48d63e924a
commit
5c5f2b547f
1 changed files with 15 additions and 7 deletions
|
@ -9,8 +9,10 @@
|
|||
, gst_all_1
|
||||
, gtk-doc
|
||||
, gtk3
|
||||
, hwdata
|
||||
, json-glib
|
||||
, libcacard
|
||||
, libcap_ng
|
||||
, libdrm
|
||||
, libjpeg_turbo
|
||||
, libopus
|
||||
|
@ -28,8 +30,8 @@
|
|||
, python3
|
||||
, spice-protocol
|
||||
, usbredir
|
||||
, usbutils
|
||||
, vala
|
||||
, wayland-protocols
|
||||
, zlib
|
||||
, withPolkit ? true
|
||||
}:
|
||||
|
@ -57,19 +59,23 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "spice-gtk";
|
||||
version = "0.37";
|
||||
version = "0.40";
|
||||
|
||||
outputs = [ "out" "dev" "devdoc" "man" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.spice-space.org/download/gtk/${pname}-${version}.tar.bz2";
|
||||
sha256 = "1drvj8y35gnxbnrxsipwi15yh0vs9ixzv4wslz6r3lra8w3bfa0z";
|
||||
url = "https://www.spice-space.org/download/gtk/${pname}-${version}.tar.xz";
|
||||
sha256 = "sha256-I/X/f6gLdWR85zzaXq+LMi80Mtu7f286g5Y0YYrbztM=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# get rid of absolute path to helper in store so we can use a setuid wrapper
|
||||
substituteInPlace src/usb-acl-helper.c \
|
||||
--replace 'ACL_HELPER_PATH"/' '"'
|
||||
# don't try to setcap/suid in a nix builder
|
||||
substituteInPlace src/meson.build \
|
||||
--replace "meson.add_install_script('../build-aux/setcap-or-suid'," \
|
||||
"# meson.add_install_script('../build-aux/setcap-or-suid',"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
@ -98,6 +104,7 @@ stdenv.mkDerivation rec {
|
|||
gtk3
|
||||
json-glib
|
||||
libcacard
|
||||
libcap_ng
|
||||
libdrm
|
||||
libjpeg_turbo
|
||||
libopus
|
||||
|
@ -108,14 +115,15 @@ stdenv.mkDerivation rec {
|
|||
pixman
|
||||
spice-protocol
|
||||
usbredir
|
||||
wayland-protocols
|
||||
zlib
|
||||
] ++ lib.optionals withPolkit [ polkit acl usbutils ] ;
|
||||
] ++ lib.optionals withPolkit [ polkit acl ] ;
|
||||
|
||||
PKG_CONFIG_POLKIT_GOBJECT_1_POLICYDIR = "${placeholder "out"}/share/polkit-1/actions";
|
||||
|
||||
mesonFlags = [
|
||||
"-Dcelt051=disabled"
|
||||
"-Dpulse=disabled" # is deprecated upstream
|
||||
"-Dusb-acl-helper-dir=${placeholder "out"}/bin"
|
||||
"-Dusb-ids-path=${hwdata}/share/hwdata/usb.ids"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue