-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbeekeeper-studio.nix
49 lines (44 loc) · 1.65 KB
/
beekeeper-studio.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{ appimageTools
, lib
, fetchurl
, gtk3
, gsettings-desktop-schemas
}:
let
pname = "beekeeper-studio";
version = "2.0.0";
name = "${pname}-${version}";
src = fetchurl {
url = "https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v${version}/Beekeeper-Studio-${version}.AppImage";
sha256 = "01vxcx2bf753f07y8ikklk2acdlrmxw8gi9nxv5p1kf465972c2a";
};
appimageContents = appimageTools.extractType2 {
inherit name src;
};
in
appimageTools.wrapType2 rec {
inherit name src;
profile = ''
export XDG_DATA_DIRS=${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:${gtk3}/share/gsettings-schemas/${gtk3.name}:$XDG_DATA_DIRS
'';
extraPkgs = (pkgs: with pkgs; with xorg; [
glib dbus libdrm libxshmfence nss nspr atk at-spi2-atk gdk-pixbuf pango cairo libX11
libXcomposite libXdamage libXext libXfixes libXrandr expat libxcb
libxkbcommon mesa alsa-lib cups at-spi2-core
]);
multiPkgs = null; # no 32bit needed
extraInstallCommands = ''
mv $out/bin/{${name},${pname}}
install -m 444 -D ${appimageContents}/beekeeper-studio.desktop $out/share/applications/beekeeper-studio.desktop
install -m 444 -D ${appimageContents}/beekeeper-studio.png $out/share/icons/hicolor/512x512/apps/beekeeper-studio.png
substituteInPlace $out/share/applications/beekeeper-studio.desktop \
--replace 'Exec=AppRun' 'Exec=${pname}'
'';
meta = with lib; {
description = "Open Source SQL Editor and Database Manager";
homepage = "https://www.beekeeperstudio.io/";
platforms = [ "x86_64-linux" ];
license = licenses.gpl3;
maintainers = with maintainers; [ kamilchm ];
};
}