Merge pull request #330551 from Gambled23/patch-1

rquickshare: 0.8.2 -> 0.10.2
This commit is contained in:
Peder Bergebakken Sundt 2024-08-11 23:11:40 +02:00 committed by GitHub
commit ec7dee81aa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,19 +5,19 @@
}: }:
let let
pname = "rquickshare"; pname = "rquickshare";
version = "0.8.2"; version = "0.10.2";
src = fetchurl { src = fetchurl {
url = "https://github.com/Martichou/rquickshare/releases/download/v${version}/r-quick-share_${version}_amd64.AppImage"; url = "https://github.com/Martichou/rquickshare/releases/download/v${version}/r-quick-share-main_v${version}_glibc-2.39_amd64.AppImage";
hash = "sha256-0r8G3f46nHfTeReai4mWCykyx65AoaoGc0L7nrGEhTQ="; hash = "sha256-VbHz9bSob3XSt7ut3jAiSl1/AV+Jw+SOP1mWBI5ggYQ=";
}; };
appimageContents = appimageTools.extractType2 { inherit pname version src; }; appimageContents = appimageTools.extractType2 { inherit pname version src; };
in in
appimageTools.wrapType2 { appimageTools.wrapType2 {
inherit pname version src; inherit pname version src;
extraInstallCommands = '' extraInstallCommands = ''
install -Dm444 ${appimageContents}/r-quick-share.desktop -t $out/share/applications install -Dm444 ${appimageContents}/rquickshare.desktop -t $out/share/applications
substituteInPlace $out/share/applications/r-quick-share.desktop \ substituteInPlace $out/share/applications/rquickshare.desktop \
--replace-fail 'Exec=r-quick-share' 'Exec=rquickshare %u' --replace-fail 'Exec=rquickshare' 'Exec=rquickshare %u'
cp -r ${appimageContents}/usr/share/icons $out/share cp -r ${appimageContents}/usr/share/icons $out/share
''; '';