Skip to content

Commit

Permalink
beeper: init at 3.62.20
Browse files Browse the repository at this point in the history
  • Loading branch information
jshcmpbll committed Aug 4, 2023
1 parent f53a9ad commit 72caa5d
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 1 deletion.
59 changes: 59 additions & 0 deletions pkgs/applications/networking/instant-messengers/beeper/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{ lib, fetchurl, mkDerivation, appimageTools, libsecret, makeWrapper }:
let
pname = "beeper";
version = "3.62.20";
name = "${pname}-${version}";
src = fetchurl {
url = "https://download.todesktop.com/2003241lzgn20jd/${name}.AppImage";
hash = "sha256-U4niT/PO+azG8TfSTTfp7zGchl74H6MzfUB/kn8IfjE=";
};
appimage = appimageTools.wrapType2 {
inherit version pname src;
extraPkgs = pkgs: with pkgs; [libsecret ];
};
appimageContents = appimageTools.extractType2 {
inherit version pname src;
};
in
mkDerivation rec {
inherit name pname;

src = appimage;

nativeBuildInputs = [ makeWrapper ];

installPhase = ''
runHook preInstall
mv bin/${name} bin/${pname}
mkdir -p $out/
cp -r bin $out/bin
mkdir -p $out/share/${pname}
cp -a ${appimageContents}/locales $out/share/${pname}
cp -a ${appimageContents}/resources $out/share/${pname}
cp -a ${appimageContents}/usr/share/icons $out/share/
install -Dm 644 ${appimageContents}/${pname}.desktop -t $out/share/applications/
substituteInPlace $out/share/applications/${pname}.desktop --replace "AppRun" "${pname}"
wrapProgram $out/bin/${pname} \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}} --no-update"
runHook postInstall
'';

meta = with lib; {
description = "Universal chat app.";
longDescription = ''
Beeper is a universal chat app. With Beeper, you can send
and receive messages to friends, family and colleagues on
many different chat networks.
'';
homepage = "https://beeper.com";
license = licenses.unfree;
maintainers = with maintainers; [ jshcmpbll ];
platforms = [ "x86_64-linux" ];
};
}
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,9 @@ with pkgs;

banana-accounting = callPackage ../applications/office/banana-accounting { };

beebeep = libsForQt5.callPackage ../applications/office/beebeep {};
beebeep = libsForQt5.callPackage ../applications/office/beebeep { };

beeper = qt5.callPackage ../applications/networking/instant-messengers/beeper { };

bakelite = callPackage ../tools/backup/bakelite { };

Expand Down

0 comments on commit 72caa5d

Please sign in to comment.