10 url = "https://github.com/Martichou/rquickshare/releases/download/v${version}/r-quick-share_${version}_amd64.AppImage";
11 hash = "sha256-0r8G3f46nHfTeReai4mWCykyx65AoaoGc0L7nrGEhTQ=";
13 appimageContents = appimageTools.extractType2 { inherit pname version src; };
15 appimageTools.wrapType2 {
16 inherit pname version src;
17 extraInstallCommands = ''
18 install -Dm444 ${appimageContents}/r-quick-share.desktop -t $out/share/applications
19 substituteInPlace $out/share/applications/r-quick-share.desktop \
20 --replace-fail 'Exec=r-quick-share' '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";