nixos/uptime-kuma: Add additional lockdown settings to systemd unit (#361452)
[NixPkgs.git] / pkgs / by-name / rq / rquickshare / package.nix
blobae38de23828a4b256c12830169cc3833c4d66496
2   appimageTools,
3   lib,
4   fetchurl,
5 }:
6 let
7   pname = "rquickshare";
8   version = "0.11.2";
9   src = fetchurl {
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=";
12   };
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
22   '';
24   meta = {
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";
33   };