From 1b291ded6f91b4f295185cdc80b87a1299ba6603 Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Fri, 17 Apr 2026 00:09:20 +0200 Subject: [PATCH 1/3] stremio-linux-shell: add `meta.sourceProvenance` --- pkgs/by-name/st/stremio-linux-shell/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/st/stremio-linux-shell/package.nix b/pkgs/by-name/st/stremio-linux-shell/package.nix index 3b82f29fe336..4280c61173ad 100644 --- a/pkgs/by-name/st/stremio-linux-shell/package.nix +++ b/pkgs/by-name/st/stremio-linux-shell/package.nix @@ -135,6 +135,10 @@ rustPlatform.buildRustPackage (finalAttrs: { # server.js is unfree unfree ]; + sourceProvenance = with lib.sourceTypes; [ + fromSource + obfuscatedCode # server.js + ]; maintainers = with lib.maintainers; [ thunze ]; platforms = lib.platforms.linux; mainProgram = "stremio"; From 46ebee95a84c01b2b1e60027ba3f4eee9f21f943 Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Mon, 20 Apr 2026 00:12:29 +0200 Subject: [PATCH 2/3] stremio-linux-shell: use compound license --- pkgs/by-name/st/stremio-linux-shell/package.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/st/stremio-linux-shell/package.nix b/pkgs/by-name/st/stremio-linux-shell/package.nix index 4280c61173ad..ab6f9dca182f 100644 --- a/pkgs/by-name/st/stremio-linux-shell/package.nix +++ b/pkgs/by-name/st/stremio-linux-shell/package.nix @@ -130,11 +130,12 @@ rustPlatform.buildRustPackage (finalAttrs: { meta = { description = "Modern media center that gives you the freedom to watch everything you want"; homepage = "https://www.stremio.com/"; - license = with lib.licenses; [ - gpl3Only - # server.js is unfree - unfree - ]; + license = + with lib.licenses; + AND [ + gpl3Only + unfree # server.js + ]; sourceProvenance = with lib.sourceTypes; [ fromSource obfuscatedCode # server.js From 5eeb49e1e22895758ae4fb8eed366e5ad0d7f029 Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Mon, 20 Apr 2026 00:17:46 +0200 Subject: [PATCH 3/3] stremio-linux-shell: enable `strictDeps` and `__structuredAttrs` --- pkgs/by-name/st/stremio-linux-shell/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/st/stremio-linux-shell/package.nix b/pkgs/by-name/st/stremio-linux-shell/package.nix index ab6f9dca182f..4a3f62c23a55 100644 --- a/pkgs/by-name/st/stremio-linux-shell/package.nix +++ b/pkgs/by-name/st/stremio-linux-shell/package.nix @@ -95,6 +95,9 @@ rustPlatform.buildRustPackage (finalAttrs: { env.CEF_PATH = "${cef}"; + strictDeps = true; + __structuredAttrs = true; + postInstall = '' mkdir -p $out/share/applications cp data/com.stremio.Stremio.desktop $out/share/applications/com.stremio.Stremio.desktop