Unverified Commit 48f45025 authored by Ivan Mincik's avatar Ivan Mincik Committed by GitHub
Browse files

sylk: 3.0.1 -> 3.7.0; add ngi team (#463137)

parents 11a18b34 0bbc6a9e
Loading
Loading
Loading
Loading
+20 −4
Original line number Diff line number Diff line
@@ -2,17 +2,32 @@
  appimageTools,
  fetchurl,
  lib,
  xorg,
}:

appimageTools.wrapType2 rec {
  pname = "sylk";
  version = "3.0.1";
  version = "3.7.0";

  src = fetchurl {
    url = "http://download.ag-projects.com/Sylk/Sylk-${version}-x86_64.AppImage";
    hash = "sha256-VgepO7LHFmNKq/H0RFcIkafgtiVGt8K/LdiCO5Dw2s4=";
    url = "https://download.ag-projects.com/Sylk/Sylk-${version}-x86_64.AppImage";
    hash = "sha256-3lWWc3aSn+aKM/gX4v2suVbj5sZPKl1r36eQP3a2pNg=";
  };

  extraPkgs = pkgs: [
    xorg.libxshmfence
  ];

  appimageContents = appimageTools.extractType2 { inherit pname version src; };

  extraInstallCommands = ''
    install -Dm444 ${appimageContents}/sylk-electron.desktop -t $out/share/applications/
    install -Dm444 ${appimageContents}/sylk-electron.png -t $out/share/icons/hicolor/512x512/apps/

    substituteInPlace $out/share/applications/sylk-electron.desktop \
      --replace-fail 'Exec=AppRun --no-sandbox' 'Exec=${pname}'
  '';

  profile = ''
    export LC_ALL=C.UTF-8
  '';
@@ -21,8 +36,9 @@ appimageTools.wrapType2 rec {
    description = "Desktop client for SylkServer, a multiparty conferencing tool";
    homepage = "https://sylkserver.com/";
    license = lib.licenses.agpl3Plus;
    mainProgram = "Sylk";
    mainProgram = "sylk";
    maintainers = with lib.maintainers; [ zimbatm ];
    teams = with lib.teams; [ ngi ];
    platforms = [
      "i386-linux"
      "x86_64-linux"