nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 60 lines 1.9 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 qt5, 6}: 7 8let 9 inherit (qt5) qmake qtscript wrapQtAppsHook; 10in 11stdenv.mkDerivation (finalAttrs: { 12 pname = "smplayer"; 13 version = "25.6.0"; 14 15 src = fetchFromGitHub { 16 owner = "smplayer-dev"; 17 repo = "smplayer"; 18 tag = "v${finalAttrs.version}"; 19 hash = "sha256-txGz6v9hkvnrmVmBHsi1B2eC/iNT1tg4dU5AcMsSCic="; 20 }; 21 22 nativeBuildInputs = [ 23 qmake 24 wrapQtAppsHook 25 ]; 26 27 buildInputs = [ qtscript ]; 28 29 dontUseQmakeConfigure = true; 30 31 makeFlags = [ "PREFIX=${placeholder "out"}" ]; 32 33 meta = { 34 homepage = "https://www.smplayer.info"; 35 description = "Complete front-end for MPlayer"; 36 longDescription = '' 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. 41 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, 46 subtitles, volume... 47 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. 53 ''; 54 changelog = "https://github.com/smplayer-dev/smplayer/releases/tag/${finalAttrs.src.tag}"; 55 license = lib.licenses.gpl3Plus; 56 maintainers = [ ]; 57 platforms = lib.platforms.linux; 58 }; 59}) 60# TODO [ ]: create a wrapper including mplayer/mpv