Unverified Commit 631b0f73 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

filen-desktop: init at 3.0.41 (#368948)

parents b1619b6e fb5b073e
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -22075,6 +22075,12 @@
    githubId = 4477729;
    name = "Sergey Mironov";
  };
  smissingham = {
    email = "sean@missingham.com";
    github = "smissingham";
    githubId = 9065495;
    name = "Sean Missingham";
  };
  smitop = {
    name = "Smitty van Bodegom";
    email = "me@smitop.com";
+54 −0
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  fetchurl,
  appimageTools,
  makeDesktopItem,
}:
let
  pname = "filen-desktop";
  version = "3.0.41";

  arch = builtins.head (builtins.split "-" stdenv.hostPlatform.system);

  src = fetchurl {
    url = "https://github.com/FilenCloudDienste/filen-desktop/releases/download/v${version}/Filen_linux_${arch}.AppImage";
    hash = "sha256-Nao5By8Z8lMbRcp2Mgw+xaiiFzUxCm6S3SAE5FfDZpk=";
  };

  desktopItem = makeDesktopItem {
    name = "filen-desktop";
    desktopName = "Filen Desktop";
    comment = "Encrypted Cloud Storage";
    icon = "filen-desktop";
    exec = "filen-desktop %u";
    categories = [ "Office" ];
  };

  appimageContents = appimageTools.extract { inherit pname version src; };
in
appimageTools.wrapType2 {
  inherit pname version src;

  extraInstallCommands = ''
    mkdir -p $out/share
    cp -rt $out/share ${desktopItem}/share/applications ${appimageContents}/usr/share/icons
    chmod -R +w $out/share
    find $out/share/icons -type f -iname "*.png" -execdir mv {} "$pname.png" \;
  '';

  meta = {
    homepage = "https://filen.io/products/desktop";
    downloadPage = "https://github.com/FilenCloudDienste/filen-desktop/releases/";
    description = "Filen Desktop Client for Linux";
    longDescription = ''
      Encrypted Cloud Storage built for your Desktop.
      Sync your data, mount network drives, collaborate with others and access files natively — powered by robust encryption and seamless integration.
    '';
    mainProgram = "filen-desktop";
    platforms = [ "x86_64-linux" ];
    license = lib.licenses.agpl3Only;
    maintainers = with lib.maintainers; [ smissingham ];
    sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
  };
}