52 lines
1.4 KiB
Nix
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 = "sha256-AhbwDL4p9xo3QrRaavqGcr8dvm1D1FWUBcaCNrkkOhw=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|
|
);
|
|
}
|