Skip to content

Commit

Permalink
filen-desktop: init at 3.0.41
Browse files Browse the repository at this point in the history
  • Loading branch information
smissingham committed Dec 28, 2024
1 parent ea80a0c commit 0d54bba
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions pkgs/by-name/fi/filen-desktop/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
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";
sha256 = "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 rec {
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 = with lib; {
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 = platforms.linux;
license = lib.licenses.agpl3Only;
maintainers = with maintainers; [ smissingham ];
};
}

0 comments on commit 0d54bba

Please sign in to comment.