@@ -0,0 +1,37 @@
1+{ mkDerivation, fetchgit, lib
2+, extra-cmake-modules, kdoctools
3+, qca-qt5, qjson, qtscript, qtwebkit
4+, kcmutils, kconfig, kdelibs4support, kdnssd, kinit, knewstuff, knotifyconfig, ktexteditor
5+, phonon, plasma-framework, threadweaver
6+, curl, ffmpeg, gdk_pixbuf, libaio, libmtp, loudmouth, lzo, lz4, mariadb, pcre, snappy, taglib, taglib_extras
7+}:
8+
9+let
10+ pname = "amarok";
11+ version = "2.8.91-20170228";
12+
13+in mkDerivation {
14+ name = "${pname}-${version}";
15+
16+ src = fetchgit {
17+ url = git://anongit.kde.org/amarok.git;
18+ # go back to the KDE mirror when kf5 is merged into master
19+ # url = "mirror://kde/stable/${pname}/${version}/src/${name}.tar.xz";
20+ rev = "323e2d5b43245c4c06e0b83385d37ef0d32920cb";
21+ sha256 = "05w7kl6qfmkjz0y1bhgkkbmsqdll30bkjd6npkzvivrvp7dplmbh";
22+ };
23+
24+ nativeBuildInputs = [ extra-cmake-modules kdoctools ];
25+ propagatedBuildInputs = [
26+ qca-qt5 qjson qtscript qtwebkit
27+ kcmutils kconfig kdelibs4support kdnssd kinit knewstuff knotifyconfig ktexteditor
28+ phonon plasma-framework threadweaver
29+ curl ffmpeg gdk_pixbuf libaio libmtp loudmouth lz4 lzo mariadb pcre snappy taglib taglib_extras
30+ ];
31+ enableParallelBuilding = true;
32+
33+ meta = with lib; {
34+ license = licenses.gpl2;
35+ maintainers = with maintainers; [ peterhoeg ];
36+ };
37+}