depot/third_party/nixpkgs/pkgs/by-name/sm/smplayer/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

60 lines
1.9 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
qt5,
}:
let
inherit (qt5) qmake qtscript wrapQtAppsHook;
in
stdenv.mkDerivation (finalAttrs: {
pname = "smplayer";
version = "24.5.0";
src = fetchFromGitHub {
owner = "smplayer-dev";
repo = "smplayer";
rev = "v${finalAttrs.version}";
hash = "sha256-KblVDlE8EglMMAclGFZm81obipm6/JLUvsn5sLrpKqc=";
};
nativeBuildInputs = [
qmake
wrapQtAppsHook
];
buildInputs = [ qtscript ];
dontUseQmakeConfigure = true;
makeFlags = [ "PREFIX=${placeholder "out"}" ];
meta = {
homepage = "https://www.smplayer.info";
description = "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.
'';
changelog = "https://github.com/smplayer-dev/smplayer/releases/tag/${finalAttrs.src.rev}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.linux;
};
})
# TODO [ AndersonTorres ]: create a wrapper including mplayer/mpv