2023-11-22 23:40:26 +00:00
|
|
|
{ appimageTools
|
|
|
|
, fetchurl
|
|
|
|
, lib
|
|
|
|
, makeWrapper
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "beekeeper-studio";
|
2024-09-22 00:26:00 +00:00
|
|
|
version = "4.6.8";
|
2023-11-22 23:40:26 +00:00
|
|
|
|
|
|
|
plat = {
|
|
|
|
aarch64-linux = "-arm64";
|
|
|
|
x86_64-linux = "";
|
|
|
|
}.${stdenv.hostPlatform.system};
|
|
|
|
|
|
|
|
hash = {
|
2024-09-22 00:26:00 +00:00
|
|
|
aarch64-linux = "sha256-EKGL+aeuCcBuSh+VtkdgFhI1LccuvO8WHoqbZ/JdX7c=";
|
|
|
|
x86_64-linux = "sha256-LyO9xCqZG5gNAvCIX9wacSb59wiLjXPDta+Fipu24fk=";
|
2023-11-22 23:40:26 +00:00
|
|
|
}.${stdenv.hostPlatform.system};
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v${version}/Beekeeper-Studio-${version}${plat}.AppImage";
|
|
|
|
inherit hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
|
|
|
inherit pname version src;
|
|
|
|
|
2024-09-25 20:01:28 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2023-11-22 23:40:26 +00:00
|
|
|
extraInstallCommands = ''
|
|
|
|
wrapProgram $out/bin/${pname} \
|
|
|
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
|
|
|
|
install -Dm444 ${appimageContents}/${pname}.desktop -t $out/share/applications/
|
|
|
|
install -Dm444 ${appimageContents}/${pname}.png -t $out/share/pixmaps/
|
|
|
|
substituteInPlace $out/share/applications/${pname}.desktop \
|
2024-06-21 17:26:59 +00:00
|
|
|
--replace-fail 'Exec=AppRun --no-sandbox' 'Exec=${pname}'
|
2023-11-22 23:40:26 +00:00
|
|
|
'';
|
|
|
|
|
2024-06-22 08:03:00 +00:00
|
|
|
meta = {
|
2023-11-22 23:40:26 +00:00
|
|
|
description = "Modern and easy to use SQL client for MySQL, Postgres, SQLite, SQL Server, and more. Linux, MacOS, and Windows";
|
|
|
|
homepage = "https://www.beekeeperstudio.io";
|
|
|
|
changelog = "https://github.com/beekeeper-studio/beekeeper-studio/releases/tag/v${version}";
|
2024-06-22 08:03:00 +00:00
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
|
2023-11-22 23:40:26 +00:00
|
|
|
mainProgram = "beekeeper-studio";
|
2024-06-22 08:03:00 +00:00
|
|
|
maintainers = with lib.maintainers; [ milogert alexnortung ];
|
2023-11-22 23:40:26 +00:00
|
|
|
platforms = [ "aarch64-linux" "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|