chore(nix): Replace Vesktop icon

This commit is contained in:
Ahmad Ansori Palembani 2024-11-07 08:16:56 +07:00
parent 3fe53e7015
commit 94d596e386
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
4 changed files with 22 additions and 13 deletions

View file

@ -3,20 +3,27 @@ final: prev:
let
mkApp = import ../../lib/darwin/mkApp.nix;
appFileName = "Vesktop.app";
version = "1.5.3";
in {
vesktop = mkApp {
inherit (final) stdenv undmg _7zz;
pname = "Vesktop";
appFileName = "Vesktop*.app";
inherit version;
inherit appFileName version;
src = final.fetchurl {
url = "https://github.com/Vencord/Vesktop/releases/download/v${version}/Vesktop-${version}-universal.dmg";
hash = "sha256-ceOUNHSOaEqCbzkM64RtUu0Yhrq4tThcXZTDd+OsEXI";
};
# Replace the icon with a much more low profile icon
# REF: https://github.com/Vencord/Vesktop/pull/865
configurePhase = ''
cp -f ${../../../include/vesktop/icon.icns} ${appFileName}/Contents/Resources/icon.icns
'';
meta = with final.lib; {
description = "An alternate client for Discord with Vencord built-in";
homepage = "https://github.com/Vencord/Vesktop";