spice: 0.15.0 → 0.15.1

https://gitlab.freedesktop.org/spice/spice/-/tags/v0.15.1
https://gitlab.freedesktop.org/spice/spice/-/compare/v0.15.0...v0.15.1
fcfe9104bd...58d375e5ea

Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
This commit is contained in:
Jan Tojnar 2023-03-10 20:49:00 +01:00
parent 6a9a7646f9
commit 06ab7358ff

View file

@ -25,38 +25,18 @@
, gdk-pixbuf
}:
let
# This file was mistakenly not included with the 0.15.0 release tarball.
# Should be fixed with the next release.
# https://gitlab.freedesktop.org/spice/spice/-/issues/56
doxygen_sh = fetchurl {
url = "https://gitlab.freedesktop.org/spice/spice/-/raw/v0.15.0/doxygen.sh";
sha256 = "0g4bx91qclihp1jfhdhyj7wp4hf4289794xxbw32kk58lnd7bzkg";
};
in
stdenv.mkDerivation rec {
pname = "spice";
version = "0.15.0";
version = "0.15.1";
src = fetchurl {
url = "https://www.spice-space.org/download/releases/spice-server/${pname}-${version}.tar.bz2";
sha256 = "1xd0xffw0g5vvwbq4ksmm3jjfq45f9dw20xpmi82g1fj9f7wy85k";
sha256 = "ramvZ6syGRa9frWePWGaSneWwIooxzLt/H8C/ICxo3o=";
};
patches = [
./remove-rt-on-darwin.patch
];
postPatch = ''
install ${doxygen_sh} doxygen.sh
patchShebangs build-aux
# https://gitlab.freedesktop.org/spice/spice-common/-/issues/5
substituteInPlace subprojects/spice-common/meson.build \
--replace \
"cmd = run_command(python, '-m', module)" \
"cmd = run_command(python, '-c', 'import @0@'.format(module))"
'';
nativeBuildInputs = [
glib
@ -99,6 +79,13 @@ stdenv.mkDerivation rec {
"-Dgstreamer=1.0"
];
postPatch = ''
patchShebangs build-aux
# Forgotten in 0.15.1 tarball
sed -i /meson.add_dist_script/d meson.build
'';
postInstall = ''
ln -s spice-server $out/include/spice
'';