This repository has been archived on 2026-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
cinny/flake.nix
2026-02-16 21:51:21 +01:00

52 lines
1.4 KiB
Nix

{
description = "Cinny Desktop AppImage (v4.10.3)";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
version = "4.10.3";
cinny-desktop-item = pkgs.makeDesktopItem {
name = "cinny-desktop";
desktopName = "Cinny";
comment = "Matrix client";
exec = "cinny-desktop";
icon = "cinny"; # see icon notes below
categories = [ "Network" "InstantMessaging" ];
terminal = false;
};
cinny-appimage = pkgs.appimageTools.wrapType2 {
pname = "cinny-desktop";
inherit version;
src = pkgs.fetchurl {
url = "https://github.com/cinnyapp/cinny-desktop/releases/download/v${version}/Cinny_desktop-x86_64.AppImage";
sha256 = "";
};
extraInstallCommands = ''
mkdir -p $out/share/applications
ln -s ${cinny-desktop-item}/share/applications/* \
$out/share/applications/
'';
};
in
{
packages.default = cinny-appimage;
apps.default = {
type = "app";
program = "${cinny-appimage}/bin/cinny-desktop";
};
}
);
}