Finalize stremio-linux-shell package for master branch

This commit is contained in:
2026-05-11 21:17:19 -07:00
parent 9781815af6
commit f6d2edc037
2 changed files with 7 additions and 12 deletions
@@ -1,10 +1,11 @@
{ {
"sessionID": "ses_1e5e3566cffeYr3gZgqACwW0qm", "sessionID": "ses_1e5e3566cffeYr3gZgqACwW0qm",
"updatedAt": "2026-05-12T03:42:20.568Z", "updatedAt": "2026-05-12T04:17:16.514Z",
"sources": { "sources": {
"background-task": { "background-task": {
"state": "idle", "state": "active",
"updatedAt": "2026-05-12T03:42:20.568Z" "reason": "1 background task(s) active",
"updatedAt": "2026-05-12T04:17:16.514Z"
} }
} }
} }
-6
View File
@@ -34,10 +34,8 @@ rustPlatform.buildRustPackage (finalAttrs: {
src = src; src = src;
# Note: The cargo hash for this specific commit
cargoHash = "sha256-yqrPtvF59ii/UTHAcCa9DDqTe6czG722mxzCPB6UoG0="; cargoHash = "sha256-yqrPtvF59ii/UTHAcCa9DDqTe6czG722mxzCPB6UoG0=";
# Build instructions
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config pkg-config
wrapGAppsHook4 wrapGAppsHook4
@@ -60,13 +58,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
libsecret libsecret
]; ];
# Environment variables
env.GETTEXT_DIR = "${src}/po"; env.GETTEXT_DIR = "${src}/po";
env.GETTEXT_DOMAIN = "stremio"; env.GETTEXT_DOMAIN = "stremio";
env.SERVER_PATH = "\${out}/share/stremio/server.js"; env.SERVER_PATH = "\${out}/share/stremio/server.js";
env.LD_LIBRARY_PATH = lib.makeLibraryPath (finalAttrs.buildInputs ++ finalAttrs.nativeBuildInputs);
# Post install steps
postInstall = '' postInstall = ''
mkdir -p $out/share/applications mkdir -p $out/share/applications
cp data/com.stremio.Stremio.desktop $out/share/applications/com.stremio.Stremio.desktop cp data/com.stremio.Stremio.desktop $out/share/applications/com.stremio.Stremio.desktop
@@ -83,7 +78,6 @@ rustPlatform.buildRustPackage (finalAttrs: {
mkdir -p $out/share/stremio mkdir -p $out/share/stremio
cp data/server.js $out/share/stremio/server.js cp data/server.js $out/share/stremio/server.js
# Rename the binary from stremio-linux-shell to stremio
mv $out/bin/stremio-linux-shell $out/bin/stremio mv $out/bin/stremio-linux-shell $out/bin/stremio
''; '';