1{
2 lib,
3 stdenv,
4 fetchurl,
5 pkg-config,
6 gettext,
7 libtool,
8 gtk-layer-shell,
9 gtk3,
10 libcanberra-gtk3,
11 libmatemixer,
12 libxml2,
13 mate-desktop,
14 mate-panel,
15 wayland,
16 wrapGAppsHook3,
17 mateUpdateScript,
18}:
19
20stdenv.mkDerivation rec {
21 pname = "mate-media";
22 version = "1.28.1";
23
24 src = fetchurl {
25 url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
26 sha256 = "vNwQLiL2P1XmMWbVxwjpHBE1cOajCodDRaiGCeg6mRI=";
27 };
28
29 nativeBuildInputs = [
30 pkg-config
31 gettext
32 libtool
33 wrapGAppsHook3
34 ];
35
36 buildInputs = [
37 gtk-layer-shell
38 gtk3
39 libcanberra-gtk3
40 libmatemixer
41 libxml2
42 mate-desktop
43 mate-panel
44 wayland
45 ];
46
47 configureFlags = [ "--enable-in-process" ];
48
49 enableParallelBuilding = true;
50
51 passthru.updateScript = mateUpdateScript { inherit pname; };
52
53 meta = with lib; {
54 description = "Media tools for MATE";
55 homepage = "https://mate-desktop.org";
56 license = licenses.gpl2Plus;
57 platforms = platforms.unix;
58 maintainers = with maintainers; [ chpatrick ];
59 teams = [ teams.mate ];
60 };
61}