mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
parent
47b604b07d
commit
953ddef7f8
34
pkgs/by-name/rq/rquickshare/package.nix
Normal file
34
pkgs/by-name/rq/rquickshare/package.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
appimageTools,
|
||||
lib,
|
||||
fetchurl,
|
||||
}:
|
||||
let
|
||||
pname = "rquickshare";
|
||||
version = "0.7.1";
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Martichou/rquickshare/releases/download/v${version}/r-quick-share_${version}_amd64.AppImage";
|
||||
hash = "sha256-716d7T4nbs/dDS4KVGTADCpLO31U8iq6hDVD+c7Ks1I=";
|
||||
};
|
||||
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
||||
in
|
||||
appimageTools.wrapType2 {
|
||||
inherit pname version src;
|
||||
extraInstallCommands = ''
|
||||
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=rquickshare %u'
|
||||
cp -r ${appimageContents}/usr/share/icons $out/share
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Rust implementation of NearbyShare/QuickShare from Android for Linux";
|
||||
homepage = "https://github.com/Martichou/rquickshare";
|
||||
changelog = "https://github.com/Martichou/rquickshare/blob/v${version}/CHANGELOG.md";
|
||||
license = lib.licenses.gpl3Plus;
|
||||
maintainers = [ lib.maintainers.luftmensch-luftmensch ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
||||
mainProgram = "rquickshare";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue