Skip to content

Commit 23c19d9

Browse files
authored
rquickshare: 0.11.3 -> 0.11.4 (#375553)
2 parents e87f54c + 9f7e3c9 commit 23c19d9

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

pkgs/by-name/rq/rquickshare/package.nix

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ let
3939
in
4040
rustPlatform.buildRustPackage rec {
4141
pname = "rquickshare" + (app-type-either "" "-legacy");
42-
version = "0.11.3";
42+
version = "0.11.4";
4343

4444
src = fetchFromGitHub {
4545
owner = "Martichou";
4646
repo = "rquickshare";
4747
tag = "v${version}";
48-
hash = "sha256-6gXt1UGcjOFInsCep56s3K5Zk/KIz2ZrFlmrgXP7/e8=";
48+
hash = "sha256-Gq78vxM9hJ+dAHM3RAKHtkFIsoV0XQN4vNbOO3amvTs=";
4949
};
5050

5151
# from https://github.com/NixOS/nixpkgs/blob/04e40bca2a68d7ca85f1c47f00598abb062a8b12/pkgs/by-name/ca/cargo-tauri/test-app.nix#L23-L26
@@ -66,7 +66,7 @@ rustPlatform.buildRustPackage rec {
6666
cargoRoot = "app/${app-type}/src-tauri";
6767
buildAndTestSubdir = cargoRoot;
6868
cargoPatches = [ ./remove-duplicate-versions-of-sys-metrics.patch ];
69-
cargoHash = app-type-either "sha256-R1RDBV8lcEuFdkh9vrNxFRSPSYVOWDvafPQAmQiJV2s=" "sha256-tgnSOICA/AFASIIlxnRoSjq5nx30Z7C6293bcvnWl0k=";
69+
cargoHash = app-type-either "sha256-wraCzzC7YVCXEXBTd8c1cbtCdBunENpUMQ1vZGwfGMs=" "sha256-TBsHlFwbWWa2LEZdmDyz/9vWiFOXKX39PCsjW6OqEGY=";
7070

7171
nativeBuildInputs = [
7272
proper-cargo-tauri.hook
@@ -97,17 +97,16 @@ rustPlatform.buildRustPackage rec {
9797
libsoup_2_4
9898
];
9999

100-
passthru.updateScript =
101-
let
100+
passthru =
101+
# Don't set an update script for the legacy version
102+
# so r-ryantm won't create two duplicate PRs
103+
lib.optionalAttrs (app-type == "main") {
102104
updateScript = writeShellScript "update-rquickshare.sh" ''
103105
${lib.getExe nix-update} rquickshare
104106
sed -i 's/version = "0.0.0";/' pkgs/by-name/rq/rquickshare/package.nix
105107
${lib.getExe nix-update} rquickshare-legacy
106108
'';
107-
in
108-
# Don't set an update script for the legacy version
109-
# so r-ryantm won't create two duplicate PRs
110-
app-type-either updateScript null;
109+
};
111110

112111
meta = {
113112
description = "Rust implementation of NearbyShare/QuickShare from Android for Linux and macOS";

pkgs/by-name/rq/rquickshare/remove-duplicate-versions-of-sys-metrics.patch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/app/legacy/src-tauri/Cargo.lock b/app/legacy/src-tauri/Cargo.lock
2-
index 109db68..c3a70c6 100644
2+
index 1bba0ae..af24986 100644
33
--- a/app/legacy/src-tauri/Cargo.lock
44
+++ b/app/legacy/src-tauri/Cargo.lock
55
@@ -4138,7 +4138,7 @@ dependencies = [
@@ -45,7 +45,7 @@ index 109db68..c3a70c6 100644
4545
"core-foundation-sys",
4646
"glob",
4747
diff --git a/app/legacy/src-tauri/Cargo.toml b/app/legacy/src-tauri/Cargo.toml
48-
index 5468707..68ed47b 100644
48+
index b971c3d..44abf29 100644
4949
--- a/app/legacy/src-tauri/Cargo.toml
5050
+++ b/app/legacy/src-tauri/Cargo.toml
5151
@@ -20,7 +20,7 @@ notify-rust = "4.10"
@@ -58,7 +58,7 @@ index 5468707..68ed47b 100644
5858
tauri-plugin-autostart = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
5959
tauri-plugin-single-instance = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
6060
diff --git a/app/main/src-tauri/Cargo.lock b/app/main/src-tauri/Cargo.lock
61-
index c1f175c..7bf1450 100644
61+
index bc4753a..ed4c7e8 100644
6262
--- a/app/main/src-tauri/Cargo.lock
6363
+++ b/app/main/src-tauri/Cargo.lock
6464
@@ -4182,7 +4182,7 @@ dependencies = [
@@ -102,7 +102,7 @@ index c1f175c..7bf1450 100644
102102
name = "sys_metrics"
103103
version = "0.2.7"
104104
diff --git a/app/main/src-tauri/Cargo.toml b/app/main/src-tauri/Cargo.toml
105-
index 90dcc88..56abae2 100644
105+
index 5653700..5120513 100644
106106
--- a/app/main/src-tauri/Cargo.toml
107107
+++ b/app/main/src-tauri/Cargo.toml
108108
@@ -20,7 +20,7 @@ notify-rust = "4.10"
@@ -111,6 +111,6 @@ index 90dcc88..56abae2 100644
111111
serde_json = "1.0"
112112
-sys_metrics = "0.2"
113113
+sys_metrics = { git = "https://github.com/Martichou/sys_metrics" }
114-
tauri = { version = "2.2", features = [ "devtools", "tray-icon", "native-tls-vendored"] }
114+
tauri = { version = "2.2", features = [ "devtools", "tray-icon", "native-tls-vendored", "image-png"] }
115115
tauri-plugin-autostart = "2.2"
116116
tauri-plugin-process = "2.2"

0 commit comments

Comments
 (0)