Created
May 10, 2020 22:20
-
-
Save jasonwhite/d32f5806921471c857148276bfd32806 to your computer and use it in GitHub Desktop.
NixOS build for Stremio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
pkgs ? import <nixpkgs> {}, | |
}: | |
with pkgs; | |
with builtins; | |
let | |
serverJS = fetchurl { | |
url = "https://s3-eu-west-1.amazonaws.com/stremio-artifacts/four/master/server.js"; | |
sha256 = "0dqarrlq2bfb9s5jzhsd95grlbqk7bdiah5br58damz51mywhi5f"; | |
}; | |
in qt5.mkDerivation rec { | |
name = "stremio"; | |
version = "4.4.106"; | |
nativeBuildInputs = [ which ]; | |
buildInputs = [ | |
ffmpeg | |
mpv | |
nodejs | |
openssl | |
qt5.qtbase | |
qt5.qtdeclarative | |
qt5.qtquickcontrols | |
qt5.qtquickcontrols2 | |
qt5.qttools | |
qt5.qttranslations | |
qt5.qtwebchannel | |
qt5.qtwebengine | |
librsvg | |
]; | |
dontWrapQtApps = true; | |
preFixup = '' | |
wrapQtApp "$out/opt/stremio/stremio" --prefix PATH : "$out/opt/stremio" | |
''; | |
src = fetchgit { | |
url = "https://github.com/Stremio/stremio-shell"; | |
rev = version; | |
sha256 = "05lp1iq08n8wh7m12d9pz9lg6hwc0d936kmlzvdxwxbnm86cxy54"; | |
fetchSubmodules = true; | |
}; | |
buildPhase = '' | |
cp ${serverJS} server.js | |
make -f release.makefile PREFIX="$out/" | |
''; | |
installPhase = '' | |
make -f release.makefile install PREFIX="$out/" | |
mkdir -p "$out/bin" | |
#ln -s "$out/opt/stremio/stremio" "$out/bin/stremio" | |
''; | |
} |
Thanks a lot for sharing this! Unfortunately, if you update the version, it seems there are issues with the make section (specifically with the release.makefile not being found).
I created this "recipe" similar to the stuff at Nixpkgs, which instead of using pkgs are using the necessary dependencies only, creates a desktop item and it is easier to change the version (just need to verify the SHA for both the server and stremio-shell repo).
how i can do that
how i can do that
FYI, I created a NUR, so you can install from there. Here is the current default.nix file being used.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks a lot for sharing this! Unfortunately, if you update the version, it seems there are issues with the make section (specifically with the release.makefile not being found).
I created this "recipe" similar to the stuff at Nixpkgs, which instead of using pkgs are using the necessary dependencies only, creates a desktop item and it is easier to change the version (just need to verify the SHA for both the server and stremio-shell repo).