-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbeeper.nix
30 lines (29 loc) · 885 Bytes
/
beeper.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ fetchurl, appimageTools, makeDesktopItem, ... }:
let
pname = "beeper";
version = "";
desktopItem = makeDesktopItem {
name = pname;
desktopName = pname;
comment = "Beeper is an aggregator of messaging apps";
exec = pname;
icon = "beeper";
};
src = fetchurl {
url = "https://download.beeper.com/linux/appImage/x64";
hash = "sha256-Gx7Z99+FDV8x+GJnTbVnHCPmg5YdAAkf9lXyE0lHKLc=";
};
appimageContents = appimageTools.extractType2 {
inherit pname version src;
};
in
appimageTools.wrapType2 rec { # or wrapType1
inherit pname version src;
extraInstallCommands = ''
mkdir -p $out/share
cp -r ${desktopItem}/share/applications $out/share
cp -r ${appimageContents}/usr/share/icons $out/share/icons
mv $out/bin/${pname}-${version} $out/bin/${pname}
'';
extraPkgs = pkgs: with pkgs; [ libsecret ];
}