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
|
||||
, openssl, libXrandr, libXfixes, libXext, libXrender, libXinerama
|
||||
, libjpeg, zlib, spice-protocol, python, pyparsing, glib, cyrus_sasl
|
||||
, libcacard, lz4 }:
|
||||
|
||||
with stdenv.lib;
|
||||
{ stdenv
|
||||
, substituteAll
|
||||
, fetchurl
|
||||
, meson
|
||||
, ninja
|
||||
, 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 {
|
||||
name = "spice-0.14.0";
|
||||
pname = "spice";
|
||||
version = "0.14.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.spice-space.org/download/releases/${name}.tar.bz2";
|
||||
sha256 = "0j5q7cp5p95jk8fp48gz76rz96lifimdsx1wnpmfal0nnnar9nrs";
|
||||
url = "https://www.spice-space.org/download/releases/${pname}-${version}.tar.bz2";
|
||||
sha256 = "19r999py9v9c7md2bb8ysj809ag1hh6djl1ik8jcgx065s4b60xj";
|
||||
};
|
||||
|
||||
buildInputs = [ pixman celt alsaLib openssl libjpeg zlib
|
||||
libXrandr libXfixes libXrender libXext libXinerama
|
||||
python pyparsing glib cyrus_sasl libcacard lz4 ];
|
||||
patches = [
|
||||
# submitted https://gitlab.freedesktop.org/spice/spice/merge_requests/4
|
||||
./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";
|
||||
|
||||
configureFlags = [
|
||||
"--with-sasl"
|
||||
"--enable-smartcard"
|
||||
"--enable-client"
|
||||
"--enable-lz4"
|
||||
mesonFlags = [
|
||||
"-Dauto_features=enabled"
|
||||
"-Dopus=disabled"
|
||||
"-Dgstreamer=no"
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
ln -s spice-server $out/include/spice
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
description = "Complete open source solution for interaction with virtualized desktop devices";
|
||||
longDescription = ''
|
||||
The Spice project aims to provide a complete open source solution for interaction
|
||||
|
@ -13002,10 +13002,7 @@ in
|
||||
|
||||
sphinxsearch = callPackage ../servers/search/sphinxsearch { };
|
||||
|
||||
spice = callPackage ../development/libraries/spice {
|
||||
celt = celt_0_5_1;
|
||||
inherit (pythonPackages) pyparsing;
|
||||
};
|
||||
spice = callPackage ../development/libraries/spice { };
|
||||
|
||||
spice-gtk = callPackage ../development/libraries/spice-gtk { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user