nixpkgs/pkgs/applications/networking/instant-messengers/ferdium/default.nix
2024-05-07 12:13:20 +01:00

37 lines
1.0 KiB
Nix

{ lib, mkFranzDerivation, fetchurl, xorg, stdenv }:
let
arch = {
x86_64-linux = "amd64";
aarch64-linux = "arm64";
}."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
hash = {
amd64-linux_hash = "sha256-Q5fUMQQTQKgUkakmsiBFH2UwJdk/XV8wpQi6uRHi90U=";
arm64-linux_hash = "sha256-axFIwz1AtzxO1+XkmCflHqi/CdsmeqD6QAxepATMqm4=";
}."${arch}-linux_hash";
in
mkFranzDerivation rec {
pname = "ferdium";
name = "Ferdium";
version = "6.7.3";
src = fetchurl {
url = "https://github.com/ferdium/ferdium-app/releases/download/v${version}/Ferdium-linux-${version}-${arch}.deb";
inherit hash;
};
extraBuildInputs = [ xorg.libxshmfence ];
passthru = {
updateScript = ./update.sh;
};
meta = with lib; {
description = "All your services in one place built by the community";
homepage = "https://ferdium.org/";
license = licenses.asl20;
maintainers = with maintainers; [ magnouvean ];
platforms = [ "x86_64-linux" "aarch64-linux" ];
hydraPlatforms = [ ];
};
}