From 33ad155000646be0d1b7b0d0705335c4e79fadc5 Mon Sep 17 00:00:00 2001 From: EEva Date: Wed, 19 Jun 2019 20:11:55 +0300 Subject: [PATCH] Add minitube --- pkgs/default.nix | 2 ++ pkgs/minitube/default.nix | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/minitube/default.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index 1cf89c4..ff09ec6 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -34,6 +34,8 @@ self: super: stdenv = super.overrideCC super.stdenv super.gcc6; }; + minitube = super.libsForQt5.callPackage ./minitube {}; + # Originally from Mats Rauhala ®2018 copy = super.writeScriptBin "copy" '' function clean() { diff --git a/pkgs/minitube/default.nix b/pkgs/minitube/default.nix new file mode 100644 index 0000000..38a6e89 --- /dev/null +++ b/pkgs/minitube/default.nix @@ -0,0 +1,36 @@ +{ 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; + sha256 = "0lr2i6g5l7bpy794kwn58i2hngby4n36yfwxalbg43h4am1q62dy"; + }; + + 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 ]; + }; +}