From ecae483479937e3320c65901791473c8858815ab Mon Sep 17 00:00:00 2001 From: Sean Missingham Date: Sat, 28 Dec 2024 17:07:29 -0600 Subject: [PATCH] filen-desktop: init at 3.0.41 --- pkgs/by-name/fi/filen-desktop/package.nix | 53 +++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 pkgs/by-name/fi/filen-desktop/package.nix diff --git a/pkgs/by-name/fi/filen-desktop/package.nix b/pkgs/by-name/fi/filen-desktop/package.nix new file mode 100644 index 00000000000000..cf8d0d87f3306b --- /dev/null +++ b/pkgs/by-name/fi/filen-desktop/package.nix @@ -0,0 +1,53 @@ +{ + lib, + stdenv, + fetchurl, + appimageTools, + makeDesktopItem, +}: let + pname = "filen-desktop"; + version = "3.0.41"; + + hostPlatform = stdenv.hostPlatform.system; + arch = builtins.substring 0 (builtins.stringLength hostPlatform - (builtins.stringLength "-linux")) hostPlatform; + + 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 ]; + }; + } \ No newline at end of file