9 inherit (qt5) qmake qtscript wrapQtAppsHook;
11 stdenv.mkDerivation (finalAttrs: {
15 src = fetchFromGitHub {
16 owner = "smplayer-dev";
18 rev = "v${finalAttrs.version}";
19 hash = "sha256-KblVDlE8EglMMAclGFZm81obipm6/JLUvsn5sLrpKqc=";
27 buildInputs = [ qtscript ];
29 dontUseQmakeConfigure = true;
31 makeFlags = [ "PREFIX=${placeholder "out"}" ];
34 homepage = "https://www.smplayer.info";
35 description = "Complete front-end for MPlayer";
37 SMPlayer is a free media player for Windows and Linux with built-in codecs
38 that can play virtually all video and audio formats. It doesn't need any
39 external codecs. Just install SMPlayer and you'll be able to play all
40 formats without the hassle to find and install codec packs.
42 One of the most interesting features of SMPlayer: it remembers the
43 settings of all files you play. So you start to watch a movie but you have
44 to leave... don't worry, when you open that movie again it will be resumed
45 at the same point you left it, and with the same settings: audio track,
48 SMPlayer is a graphical user interface (GUI) for the award-winning
49 MPlayer, which is capable of playing almost all known video and audio
50 formats. But apart from providing access for the most common and useful
51 options of MPlayer, SMPlayer adds other interesting features like the
52 possibility to play Youtube videos or download subtitles.
54 changelog = "https://github.com/smplayer-dev/smplayer/releases/tag/${finalAttrs.src.rev}";
55 license = lib.licenses.gpl3Plus;
56 maintainers = with lib.maintainers; [ AndersonTorres ];
57 platforms = lib.platforms.linux;
60 # TODO [ AndersonTorres ]: create a wrapper including mplayer/mpv