nixpkgs/pkgs/development/libraries/spice/default.nix

102 lines
2.0 KiB
Nix
Raw Normal View History

2019-05-19 02:45:22 +00:00
{ 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 {
2019-05-19 02:45:22 +00:00
pname = "spice";
version = "0.14.2";
src = fetchurl {
2019-05-19 02:45:22 +00:00
url = "https://www.spice-space.org/download/releases/${pname}-${version}.tar.bz2";
sha256 = "19r999py9v9c7md2bb8ysj809ag1hh6djl1ik8jcgx065s4b60xj";
};
2019-05-19 02:45:22 +00:00
patches = [
# submitted https://gitlab.freedesktop.org/spice/spice/merge_requests/4
./correct-meson.patch
];
postPatch = ''
patchShebangs build-aux
'';
nativeBuildInputs = [
meson
ninja
pkgconfig
spice-protocol
python3
python3.pkgs.six
python3.pkgs.pyparsing
];
2019-05-19 02:45:22 +00:00
buildInputs = [
alsaLib
celt_0_5_1
cyrus_sasl
glib
libXext
libXfixes
libXinerama
libXrandr
libXrender
libcacard
libjpeg
lz4
openssl
pixman
python3.pkgs.pyparsing
zlib
];
2012-12-05 10:54:21 +00:00
NIX_CFLAGS_COMPILE = "-fno-stack-protector";
2019-05-19 02:45:22 +00:00
mesonFlags = [
"-Dauto_features=enabled"
"-Dopus=disabled"
"-Dgstreamer=no"
];
postInstall = ''
ln -s spice-server $out/include/spice
'';
2019-05-19 02:45:22 +00:00
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
with virtualized desktop devices.The Spice project deals with both the virtualized
devices and the front-end. Interaction between front-end and back-end is done using
VD-Interfaces. The VD-Interfaces (VDI) enable both ends of the solution to be easily
utilized by a third-party component.
'';
homepage = https://www.spice-space.org/;
license = licenses.lgpl21;
maintainers = [ maintainers.bluescreen303 ];
platforms = platforms.linux;
};
}