Skip to content

Commit 9f7e3c9

Browse files
committed
rquickshare-legacy: don't set updateScript
Even when it was set to null, r-ryantm still picked it up.
1 parent 21548b6 commit 9f7e3c9

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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";

0 commit comments

Comments
 (0)