xin/pkgs/nheko.nix

32 lines
668 B
Nix
Raw Normal View History

2023-09-12 08:44:05 -06:00
{ lib
, fetchurl
, stdenv
, undmg
, ...
2023-07-11 09:12:50 -06:00
}:
2022-08-25 12:21:35 -06:00
stdenv.mkDerivation rec {
pname = "nheko";
version = "0.10.0";
src = fetchurl {
2023-07-11 09:12:50 -06:00
url = "https://github.com/Nheko-Reborn/nheko/releases/download/v${version}/nheko-v${version}.dmg";
2022-08-25 12:21:35 -06:00
hash = "sha256-t7evlvb+ueJZhtmt4KrOeXv2BZV8/fY4vj4GAmoCR2w=";
};
2023-09-12 08:44:05 -06:00
nativeBuildInputs = [ undmg ];
2022-08-25 12:21:35 -06:00
sourceRoot = ".";
installPhase = ''
mkdir -p $out/Applications
cp -a Nheko.app $out/Applications/
'';
meta = {
description = "Desktop client for Matrix using Qt and C++17";
homepage = "https://github.com/Nheko-Reborn/nheko";
license = lib.licenses.gpl3;
platforms = lib.platforms.darwin;
};
}