spice: 0.14.0 -> 0.14.2, meson
This commit is contained in:
parent
aba04ea5f3
commit
e3da5d4c8e
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,89 @@
|
|||||||
{ 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
|
||||||
|
, celt_0_5_1
|
||||||
|
, alsaLib
|
||||||
|
, openssl
|
||||||
|
, libXrandr
|
||||||
|
, libXfixes
|
||||||
|
, libXext
|
||||||
|
, libXrender
|
||||||
|
, libXinerama
|
||||||
|
, libjpeg
|
||||||
|
, zlib
|
||||||
|
, spice-protocol
|
||||||
|
, python3
|
||||||
|
, glib
|
||||||
|
, cyrus_sasl
|
||||||
|
, libcacard
|
||||||
|
, lz4
|
||||||
|
}:
|
||||||
|
|
||||||
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
|
||||||
|
celt_0_5_1
|
||||||
|
cyrus_sasl
|
||||||
|
glib
|
||||||
|
libXext
|
||||||
|
libXfixes
|
||||||
|
libXinerama
|
||||||
|
libXrandr
|
||||||
|
libXrender
|
||||||
|
libcacard
|
||||||
|
libjpeg
|
||||||
|
lz4
|
||||||
|
openssl
|
||||||
|
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"
|
"-Dopus=disabled"
|
||||||
"--enable-client"
|
"-Dgstreamer=no"
|
||||||
"--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
|
||||||
|
@ -13002,10 +13002,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…
Reference in New Issue
Block a user