libsForQt5.phonon-backend-gstreamer: 4.9.0 → 4.10.0
Required to build with Phonon 4.11 (https://github.com/NixOS/nixpkgs/pull/71745). Not having this blocks the channels. Requires qttools for Qt5LinguistTools. Qt4 support removed since Phonon no longer supports it either. Co-authored-by: worldofpeace <worldofpeace@protonmail.ch>
This commit is contained in:
parent
77661f8cfd
commit
c6147f7ec8
@ -1,21 +1,13 @@
|
|||||||
{ stdenv, lib, fetchurl, cmake, gst_all_1, phonon, pkgconfig
|
{ stdenv, lib, fetchurl, cmake, gst_all_1, phonon, pkgconfig
|
||||||
, extra-cmake-modules, qtbase ? null, qtx11extras ? null, qt4 ? null
|
, extra-cmake-modules, qttools, qtbase, qtx11extras
|
||||||
, withQt5 ? false
|
|
||||||
, debug ? false
|
, debug ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
v = "4.9.0";
|
|
||||||
pname = "phonon-backend-gstreamer";
|
pname = "phonon-backend-gstreamer";
|
||||||
in
|
version = "4.10.0";
|
||||||
|
|
||||||
assert withQt5 -> qtbase != null;
|
|
||||||
assert withQt5 -> qtx11extras != null;
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
name = "${pname}-${if withQt5 then "qt5" else "qt4"}-${v}";
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = https://phonon.kde.org/;
|
homepage = https://phonon.kde.org/;
|
||||||
@ -26,8 +18,8 @@ stdenv.mkDerivation {
|
|||||||
};
|
};
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://kde/stable/phonon/${pname}/${v}/${pname}-${v}.tar.xz";
|
url = "mirror://kde/stable/phonon/${pname}/${version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "1wc5p1rqglf0n1avp55s50k7fjdzdrhg0gind15k8796w7nfbhyf";
|
sha256 = "1wk1ip2w7fkh65zk6rilj314dna0hgsv2xhjmpr5w08xa8sii1y5";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Hardcode paths to useful plugins so the backend doesn't depend
|
# Hardcode paths to useful plugins so the backend doesn't depend
|
||||||
@ -52,17 +44,26 @@ stdenv.mkDerivation {
|
|||||||
''-DGST_PLUGIN_PATH_1_0="${gstPluginPaths}"''
|
''-DGST_PLUGIN_PATH_1_0="${gstPluginPaths}"''
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = with gst_all_1;
|
buildInputs = with gst_all_1; [
|
||||||
[ gstreamer gst-plugins-base phonon ]
|
gstreamer
|
||||||
++ (if withQt5 then [ qtbase qtx11extras ] else [ qt4 ]);
|
gst-plugins-base
|
||||||
|
phonon
|
||||||
|
qtbase
|
||||||
|
qtx11extras
|
||||||
|
];
|
||||||
|
|
||||||
# cleanup: the build system creates (empty) $out/$out/share/icons (double prefix)
|
# cleanup: the build system creates (empty) $out/$out/share/icons (double prefix)
|
||||||
# if DESTDIR is unset
|
# if DESTDIR is unset
|
||||||
DESTDIR="/";
|
DESTDIR="/";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkgconfig ] ++ optional withQt5 extra-cmake-modules;
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
pkgconfig
|
||||||
|
extra-cmake-modules
|
||||||
|
qttools
|
||||||
|
];
|
||||||
|
|
||||||
cmakeFlags =
|
cmakeFlags = [
|
||||||
[ "-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}" ]
|
"-DCMAKE_BUILD_TYPE=${if debug then "Debug" else "Release"}"
|
||||||
++ optional withQt5 "-DPHONON_BUILD_PHONON4QT5=ON";
|
];
|
||||||
}
|
}
|
||||||
|
@ -309,6 +309,7 @@ mapAliases ({
|
|||||||
procps-ng = procps; # added 2018-06-08
|
procps-ng = procps; # added 2018-06-08
|
||||||
pyo3-pack = maturin;
|
pyo3-pack = maturin;
|
||||||
pulseaudioLight = pulseaudio; # added 2018-04-25
|
pulseaudioLight = pulseaudio; # added 2018-04-25
|
||||||
|
phonon-backend-gstreamer = throw "Please use libsForQt5.phonon-backend-gstreamer, as Qt4 support in this package has been removed."; # added 2019-11-22
|
||||||
qca-qt5 = libsForQt5.qca-qt5; # added 2015-12-19
|
qca-qt5 = libsForQt5.qca-qt5; # added 2015-12-19
|
||||||
quake3game = ioquake3; # added 2016-01-14
|
quake3game = ioquake3; # added 2016-01-14
|
||||||
qwt6 = libsForQt5.qwt; # added 2015-12-19
|
qwt6 = libsForQt5.qwt; # added 2015-12-19
|
||||||
|
@ -13414,8 +13414,6 @@ in
|
|||||||
|
|
||||||
phonon = callPackage ../development/libraries/phonon {};
|
phonon = callPackage ../development/libraries/phonon {};
|
||||||
|
|
||||||
phonon-backend-gstreamer = callPackage ../development/libraries/phonon/backends/gstreamer.nix {};
|
|
||||||
|
|
||||||
# TODO(@Ma27) get rid of that as soon as QT4 can be dropped
|
# TODO(@Ma27) get rid of that as soon as QT4 can be dropped
|
||||||
phonon-backend-vlc = callPackage ../development/libraries/phonon/backends/vlc.nix {
|
phonon-backend-vlc = callPackage ../development/libraries/phonon/backends/vlc.nix {
|
||||||
withQt4 = true;
|
withQt4 = true;
|
||||||
@ -13709,9 +13707,7 @@ in
|
|||||||
withQt5 = true;
|
withQt5 = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
phonon-backend-gstreamer = callPackage ../development/libraries/phonon/backends/gstreamer.nix {
|
phonon-backend-gstreamer = callPackage ../development/libraries/phonon/backends/gstreamer.nix { };
|
||||||
withQt5 = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
phonon-backend-vlc = callPackage ../development/libraries/phonon/backends/vlc.nix { };
|
phonon-backend-vlc = callPackage ../development/libraries/phonon/backends/vlc.nix { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user