1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{
mkDerivation, lib, fetchurl,
extra-cmake-modules, makeWrapper,
qtsvg, qtx11extras, ki18n, kdelibs4support, kio, kmediaplayer, kwidgetsaddons,
phonon, cairo, mplayer
}:
mkDerivation rec {
majorMinorVersion = "0.12";
patchVersion = "0b";
version = "${majorMinorVersion}.${patchVersion}";
name = "kmplayer-${version}";
src = fetchurl {
url = "mirror://kde/stable/kmplayer/${majorMinorVersion}/kmplayer-${version}.tar.bz2";
sha256 = "0wzdxym4fc83wvqyhcwid65yv59a2wvp1lq303cn124mpnlwx62y";
};
patches = [
./kmplayer_part-plugin_metadata.patch # Qt 5.9 doesn't like an empty string for the optional "FILE" argument of "Q_PLUGIN_METADATA"
./no-docs.patch # Don't build docs due to errors (kdelibs4support propagates kdoctools)
];
postPatch = ''
sed -i src/kmplayer.desktop \
-e "s,^Exec.*,Exec=$out/bin/kmplayer -qwindowtitle %c %i %U,"
'';
nativeBuildInputs = [ extra-cmake-modules makeWrapper ];
buildInputs = [
qtsvg qtx11extras ki18n kdelibs4support kio kmediaplayer kwidgetsaddons
phonon cairo
];
postInstall = ''
wrapProgram $out/bin/kmplayer --suffix PATH : ${mplayer}/bin
'';
meta = with lib; {
description = "MPlayer front-end for KDE";
license = with licenses; [ gpl2 lgpl2 fdl12 ];
homepage = https://kmplayer.kde.org/;
maintainers = with maintainers; [ sander zraexy ];
};
}
|