Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
111 lines
2.1 KiB
Nix
111 lines
2.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
meson,
|
|
ninja,
|
|
pkg-config,
|
|
pixman,
|
|
alsa-lib,
|
|
openssl,
|
|
libXrandr,
|
|
libXfixes,
|
|
libXext,
|
|
libXrender,
|
|
libXinerama,
|
|
libjpeg,
|
|
zlib,
|
|
spice-protocol,
|
|
python3,
|
|
glib,
|
|
cyrus_sasl,
|
|
libcacard,
|
|
lz4,
|
|
libopus,
|
|
gst_all_1,
|
|
orc,
|
|
gdk-pixbuf,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "spice";
|
|
version = "0.16.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.spice-space.org/download/releases/spice-server/${pname}-${version}.tar.bz2";
|
|
sha256 = "sha256-Cm7JUo8FNxJhu7LUb/Nee1xF/4m7l1qZr5Wl8g/0cX0=";
|
|
};
|
|
|
|
patches = [
|
|
./remove-rt-on-darwin.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
glib
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
python3
|
|
python3.pkgs.pyparsing
|
|
];
|
|
|
|
buildInputs = [
|
|
cyrus_sasl
|
|
glib
|
|
gst_all_1.gst-plugins-base
|
|
libXext
|
|
libXfixes
|
|
libXinerama
|
|
libXrandr
|
|
libXrender
|
|
libcacard
|
|
libjpeg
|
|
libopus
|
|
lz4
|
|
openssl
|
|
orc
|
|
pixman
|
|
python3.pkgs.pyparsing
|
|
spice-protocol
|
|
zlib
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isLinux [
|
|
alsa-lib
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin [
|
|
gdk-pixbuf
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-fno-stack-protector";
|
|
|
|
mesonFlags = [
|
|
"-Dgstreamer=1.0"
|
|
];
|
|
|
|
postPatch = ''
|
|
patchShebangs build-aux
|
|
'';
|
|
|
|
postInstall = ''
|
|
ln -s spice-server $out/include/spice
|
|
'';
|
|
|
|
meta = with 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 = with maintainers; [
|
|
atemu
|
|
];
|
|
platforms = with platforms; linux ++ darwin;
|
|
};
|
|
}
|