client/flake.nix
2026-05-25 13:47:36 +00:00

35 lines
1.1 KiB
Nix

{
description = "Tensamin desktop client";
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
outputs = {nixpkgs, ...}: let
systems = ["x86_64-linux" "aarch64-linux"];
forAllSystems = nixpkgs.lib.genAttrs systems;
version = "0.0.3";
forgejoBaseUrl = "https://git.methanium.net/tensamin/client/releases/download/${version}";
in {
packages = forAllSystems (system: let
pkgs = import nixpkgs {inherit system;};
artifact = if system == "aarch64-linux" then "Tensamin-${version}-linux-arm64.AppImage" else "Tensamin-${version}-linux-x86_64.AppImage";
appImagePath = /. + builtins.getEnv "TENSAMIN_APPIMAGE";
in {
default = pkgs.appimageTools.wrapType2 {
pname = "tensamin";
inherit version;
src = pkgs.fetchurl {
url = "${forgejoBaseUrl}/${artifact}";
hash = "sha256-bzAwsO/zHDVkBxADMJeR8L0/Cnj06RbBzUGYYrTouw4=";
};
};
localPathForDev = pkgs.appimageTools.wrapType2 {
pname = "tensamin";
inherit version;
src = appImagePath;
};
});
};
}