Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Filen Desktop #213628

Open
ghost opened this issue Jan 30, 2023 · 2 comments · May be fixed by #368948
Open

add Filen Desktop #213628

ghost opened this issue Jan 30, 2023 · 2 comments · May be fixed by #368948
Labels
0.kind: packaging request Request for a new package to be added

Comments

@ghost
Copy link

ghost commented Jan 30, 2023

Project description
Sync files and folders to all devices connected to your account. With support for more than 5 different sync modes your files will always be up to date.

Metadata

@ghost ghost added the 0.kind: packaging request Request for a new package to be added label Jan 30, 2023
@npnpatidar
Copy link

{ lib
, fetchurl
, makeWrapper
, appimageTools
, libappindicator-gtk3
}:
let
  pname = "filen-desktop";
  version = "latest";

  src = pkgs.fetchurl {
    url =
      "https://cdn.filen.io/@filen/desktop/release/latest/Filen_linux_x86_64.AppImage";
    sha256 = "sha256-Nao5By8Z8lMbRcp2Mgw+xaiiFzUxCm6S3SAE5FfDZpk=";
  };

  appimageContents = appimageTools.extractType2 { inherit pname version src; };
 name = "filendesktop";
  # Needed for the tray to function
  libPath = lib.makeLibraryPath [ libappindicator-gtk3 ];
in
appimageTools.wrapType2 rec {
  inherit pname version src name;

  extraInstallCommands = ''
     source "${pkgs.makeWrapper}/nix-support/setup-hook"
    wrapProgram $out/bin/${pname} \
      --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland --enable-features=WaylandWindowDecorations}}" \
      --prefix LD_LIBRARY_PATH : ${libPath}

    install -m 444 -D ${appimageContents}/@${name}.desktop $out/share/applications/${pname}.desktop
    substituteInPlace $out/share/applications/${pname}.desktop \
      --replace 'Exec=AppRun' 'Exec=filen-desktop'
    cp -r ${appimageContents}/usr/share/icons $out/share
  '';

  meta = with lib; {
    description = "Desktop client for Filen.io";
    homepage = "https://filen.io/";
    license = licenses.agpl3Plus;
    platforms = [ "x86_64-linux" ];
  };
}

this would work. If anyone can create PR for this. in my local machine it is working fine

@pluiedev
Copy link
Contributor

Let's try not to repackage more Electron apps from existing binary builds. See #296939

@donovanglover donovanglover linked a pull request Dec 29, 2024 that will close this issue
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: packaging request Request for a new package to be added
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants