-
-
Save jasonwhite/d32f5806921471c857148276bfd32806 to your computer and use it in GitHub Desktop.
{ | |
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).
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.
This gist has a pretty good SEO but it isn't being updated so I will leave a link to my derivation.
I use it sometimes and I am updating on demand.
https://github.com/lucasew/nixcfg/blob/master/packages/stremio.nix