-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ea80a0c
commit ecae483
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
|
||
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 ]; | ||
}; | ||
} |