rquickshare: fix opening

This fixes https://github.com/NixOS/nixpkgs/issues/350315 by applying upstream instructions and downloading the legacy package instead.

The app should open now.
This commit is contained in:
Jairo Llopis
2024-12-23 10:33:28 +00:00
parent f674839442
commit 854f0111d3
+5 -5
View File
@@ -7,17 +7,17 @@ let
pname = "rquickshare";
version = "0.11.2";
src = fetchurl {
url = "https://github.com/Martichou/rquickshare/releases/download/v${version}/r-quick-share-main_v${version}_glibc-2.39_amd64.AppImage";
hash = "sha256-7w1zybCPRg4RK5bKHoHLDUDXVDQL23ox/6wh8H9vTPg=";
url = "https://github.com/Martichou/rquickshare/releases/download/v${version}/r-quick-share-legacy_v${version}_glibc-2.31_amd64.AppImage";
hash = "sha256-VXYiYrTSedH8xFjuxbdplzVdfnO6s3ftY2I121Unlfw=";
};
appimageContents = appimageTools.extractType2 { inherit pname version src; };
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
install -Dm444 ${appimageContents}/rquickshare.desktop -t $out/share/applications
substituteInPlace $out/share/applications/rquickshare.desktop \
--replace-fail 'Exec=rquickshare' 'Exec=rquickshare %u'
install -Dm444 ${appimageContents}/r-quick-share.desktop -t $out/share/applications
substituteInPlace $out/share/applications/r-quick-share.desktop \
--replace-fail 'Exec=r-quick-share' 'Exec=r-quick-share %u'
cp -r ${appimageContents}/usr/share/icons $out/share
'';