mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
26 lines
915 B
Nix
26 lines
915 B
Nix
{ lib, callPackage, stdenvNoCC }:
|
|
let
|
|
pname = "caprine";
|
|
version = "2.55.5";
|
|
metaCommon = with lib; {
|
|
description = "An elegant Facebook Messenger desktop app";
|
|
homepage = "https://sindresorhus.com/caprine";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ShamrockLee ];
|
|
};
|
|
x86_64-appimage = callPackage ./build-from-appimage.nix {
|
|
inherit pname version metaCommon;
|
|
sha256 = "MMbyiLBrdMGENRq493XzkcsDoXr3Aq3rXAni1egkPbo=";
|
|
};
|
|
x86_64-dmg = callPackage ./build-from-dmg.nix {
|
|
inherit pname version metaCommon;
|
|
sha256 = "1txuSQk6tH0xsjPk5cWUVnaAw4XBOr1+Fel06NLKFfk=";
|
|
};
|
|
in
|
|
(if stdenvNoCC.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;
|
|
};
|
|
})
|