9 metaCommon = with lib; {
10 description = "Elegant Facebook Messenger desktop app";
11 homepage = "https://sindresorhus.com/caprine";
12 license = licenses.mit;
13 maintainers = with maintainers; [ ShamrockLee ];
14 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
16 x86_64-appimage = callPackage ./build-from-appimage.nix {
17 inherit pname version metaCommon;
18 sha256 = "sha256-stMv4KQoWPmK5jcfdhamC27Rb51zjbeEn40u6YUvXz4=";
20 x86_64-dmg = callPackage ./build-from-dmg.nix {
21 inherit pname version metaCommon;
22 sha256 = "sha256-WMT4yrLjDSMsI/lFbYODu3/0whcF+++4ShoChfMyLfQ=";
25 (if stdenvNoCC.hostPlatform.isDarwin then x86_64-dmg else x86_64-appimage).overrideAttrs
27 passthru = (oldAttrs.passthru or { }) // {
28 inherit x86_64-appimage x86_64-dmg;
30 meta = oldAttrs.meta // {
31 platforms = x86_64-appimage.meta.platforms ++ x86_64-dmg.meta.platforms;
32 mainProgram = "caprine";