Merge pull request #60787 from worldofpeace/bump/spice-gtk
spice updates
This commit is contained in:
commit
b6ddecf2b2
@ -1,8 +1,39 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, spice-protocol, gettext, celt_0_5_1
|
{ stdenv
|
||||||
, openssl, libpulseaudio, pixman, gobject-introspection, libjpeg_turbo, zlib
|
, fetchurl
|
||||||
, cyrus_sasl, python2Packages, autoreconfHook, usbredir, libsoup
|
, pkgconfig
|
||||||
, withPolkit ? true, polkit, acl, usbutils
|
, fetchpatch
|
||||||
, vala, gtk3, epoxy, libdrm, gst_all_1, phodav, opusfile }:
|
, meson
|
||||||
|
, ninja
|
||||||
|
, python3
|
||||||
|
, spice-protocol
|
||||||
|
, gettext
|
||||||
|
, openssl
|
||||||
|
, libpulseaudio
|
||||||
|
, pixman
|
||||||
|
, gobject-introspection
|
||||||
|
, libjpeg_turbo
|
||||||
|
, zlib
|
||||||
|
, cyrus_sasl
|
||||||
|
, usbredir
|
||||||
|
, libsoup
|
||||||
|
, polkit
|
||||||
|
, acl
|
||||||
|
, usbutils
|
||||||
|
, vala
|
||||||
|
, gtk3
|
||||||
|
, epoxy
|
||||||
|
, libdrm
|
||||||
|
, gst_all_1
|
||||||
|
, phodav
|
||||||
|
, libopus
|
||||||
|
, gtk-doc
|
||||||
|
, json-glib
|
||||||
|
, lz4
|
||||||
|
, libcacard
|
||||||
|
, perl
|
||||||
|
, docbook_xsl
|
||||||
|
, withPolkit ? true
|
||||||
|
}:
|
||||||
|
|
||||||
# If this package is built with polkit support (withPolkit=true),
|
# If this package is built with polkit support (withPolkit=true),
|
||||||
# usb redirection reqires spice-client-glib-usb-acl-helper to run setuid root.
|
# usb redirection reqires spice-client-glib-usb-acl-helper to run setuid root.
|
||||||
@ -25,18 +56,15 @@
|
|||||||
# KERNEL=="*", SUBSYSTEMS=="usb", MODE="0664", GROUP="usb"
|
# KERNEL=="*", SUBSYSTEMS=="usb", MODE="0664", GROUP="usb"
|
||||||
# '';
|
# '';
|
||||||
|
|
||||||
with stdenv.lib;
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "spice-gtk";
|
||||||
|
version = "0.37";
|
||||||
|
|
||||||
let
|
outputs = [ "out" "dev" "devdoc" "man" ];
|
||||||
inherit (python2Packages) python pygtk;
|
|
||||||
in stdenv.mkDerivation rec {
|
|
||||||
name = "spice-gtk-0.35";
|
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.spice-space.org/download/gtk/${name}.tar.bz2";
|
url = "https://www.spice-space.org/download/gtk/${pname}-${version}.tar.bz2";
|
||||||
sha256 = "11lymg467gvj5ys8k22ihnfbxjn4x34ygyzirpg2nphjwlyhgrml";
|
sha256 = "1drvj8y35gnxbnrxsipwi15yh0vs9ixzv4wslz6r3lra8w3bfa0z";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -45,27 +73,50 @@ in stdenv.mkDerivation rec {
|
|||||||
--replace 'ACL_HELPER_PATH"/' '"'
|
--replace 'ACL_HELPER_PATH"/' '"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [
|
nativeBuildInputs = [
|
||||||
spice-protocol celt_0_5_1 openssl libpulseaudio gst_all_1.gst-plugins-base pixman
|
docbook_xsl
|
||||||
libjpeg_turbo zlib cyrus_sasl python pygtk usbredir gtk3 epoxy libdrm phodav opusfile
|
gettext
|
||||||
] ++ optionals withPolkit [ polkit acl usbutils ] ;
|
gobject-introspection
|
||||||
|
gtk-doc
|
||||||
|
libsoup
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
perl
|
||||||
|
pkgconfig
|
||||||
|
python3
|
||||||
|
python3.pkgs.pyparsing
|
||||||
|
python3.pkgs.six
|
||||||
|
vala
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig gettext libsoup autoreconfHook vala gobject-introspection ];
|
buildInputs = [
|
||||||
|
cyrus_sasl
|
||||||
|
epoxy
|
||||||
|
gst_all_1.gst-plugins-base
|
||||||
|
gtk3
|
||||||
|
json-glib
|
||||||
|
libcacard
|
||||||
|
libdrm
|
||||||
|
libjpeg_turbo
|
||||||
|
lz4
|
||||||
|
openssl
|
||||||
|
libopus
|
||||||
|
phodav
|
||||||
|
pixman
|
||||||
|
spice-protocol
|
||||||
|
usbredir
|
||||||
|
zlib
|
||||||
|
] ++ stdenv.lib.optionals withPolkit [ polkit acl usbutils ] ;
|
||||||
|
|
||||||
PKG_CONFIG_POLKIT_GOBJECT_1_POLICYDIR = "${placeholder "out"}/share/polkit-1/actions";
|
PKG_CONFIG_POLKIT_GOBJECT_1_POLICYDIR = "${placeholder "out"}/share/polkit-1/actions";
|
||||||
|
|
||||||
configureFlags = [
|
mesonFlags = [
|
||||||
"--with-gtk3"
|
"-Dauto_features=enabled"
|
||||||
"--enable-introspection"
|
"-Dcelt051=disabled"
|
||||||
"--enable-vala"
|
"-Dpulse=disabled" # is deprecated upstream
|
||||||
"--enable-celt051"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
dontDisableStatic = true; # Needed by the coroutine test
|
meta = with stdenv.lib; {
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
description = "A GTK+3 SPICE widget";
|
description = "A GTK+3 SPICE widget";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
spice-gtk is a GTK+3 SPICE widget. It features glib-based
|
spice-gtk is a GTK+3 SPICE widget. It features glib-based
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "spice-protocol-0.12.15";
|
pname = "spice-protocol";
|
||||||
|
version = "0.14.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.spice-space.org/download/releases/${name}.tar.bz2";
|
url = "https://www.spice-space.org/download/releases/${pname}-${version}.tar.bz2";
|
||||||
sha256 = "06b461i4jv741in8617jjpfk28wk7zs9p7841njkf4sbm8xv4kcb";
|
sha256 = "1b3f44c13pqsp7aabmcinfbmgl79038bp5548l5pjs16lcfam95n";
|
||||||
};
|
};
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
26
pkgs/development/libraries/spice/correct-meson.patch
Normal file
26
pkgs/development/libraries/spice/correct-meson.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
diff --git a/meson.build b/meson.build
|
||||||
|
index 8b8ae8bb..e58c436c 100644
|
||||||
|
--- a/meson.build
|
||||||
|
+++ b/meson.build
|
||||||
|
@@ -2,7 +2,7 @@
|
||||||
|
# project definition
|
||||||
|
#
|
||||||
|
project('spice', 'c',
|
||||||
|
- version : run_command('build-aux/git-version-gen', '${MESON_SOURCE_ROOT}/.tarball-version', check : true).stdout().strip(),
|
||||||
|
+ version : run_command('build-aux/git-version-gen', meson.source_root() + '/.tarball-version', check : true).stdout().strip(),
|
||||||
|
license : 'LGPLv2.1',
|
||||||
|
meson_version : '>= 0.48')
|
||||||
|
|
||||||
|
diff --git a/server/meson.build b/server/meson.build
|
||||||
|
index 34d8eef1..988ccab2 100644
|
||||||
|
--- a/server/meson.build
|
||||||
|
+++ b/server/meson.build
|
||||||
|
@@ -7,7 +7,7 @@ version_info = meson.project_version().split('.')
|
||||||
|
major = '@0@'.format(version_info[0])
|
||||||
|
minor = '@0@'.format(version_info[1])
|
||||||
|
micro = version_info[2].to_int()
|
||||||
|
-if not version_info[3].contains('git')
|
||||||
|
+if not version_info.contains('git')
|
||||||
|
micro += 1
|
||||||
|
endif
|
||||||
|
micro = '@0@'.format(micro)
|
@ -1,38 +1,93 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, pixman, celt, alsaLib
|
{ stdenv
|
||||||
, openssl, libXrandr, libXfixes, libXext, libXrender, libXinerama
|
, substituteAll
|
||||||
, libjpeg, zlib, spice-protocol, python, pyparsing, glib, cyrus_sasl
|
, fetchurl
|
||||||
, libcacard, lz4 }:
|
, meson
|
||||||
|
, ninja
|
||||||
with stdenv.lib;
|
, pkgconfig
|
||||||
|
, pixman
|
||||||
|
, alsaLib
|
||||||
|
, openssl
|
||||||
|
, libXrandr
|
||||||
|
, libXfixes
|
||||||
|
, libXext
|
||||||
|
, libXrender
|
||||||
|
, libXinerama
|
||||||
|
, libjpeg
|
||||||
|
, zlib
|
||||||
|
, spice-protocol
|
||||||
|
, python3
|
||||||
|
, glib
|
||||||
|
, cyrus_sasl
|
||||||
|
, libcacard
|
||||||
|
, lz4
|
||||||
|
, libopus
|
||||||
|
, gst_all_1
|
||||||
|
, orc
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "spice-0.14.0";
|
pname = "spice";
|
||||||
|
version = "0.14.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.spice-space.org/download/releases/${name}.tar.bz2";
|
url = "https://www.spice-space.org/download/releases/${pname}-${version}.tar.bz2";
|
||||||
sha256 = "0j5q7cp5p95jk8fp48gz76rz96lifimdsx1wnpmfal0nnnar9nrs";
|
sha256 = "19r999py9v9c7md2bb8ysj809ag1hh6djl1ik8jcgx065s4b60xj";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pixman celt alsaLib openssl libjpeg zlib
|
patches = [
|
||||||
libXrandr libXfixes libXrender libXext libXinerama
|
# submitted https://gitlab.freedesktop.org/spice/spice/merge_requests/4
|
||||||
python pyparsing glib cyrus_sasl libcacard lz4 ];
|
./correct-meson.patch
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig spice-protocol ];
|
postPatch = ''
|
||||||
|
patchShebangs build-aux
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
pkgconfig
|
||||||
|
spice-protocol
|
||||||
|
python3
|
||||||
|
python3.pkgs.six
|
||||||
|
python3.pkgs.pyparsing
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
alsaLib
|
||||||
|
cyrus_sasl
|
||||||
|
glib
|
||||||
|
gst_all_1.gst-plugins-base
|
||||||
|
libXext
|
||||||
|
libXfixes
|
||||||
|
libXinerama
|
||||||
|
libXrandr
|
||||||
|
libXrender
|
||||||
|
libcacard
|
||||||
|
libjpeg
|
||||||
|
libopus
|
||||||
|
lz4
|
||||||
|
openssl
|
||||||
|
orc
|
||||||
|
pixman
|
||||||
|
python3.pkgs.pyparsing
|
||||||
|
zlib
|
||||||
|
];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-fno-stack-protector";
|
NIX_CFLAGS_COMPILE = "-fno-stack-protector";
|
||||||
|
|
||||||
configureFlags = [
|
mesonFlags = [
|
||||||
"--with-sasl"
|
"-Dauto_features=enabled"
|
||||||
"--enable-smartcard"
|
"-Dgstreamer=1.0"
|
||||||
"--enable-client"
|
"-Dcelt051=disabled"
|
||||||
"--enable-lz4"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
ln -s spice-server $out/include/spice
|
ln -s spice-server $out/include/spice
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "Complete open source solution for interaction with virtualized desktop devices";
|
description = "Complete open source solution for interaction with virtualized desktop devices";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
The Spice project aims to provide a complete open source solution for interaction
|
The Spice project aims to provide a complete open source solution for interaction
|
||||||
|
@ -13175,10 +13175,7 @@ in
|
|||||||
|
|
||||||
sphinxsearch = callPackage ../servers/search/sphinxsearch { };
|
sphinxsearch = callPackage ../servers/search/sphinxsearch { };
|
||||||
|
|
||||||
spice = callPackage ../development/libraries/spice {
|
spice = callPackage ../development/libraries/spice { };
|
||||||
celt = celt_0_5_1;
|
|
||||||
inherit (pythonPackages) pyparsing;
|
|
||||||
};
|
|
||||||
|
|
||||||
spice-gtk = callPackage ../development/libraries/spice-gtk { };
|
spice-gtk = callPackage ../development/libraries/spice-gtk { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user