2021-03-14 21:47:36 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2021-11-04 03:28:18 +00:00
|
|
|
, fetchFromGitHub
|
2021-03-14 21:47:36 +00:00
|
|
|
, qmake
|
|
|
|
, qtscript
|
|
|
|
, wrapQtAppsHook
|
|
|
|
}:
|
2013-06-23 09:48:21 +00:00
|
|
|
|
2021-03-14 21:47:36 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-11-03 15:33:19 +00:00
|
|
|
pname = "smplayer";
|
2022-03-15 21:29:11 +00:00
|
|
|
version = "22.2.0";
|
2013-06-23 09:48:21 +00:00
|
|
|
|
2021-11-04 03:28:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "smplayer-dev";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-15 21:29:11 +00:00
|
|
|
hash = "sha256-7DMvIqW3vzjVzJPyjbXuHHcf1T6EFcf/a/mVYqa3XS8=";
|
2013-06-23 09:48:21 +00:00
|
|
|
};
|
|
|
|
|
2021-11-04 03:28:18 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
wrapQtAppsHook
|
|
|
|
];
|
|
|
|
|
2022-03-15 21:29:11 +00:00
|
|
|
buildInputs = [
|
|
|
|
qtscript
|
|
|
|
];
|
2016-04-28 21:37:16 +00:00
|
|
|
|
|
|
|
dontUseQmakeConfigure = true;
|
2013-06-23 09:48:21 +00:00
|
|
|
|
2021-03-14 21:47:36 +00:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
];
|
2013-06-23 09:48:21 +00:00
|
|
|
|
2021-03-14 21:47:36 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.smplayer.info";
|
2021-03-14 21:47:36 +00:00
|
|
|
description = "A complete front-end for MPlayer";
|
|
|
|
longDescription = ''
|
|
|
|
SMPlayer is a free media player for Windows and Linux with built-in codecs
|
|
|
|
that can play virtually all video and audio formats. It doesn't need any
|
|
|
|
external codecs. Just install SMPlayer and you'll be able to play all
|
|
|
|
formats without the hassle to find and install codec packs.
|
|
|
|
|
|
|
|
One of the most interesting features of SMPlayer: it remembers the
|
|
|
|
settings of all files you play. So you start to watch a movie but you have
|
|
|
|
to leave... don't worry, when you open that movie again it will be resumed
|
|
|
|
at the same point you left it, and with the same settings: audio track,
|
|
|
|
subtitles, volume...
|
|
|
|
|
|
|
|
SMPlayer is a graphical user interface (GUI) for the award-winning
|
|
|
|
MPlayer, which is capable of playing almost all known video and audio
|
|
|
|
formats. But apart from providing access for the most common and useful
|
|
|
|
options of MPlayer, SMPlayer adds other interesting features like the
|
|
|
|
possibility to play Youtube videos or download subtitles.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
|
|
|
platforms = platforms.linux;
|
2013-06-23 09:48:21 +00:00
|
|
|
};
|
|
|
|
}
|
2021-03-14 21:47:36 +00:00
|
|
|
# TODO [ AndersonTorres ]: some form of wrapping mplayer/mpv around it
|