about summary refs log tree commit diff
diff options
context:
space:
mode:
authorValentin Chassignol <valentin.chassignol@infomaniak.com>2024-02-29 10:30:05 +0100
committerValentin Chassignol <valentin.chassignol@infomaniak.com>2024-02-29 10:52:49 +0100
commit314c2806ccfece9eec5e2ae7eb475f9e8865ea30 (patch)
treefe23a69d86108b85f5b38706338e520dc4648cc3
parent33b23ce7351cb38deecc1958df61442e46f567be (diff)
downloadnixlib-314c2806ccfece9eec5e2ae7eb475f9e8865ea30.tar
nixlib-314c2806ccfece9eec5e2ae7eb475f9e8865ea30.tar.gz
nixlib-314c2806ccfece9eec5e2ae7eb475f9e8865ea30.tar.bz2
nixlib-314c2806ccfece9eec5e2ae7eb475f9e8865ea30.tar.lz
nixlib-314c2806ccfece9eec5e2ae7eb475f9e8865ea30.tar.xz
nixlib-314c2806ccfece9eec5e2ae7eb475f9e8865ea30.tar.zst
nixlib-314c2806ccfece9eec5e2ae7eb475f9e8865ea30.zip
kmeet: init at 2.0.1
-rw-r--r--pkgs/by-name/km/kmeet/package.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/by-name/km/kmeet/package.nix b/pkgs/by-name/km/kmeet/package.nix
new file mode 100644
index 000000000000..8c928e434123
--- /dev/null
+++ b/pkgs/by-name/km/kmeet/package.nix
@@ -0,0 +1,43 @@
+{ lib
+, fetchurl
+, appimageTools
+}:
+
+appimageTools.wrapType2 rec {
+  pname = "kmeet";
+  version = "2.0.1";
+
+  src = fetchurl {
+    url = "https://download.storage5.infomaniak.com/meet/kmeet-desktop-${version}-linux-x86_64.AppImage";
+    name = "kmeet-${version}.AppImage";
+    hash = "sha256-0lygBbIwaEydvFEfvADiL2k5GWzVpM1jX4orweriBYw=";
+  };
+
+  extraInstallCommands =
+    let
+      contents = appimageTools.extractType2 { inherit pname version src; };
+    in
+    ''
+      mkdir -p "$out/share/applications"
+      mkdir -p "$out/share/lib/kmeet"
+      cp -r ${contents}/{locales,resources} "$out/share/lib/kmeet"
+      cp -r ${contents}/usr/* "$out"
+      cp "${contents}/kMeet.desktop" "$out/share/applications/"
+      mv "$out/bin/kmeet-${version}" "$out/bin/${meta.mainProgram}"
+      substituteInPlace $out/share/applications/kMeet.desktop --replace 'Exec=AppRun' 'Exec=${meta.mainProgram}'
+    '';
+
+  meta = with lib; {
+    description = "Organise secure online meetings via your web browser, your mobile, your tablet or your computer.";
+    homepage = "https://www.infomaniak.com/en/apps/download-kmeet";
+    license = licenses.unfree;
+    maintainers = [ maintainers.vinetos ];
+    mainProgram = "kmeet";
+    platforms = [ "x86_64-linux" ];
+    sourceProvenance = [ lib.sourceTypes.binaryNativeCode ];
+    longDescription = ''
+      kMeet allows you to organise secure online meetings via your web browser, your mobile, your tablet or your
+      computer.
+    '';
+  };
+}