10 url = "https://github.com/Martichou/rquickshare/releases/download/v${version}/r-quick-share-main_v${version}_glibc-2.39_amd64.AppImage";
11 hash = "sha256-7w1zybCPRg4RK5bKHoHLDUDXVDQL23ox/6wh8H9vTPg=";
13 appimageContents = appimageTools.extractType2 { inherit pname version src; };
15 appimageTools.wrapType2 {
16 inherit pname version src;
17 extraInstallCommands = ''
18 install -Dm444 ${appimageContents}/rquickshare.desktop -t $out/share/applications
19 substituteInPlace $out/share/applications/rquickshare.desktop \
20 --replace-fail 'Exec=rquickshare' 'Exec=rquickshare %u'
21 cp -r ${appimageContents}/usr/share/icons $out/share
25 description = "Rust implementation of NearbyShare/QuickShare from Android for Linux";
26 homepage = "https://github.com/Martichou/rquickshare";
27 changelog = "https://github.com/Martichou/rquickshare/blob/v${version}/CHANGELOG.md";
28 license = lib.licenses.gpl3Plus;
29 maintainers = [ lib.maintainers.luftmensch-luftmensch ];
30 platforms = [ "x86_64-linux" ];
31 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
32 mainProgram = "rquickshare";