nixpkgs/pkgs/applications/video/minitube/default.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

66 lines
1.4 KiB
Nix

{
mkDerivation,
lib,
fetchFromGitHub,
phonon,
phonon-backend-vlc,
qtbase,
qmake,
qtdeclarative,
qttools,
qtx11extras,
mpv,
# "Free" key generated by pasqui23
withAPIKey ? "AIzaSyBQvZXseEVvgu5Ega_DI-AIJ55v0OsHmVY",
}:
mkDerivation rec {
pname = "minitube";
version = "3.9.3";
src = fetchFromGitHub {
hash = "sha256-ROqROQsV8ddrxYT5mMdkf6rCgCoGr1jpxQ1ohcoEaQs=";
rev = version;
repo = "minitube";
owner = "flaviotordini";
fetchSubmodules = true;
};
patches = [
# Taken from FreeBSD; already merged upstream in the media submodule
# (https://github.com/flaviotordini/media/commit/f6b7020f273e1fc06e6e204fab37a7c8edaa857a)
./lib_media_src_mpv_mpvwidget.patch
];
nativeBuildInputs = [
qmake
qttools
];
buildInputs = [
phonon
phonon-backend-vlc
qtbase
qtdeclarative
qtx11extras
mpv
];
qmakeFlags = [ "DEFINES+=APP_GOOGLE_API_KEY=${withAPIKey}" ];
meta = with lib; {
description = "Stand-alone YouTube video player";
longDescription = ''
Watch YouTube videos in a new way: you type a keyword, Minitube gives
you an endless video stream. Minitube is not about cloning the YouTube
website, it aims to create a new TV-like experience.
'';
homepage = "https://flavio.tordini.org/minitube";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = [ ];
mainProgram = "minitube";
};
}