From f8ddd524cb9444935264c9b9510730944a1b9b29 Mon Sep 17 00:00:00 2001 From: Adam Stephens Date: Thu, 1 Jun 2023 14:28:16 -0400 Subject: [PATCH] element-desktop: use upstream icon for darwin --- .../networking/instant-messengers/element/element-desktop.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/networking/instant-messengers/element/element-desktop.nix b/pkgs/applications/networking/instant-messengers/element/element-desktop.nix index f30850d2586d..67e21bcd1821 100644 --- a/pkgs/applications/networking/instant-messengers/element/element-desktop.nix +++ b/pkgs/applications/networking/instant-messengers/element/element-desktop.nix @@ -123,6 +123,10 @@ stdenv.mkDerivation (finalAttrs: builtins.removeAttrs pinData [ "hashes" ] // { mimeTypes = [ "x-scheme-handler/element" ]; }; + postFixup = lib.optionalString stdenv.isDarwin '' + cp build/icon.icns $out/Applications/Element.app/Contents/Resources/element.icns + ''; + passthru = { updateScript = ./update.sh;