nixpkgs/pkgs/applications/networking/instant-messengers/caprine-bin/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
1.0 KiB
Nix
Raw Normal View History

2021-01-04 15:47:16 +00:00
{ lib, callPackage, stdenvNoCC }:
let
pname = "caprine";
2023-10-12 00:14:39 +00:00
version = "2.59.1";
2021-01-04 15:47:16 +00:00
metaCommon = with lib; {
description = "Elegant Facebook Messenger desktop app";
homepage = "https://sindresorhus.com/caprine";
license = licenses.mit;
maintainers = with maintainers; [ ShamrockLee ];
2024-04-02 19:34:37 +00:00
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
2021-01-04 15:47:16 +00:00
};
x86_64-appimage = callPackage ./build-from-appimage.nix {
inherit pname version metaCommon;
2023-10-12 00:14:39 +00:00
sha256 = "sha256-stMv4KQoWPmK5jcfdhamC27Rb51zjbeEn40u6YUvXz4=";
2021-01-04 15:47:16 +00:00
};
x86_64-dmg = callPackage ./build-from-dmg.nix {
inherit pname version metaCommon;
2023-10-12 00:14:39 +00:00
sha256 = "sha256-WMT4yrLjDSMsI/lFbYODu3/0whcF+++4ShoChfMyLfQ=";
2021-01-04 15:47:16 +00:00
};
in
(if stdenvNoCC.hostPlatform.isDarwin then x86_64-dmg else x86_64-appimage).overrideAttrs (oldAttrs: {
passthru = (oldAttrs.passthru or { }) // { inherit x86_64-appimage x86_64-dmg; };
meta = oldAttrs.meta // {
platforms = x86_64-appimage.meta.platforms ++ x86_64-dmg.meta.platforms;
mainProgram = "caprine";
2021-01-04 15:47:16 +00:00
};
})