From 1714e644cbaf094fe399730521b8004a575dbb0f Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Thu, 2 Jul 2026 22:21:04 +0200 Subject: [PATCH 1/5] stremio-linux-shell: fix update script git-updater doesn't update `cargoHash`. --- pkgs/by-name/st/stremio-linux-shell/package.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/st/stremio-linux-shell/package.nix b/pkgs/by-name/st/stremio-linux-shell/package.nix index c93dffdd91e9..6cafbeee84d2 100644 --- a/pkgs/by-name/st/stremio-linux-shell/package.nix +++ b/pkgs/by-name/st/stremio-linux-shell/package.nix @@ -3,7 +3,7 @@ rustPlatform, fetchFromGitHub, versionCheckHook, - gitUpdater, + nix-update-script, # nativeBuildInputs pkg-config, @@ -93,7 +93,9 @@ rustPlatform.buildRustPackage (finalAttrs: { doInstallCheck = true; passthru = { - updateScript = gitUpdater { rev-prefix = "v"; }; + updateScript = nix-update-script { + extraArgs = [ "--version-regex=^v([0-9.]+)$" ]; + }; }; meta = { From 4bc82db07926f2d4eabb965461409f9208dc6c5f Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Thu, 2 Jul 2026 22:23:20 +0200 Subject: [PATCH 2/5] stremio-linux-shell: 1.0.2 -> 1.1.1 Changelog: - https://github.com/Stremio/stremio-linux-shell/releases/tag/v1.0.3 - https://github.com/Stremio/stremio-linux-shell/releases/tag/v1.1.0 - https://github.com/Stremio/stremio-linux-shell/releases/tag/v1.1.1 Diff: https://github.com/Stremio/stremio-linux-shell/compare/v1.0.2...v1.1.1 --- .../st/stremio-linux-shell/out-path.patch | 33 +++++++++++++++++++ .../st/stremio-linux-shell/package.nix | 17 +++++----- 2 files changed, 42 insertions(+), 8 deletions(-) create mode 100644 pkgs/by-name/st/stremio-linux-shell/out-path.patch diff --git a/pkgs/by-name/st/stremio-linux-shell/out-path.patch b/pkgs/by-name/st/stremio-linux-shell/out-path.patch new file mode 100644 index 000000000000..537098321f45 --- /dev/null +++ b/pkgs/by-name/st/stremio-linux-shell/out-path.patch @@ -0,0 +1,33 @@ +diff --git a/build.rs b/build.rs +index aa2bec5..f37a94d 100644 +--- a/build.rs ++++ b/build.rs +@@ -46,7 +46,7 @@ fn setup_po() -> Result<()> { + fn setup_schemas(filename: &str) -> Result<()> { + println!("cargo:rerun-if-changed={DATA_DIR}"); + +- let out_dir = dirs::data_dir().expect("Failed to get data dir"); ++ let out_dir = std::path::PathBuf::from("@out@/share"); + let out_dir = out_dir.join("glib-2.0/schemas"); + + fs::create_dir_all(&out_dir)?; +diff --git a/data/com.stremio.Stremio.service b/data/com.stremio.Stremio.service +index 7cfb139..7491969 100644 +--- a/data/com.stremio.Stremio.service ++++ b/data/com.stremio.Stremio.service +@@ -1,3 +1,3 @@ + [D-BUS Service] + Name=com.stremio.Stremio +-Exec=/app/bin/stremio --gapplication-service ++Exec=@out@/bin/stremio --gapplication-service +diff --git a/data/stremio.sh b/data/stremio.sh +index 161bada..37373b0 100644 +--- a/data/stremio.sh ++++ b/data/stremio.sh +@@ -5,4 +5,4 @@ if ls /dev/nvidia0 &>/dev/null 2>&1; then + export GSK_RENDERER=opengl + fi + +-exec /app/libexec/stremio/stremio "$@" +\ No newline at end of file ++exec @out@/libexec/stremio/stremio "$@" diff --git a/pkgs/by-name/st/stremio-linux-shell/package.nix b/pkgs/by-name/st/stremio-linux-shell/package.nix index 6cafbeee84d2..37de914a75a8 100644 --- a/pkgs/by-name/st/stremio-linux-shell/package.nix +++ b/pkgs/by-name/st/stremio-linux-shell/package.nix @@ -26,7 +26,7 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "stremio-linux-shell"; - version = "1.0.2"; + version = "1.1.1"; strictDeps = true; __structuredAttrs = true; @@ -35,17 +35,18 @@ rustPlatform.buildRustPackage (finalAttrs: { owner = "Stremio"; repo = "stremio-linux-shell"; tag = "v${finalAttrs.version}"; - hash = "sha256-NbzUAv/L8xzdepqn677nlROumjlliZIHzPXIToHHeTU="; + hash = "sha256-L4axAO+Ky0QKC/WiGvpvSAsqld60znknxbSnSDCxPnY="; }; - cargoHash = "sha256-yafkD7D0E+lbFV7MlLwQM4iWC8Glo/Tn2F+TFff6GoM="; + cargoHash = "sha256-fI3HplELOl0EG8JIZYnPi9Nm0K1F7eA13gIsP3AKTjQ="; + + patches = [ + ./out-path.patch + ]; postPatch = '' - substituteInPlace data/com.stremio.Stremio.service \ - --replace-fail "Exec=/app/bin/stremio" "Exec=$out/bin/stremio" - - substituteInPlace data/stremio.sh \ - --replace-fail "/app/libexec/stremio/stremio" "$out/libexec/stremio/stremio" + substituteInPlace data/com.stremio.Stremio.service data/stremio.sh build.rs \ + --subst-var out ''; nativeBuildInputs = [ From 6effa7d92700d98234307f571c3cde2b8e632b2a Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Sat, 4 Jul 2026 10:39:33 +0200 Subject: [PATCH 3/5] stremio-linux-shell: install more files to match upstream packaging https://github.com/Stremio/stremio-linux-shell/blob/v1.1.1/flatpak/com.stremio.Stremio.Devel.json --- pkgs/by-name/st/stremio-linux-shell/out-path.patch | 13 +++++++++++-- pkgs/by-name/st/stremio-linux-shell/package.nix | 2 ++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/st/stremio-linux-shell/out-path.patch b/pkgs/by-name/st/stremio-linux-shell/out-path.patch index 537098321f45..db60b233ce0b 100644 --- a/pkgs/by-name/st/stremio-linux-shell/out-path.patch +++ b/pkgs/by-name/st/stremio-linux-shell/out-path.patch @@ -1,13 +1,22 @@ diff --git a/build.rs b/build.rs -index aa2bec5..f37a94d 100644 +index aa2bec5..d512a42 100644 --- a/build.rs +++ b/build.rs +@@ -26,7 +26,7 @@ fn setup_po() -> Result<()> { + && extension == "po" + && let Some(po_lang) = path.file_stem() + { +- let mo_dir = po_dir.join(po_lang).join("LC_MESSAGES"); ++ let mo_dir = Path::new("@out@/share/locale").join(po_lang).join("LC_MESSAGES"); + + fs::create_dir_all(&mo_dir)?; + @@ -46,7 +46,7 @@ fn setup_po() -> Result<()> { fn setup_schemas(filename: &str) -> Result<()> { println!("cargo:rerun-if-changed={DATA_DIR}"); - let out_dir = dirs::data_dir().expect("Failed to get data dir"); -+ let out_dir = std::path::PathBuf::from("@out@/share"); ++ let out_dir = Path::new("@out@/share"); let out_dir = out_dir.join("glib-2.0/schemas"); fs::create_dir_all(&out_dir)?; diff --git a/pkgs/by-name/st/stremio-linux-shell/package.nix b/pkgs/by-name/st/stremio-linux-shell/package.nix index 37de914a75a8..a2cf7b934ba5 100644 --- a/pkgs/by-name/st/stremio-linux-shell/package.nix +++ b/pkgs/by-name/st/stremio-linux-shell/package.nix @@ -68,9 +68,11 @@ rustPlatform.buildRustPackage (finalAttrs: { postInstall = '' install -Dm644 data/icons/com.stremio.Stremio.svg $out/share/icons/hicolor/scalable/apps/com.stremio.Stremio.svg install -Dm644 data/com.stremio.Stremio.desktop $out/share/applications/com.stremio.Stremio.desktop + install -Dm644 data/com.stremio.Stremio.metainfo.xml $out/share/metainfo/com.stremio.Stremio.metainfo.xml install -Dm644 data/com.stremio.Stremio.service $out/share/dbus-1/services/com.stremio.Stremio.service install -Dm644 data/server.js $out/libexec/stremio/server.js install -Dm755 data/stremio.sh $out/bin/stremio + install -Dm644 LICENSE $out/share/licenses/stremio/LICENSE mv $out/bin/stremio-linux-shell $out/libexec/stremio/stremio ''; From 6f0e650ffcf4184fba3d0ba1b430d600941d9060 Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Sat, 4 Jul 2026 18:19:25 +0200 Subject: [PATCH 4/5] stremio-linux-shell: add fazzi to maintainers --- pkgs/by-name/st/stremio-linux-shell/package.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/st/stremio-linux-shell/package.nix b/pkgs/by-name/st/stremio-linux-shell/package.nix index a2cf7b934ba5..ac47e8e875dd 100644 --- a/pkgs/by-name/st/stremio-linux-shell/package.nix +++ b/pkgs/by-name/st/stremio-linux-shell/package.nix @@ -116,7 +116,10 @@ rustPlatform.buildRustPackage (finalAttrs: { fromSource obfuscatedCode # server.js ]; - maintainers = with lib.maintainers; [ thunze ]; + maintainers = with lib.maintainers; [ + thunze + fazzi + ]; platforms = lib.platforms.linux; mainProgram = "stremio"; }; From c8a05c561584af9653ea597ec5c808e3655d6464 Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Mon, 6 Jul 2026 22:36:20 +0200 Subject: [PATCH 5/5] stremio-linux-shell: 1.1.1 -> 1.1.2 Changelog: https://github.com/Stremio/stremio-linux-shell/releases/tag/v1.1.2 Diff: https://github.com/Stremio/stremio-linux-shell/compare/v1.1.1...v1.1.2 --- pkgs/by-name/st/stremio-linux-shell/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/st/stremio-linux-shell/package.nix b/pkgs/by-name/st/stremio-linux-shell/package.nix index ac47e8e875dd..4a44bf0861f5 100644 --- a/pkgs/by-name/st/stremio-linux-shell/package.nix +++ b/pkgs/by-name/st/stremio-linux-shell/package.nix @@ -26,7 +26,7 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "stremio-linux-shell"; - version = "1.1.1"; + version = "1.1.2"; strictDeps = true; __structuredAttrs = true; @@ -35,10 +35,10 @@ rustPlatform.buildRustPackage (finalAttrs: { owner = "Stremio"; repo = "stremio-linux-shell"; tag = "v${finalAttrs.version}"; - hash = "sha256-L4axAO+Ky0QKC/WiGvpvSAsqld60znknxbSnSDCxPnY="; + hash = "sha256-jo+9KDX/a46jPTmYhiFNgp5fDKhoAsML/+m7u3ituEQ="; }; - cargoHash = "sha256-fI3HplELOl0EG8JIZYnPi9Nm0K1F7eA13gIsP3AKTjQ="; + cargoHash = "sha256-hZ9neZD+aB7bth4UTsWJXIKGSbo/c3wZRtfOIp7LvwY="; patches = [ ./out-path.patch