38 lines
1022 B
Nix
38 lines
1022 B
Nix
{
|
|
appimageTools,
|
|
fetchurl,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
pname = "fluxer-canary";
|
|
version = "2026.602.31138";
|
|
|
|
src = fetchurl {
|
|
url = "https://api.canary.fluxer.app/dl/desktop/canary/linux/x64/latest/appimage";
|
|
sha256 = "sha256-d4FAWwrWyoyp7lo8X+nIe+Dd6Z8rDThyK1wU00f7rjY=";
|
|
};
|
|
|
|
appimageContents = appimageTools.extract { inherit pname version src; };
|
|
in
|
|
appimageTools.wrapType2 rec {
|
|
inherit pname version src;
|
|
|
|
extraInstallCommands = ''
|
|
install -m 444 -D ${appimageContents}/${pname}.desktop $out/share/applications/${pname}.desktop
|
|
|
|
install -m 444 -D ${appimageContents}/${pname}.png $out/share/icons/hicolor/512x512/apps/${pname}.png
|
|
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
|
--replace 'Exec=AppRun %U' 'Exec=${pname} %U'
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Open-source, self-hosted alternative to Discord";
|
|
homepage = "https://fluxer.app/";
|
|
license = licenses.agpl3Only;
|
|
maintainers = [ ];
|
|
platforms = [ "x86_64-linux" ];
|
|
};
|
|
} |