mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-17 06:09:02 +00:00
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
This commit is contained in:
33
pkgs/by-name/st/stremio-linux-shell/out-path.patch
Normal file
33
pkgs/by-name/st/stremio-linux-shell/out-path.patch
Normal file
@@ -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 "$@"
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user