mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 09:17:07 +03:00
stremio: init at 4.4.142
This commit is contained in:
parent
54c0954df4
commit
4379a88287
44
pkgs/applications/video/stremio/default.nix
Normal file
44
pkgs/applications/video/stremio/default.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{ lib, stdenv, fetchurl, fetchFromGitHub, qmake, wrapQtAppsHook
|
||||
, mpv, qtwebengine, qtwebchannel, nodejs
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "stremio-shell";
|
||||
version = "4.4.142";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Stremio";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
fetchSubmodules = true;
|
||||
sha256 = "sha256-OyuTFmEIC8PH4PDzTMn8ibLUAzJoPA/fTILee0xpgQI=";
|
||||
};
|
||||
|
||||
server = fetchurl {
|
||||
url = "https://s3-eu-west-1.amazonaws.com/stremio-artifacts/four/v${version}/server.js";
|
||||
sha256 = "sha256-YYeD3SEbLgNQHGP5AI9WiHUU6xLkTeFAqYIuWsIsYSs=";
|
||||
};
|
||||
|
||||
buildInputs = [ qtwebengine mpv ];
|
||||
|
||||
nativeBuildInputs = [ qmake wrapQtAppsHook ];
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/{bin,share/applications}
|
||||
ln -s $out/opt/stremio/stremio $out/bin/stremio
|
||||
mv $out/opt/stremio/smartcode-stremio.desktop $out/share/applications
|
||||
ln -s ${nodejs}/bin/node $out/opt/stremio/node
|
||||
ln -s $server $out/opt/stremio/server.js
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A modern media center that gives you the freedom to watch everything you want.";
|
||||
homepage = "https://www.stremio.com/";
|
||||
# (Server-side) web UI is closed source now, apparently they work on open-sourcing it.
|
||||
# server.js appears to be MIT-licensed, but I can't find how they actually build it.
|
||||
# https://www.reddit.com/r/StremioAddons/comments/n2ob04/a_summary_of_how_stremio_works_internally_and/
|
||||
license = with licenses; [ gpl3 mit ];
|
||||
maintainers = with maintainers; [ abbradar ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -9764,6 +9764,8 @@ with pkgs;
|
||||
|
||||
stm32loader = with python3Packages; toPythonApplication stm32loader;
|
||||
|
||||
stremio = qt5.callPackage ../applications/video/stremio { };
|
||||
|
||||
stubby = callPackage ../tools/networking/stubby { };
|
||||
|
||||
sunwait = callPackage ../applications/misc/sunwait { };
|
||||
|
Loading…
Reference in New Issue
Block a user