xplayer: init at 2.4.0

+152
+103
pkgs/applications/video/xplayer/default.nix
··· 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , autoreconfHook 5 + , autoconf-archive 6 + , clutter-gst 7 + , clutter-gtk 8 + , gettext 9 + , glib 10 + , gobject-introspection 11 + , gst-plugins-bad 12 + , gst-plugins-base 13 + , gst-plugins-good 14 + , gstreamer 15 + , gtk-doc 16 + , gtk3 17 + , intltool 18 + , itstool 19 + , libpeas 20 + , libxml2 21 + , libxplayer-plparser 22 + , pkg-config 23 + , python3 24 + , wrapGAppsHook 25 + , xapps 26 + , yelp-tools }: 27 + 28 + let 29 + pythonenv = python3.withPackages (ps: [ 30 + ps.pygobject3 31 + ps.dbus-python # For one plugin 32 + ]); 33 + in 34 + 35 + stdenv.mkDerivation rec { 36 + pname = "xplayer"; 37 + version = "2.4.0"; 38 + 39 + src = fetchFromGitHub { 40 + owner = "linuxmint"; 41 + repo = pname; 42 + rev = version; 43 + sha256 = "1xcv6nr2gc0vji5afwy283v7bgx46kzgrq79hl8q9pz995qq2kbp"; 44 + }; 45 + 46 + # configure wants to find gst-inspect-1.0 via pkgconfig but 47 + # the gstreamer toolsdir points to the wrong derivation output 48 + postPatch = '' 49 + substituteInPlace configure.ac \ 50 + --replace '$gst10_toolsdir/gst-inspect-1.0' '${gstreamer.dev}/bin/gst-inspect-1.0' \ 51 + ''; 52 + 53 + preBuild = '' 54 + makeFlagsArray+=( 55 + "INCLUDES=-I${glib.dev}/include/gio-unix-2.0" 56 + "CFLAGS=-Wno-error" # Otherwise a lot of deprecated warnings are treated as error 57 + ) 58 + ''; 59 + 60 + nativeBuildInputs = [ 61 + autoreconfHook 62 + wrapGAppsHook 63 + autoconf-archive 64 + gettext 65 + gtk-doc 66 + intltool 67 + itstool 68 + pkg-config 69 + yelp-tools 70 + ]; 71 + 72 + buildInputs = [ 73 + clutter-gst 74 + clutter-gtk 75 + glib 76 + gobject-introspection 77 + gst-plugins-bad 78 + gst-plugins-base 79 + gst-plugins-good 80 + gstreamer 81 + gtk3 82 + libpeas 83 + libxml2 84 + libxplayer-plparser 85 + pythonenv 86 + xapps 87 + # to satisfy configure script 88 + pythonenv.pkgs.pygobject3 89 + ]; 90 + 91 + postInstall = '' 92 + wrapProgram $out/bin/xplayer \ 93 + --prefix PATH : ${lib.makeBinPath [ pythonenv ]} 94 + ''; 95 + 96 + meta = with lib; { 97 + description = "A generic media player from Linux Mint"; 98 + license = with licenses; [ gpl2Plus lgpl21Plus ]; 99 + homepage = "https://github.com/linuxmint/xplayer"; 100 + maintainers = with maintainers; [ tu-maurice ]; 101 + platforms = platforms.linux; 102 + }; 103 + }
+42
pkgs/applications/video/xplayer/plparser.nix
··· 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , intltool 5 + , gobject-introspection 6 + , gmime 7 + , libxml2 8 + , libsoup 9 + , pkg-config 10 + }: 11 + 12 + stdenv.mkDerivation rec { 13 + pname = "xplayer-plparser"; 14 + version = "1.0.2"; 15 + 16 + src = fetchFromGitHub { 17 + owner = "linuxmint"; 18 + repo = pname; 19 + rev = version; 20 + sha256 = "1i7sld8am6b1wwbpfb18v7qp17vk2a5p8xcfds50yznr30lddsb2"; 21 + }; 22 + 23 + nativeBuildInputs = [ 24 + intltool 25 + pkg-config 26 + gobject-introspection 27 + ]; 28 + 29 + buildInputs = [ 30 + gmime 31 + libxml2 32 + libsoup 33 + ]; 34 + 35 + meta = with lib; { 36 + description = "Playlist parsing library for xplayer"; 37 + homepage = "https://github.com/linuxmint/xplayer-plparser"; 38 + maintainers = with maintainers; [ tu-maurice ]; 39 + license = licenses.lgpl2Plus; 40 + platforms = platforms.linux; 41 + }; 42 + }
+7
pkgs/top-level/all-packages.nix
··· 26030 26030 xpra = callPackage ../tools/X11/xpra { }; 26031 26031 libfakeXinerama = callPackage ../tools/X11/xpra/libfakeXinerama.nix { }; 26032 26032 26033 + 26034 + xplayer = callPackage ../applications/video/xplayer { 26035 + inherit (gst_all_1) gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad; 26036 + inherit (cinnamon) xapps; 26037 + }; 26038 + libxplayer-plparser = callPackage ../applications/video/xplayer/plparser.nix { }; 26039 + 26033 26040 xrectsel = callPackage ../tools/X11/xrectsel { }; 26034 26041 26035 26042 xrestop = callPackage ../tools/X11/xrestop { };