Merge pull request #292303 from Vinetos/add-kmeet

kmeet: init at 2.0.1

authored by Pol Dellaiera and committed by GitHub d8fe5e6c 8a2caea3

+43
+43
pkgs/by-name/km/kmeet/package.nix
···
··· 1 + { lib 2 + , fetchurl 3 + , appimageTools 4 + }: 5 + 6 + appimageTools.wrapType2 rec { 7 + pname = "kmeet"; 8 + version = "2.0.1"; 9 + 10 + src = fetchurl { 11 + url = "https://download.storage5.infomaniak.com/meet/kmeet-desktop-${version}-linux-x86_64.AppImage"; 12 + name = "kmeet-${version}.AppImage"; 13 + hash = "sha256-0lygBbIwaEydvFEfvADiL2k5GWzVpM1jX4orweriBYw="; 14 + }; 15 + 16 + extraInstallCommands = 17 + let 18 + contents = appimageTools.extractType2 { inherit pname version src; }; 19 + in 20 + '' 21 + mkdir -p "$out/share/applications" 22 + mkdir -p "$out/share/lib/kmeet" 23 + cp -r ${contents}/{locales,resources} "$out/share/lib/kmeet" 24 + cp -r ${contents}/usr/* "$out" 25 + cp "${contents}/kMeet.desktop" "$out/share/applications/" 26 + mv "$out/bin/kmeet-${version}" "$out/bin/${meta.mainProgram}" 27 + substituteInPlace $out/share/applications/kMeet.desktop --replace 'Exec=AppRun' 'Exec=${meta.mainProgram}' 28 + ''; 29 + 30 + meta = with lib; { 31 + description = "Organise secure online meetings via your web browser, your mobile, your tablet or your computer."; 32 + homepage = "https://www.infomaniak.com/en/apps/download-kmeet"; 33 + license = licenses.unfree; 34 + maintainers = [ maintainers.vinetos ]; 35 + mainProgram = "kmeet"; 36 + platforms = [ "x86_64-linux" ]; 37 + sourceProvenance = [ lib.sourceTypes.binaryNativeCode ]; 38 + longDescription = '' 39 + kMeet allows you to organise secure online meetings via your web browser, your mobile, your tablet or your 40 + computer. 41 + ''; 42 + }; 43 + }