overlays-personal/pkgs/minitube/default.nix

37 lines
1.2 KiB
Nix
Raw Normal View History

2019-06-19 19:11:55 +02:00
{ stdenv, fetchgit, makeWrapper, qtbase, qmake
, qtdeclarative, qttools, qtx11extras, mpv, linuxHeaders
, withAPIKey ? "AIzaSyAHj2NywPI-GhV_yMgCDjE7XFGAnPrJDGM" }:
stdenv.mkDerivation rec {
name = "minitube-${version}";
version = "3.1";
# Have to use fetchgit to import submodules :(
src = fetchgit {
url = "https://github.com/flaviotordini/minitube.git";
rev = "refs/tags/${version}";
deepClone = true;
2019-06-27 17:33:35 +02:00
sha256 = "1hm2bwlma2d4rz0sff7axygsj67inghliadhfzv4hdp7pcz8g59x";
2019-06-19 19:11:55 +02:00
};
buildInputs = [ qtbase qtdeclarative qttools qtx11extras mpv linuxHeaders ];
nativeBuildInputs = [ makeWrapper qmake ];
qmakeFlags = [ "DEFINES+=APP_GOOGLE_API_KEY=${withAPIKey}" ];
enableParallelBuilding = true;
meta = with stdenv.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 = with maintainers; [ jpotier ];
};
}