9 pname = "beekeeper-studio";
13 aarch64-linux = "-arm64";
15 }.${stdenv.hostPlatform.system};
18 aarch64-linux = "sha256-ZxqwxCON21S+RPG0/M2TtcI2Ave7ZT05lKQdyysQFUk=";
19 x86_64-linux = "sha256-8sGFNoAsX+X3IJDXpwlYRt78nokauPYz88yDEYy6NP8=";
20 }.${stdenv.hostPlatform.system};
23 url = "https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v${version}/Beekeeper-Studio-${version}${plat}.AppImage";
27 appimageContents = appimageTools.extractType2 { inherit pname version src; };
29 appimageTools.wrapType2 {
30 inherit pname version src;
32 nativeBuildInputs = [ makeWrapper ];
34 extraInstallCommands = ''
35 wrapProgram $out/bin/${pname} \
36 --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
37 install -Dm444 ${appimageContents}/${pname}.desktop -t $out/share/applications/
38 install -Dm444 ${appimageContents}/${pname}.png -t $out/share/pixmaps/
39 substituteInPlace $out/share/applications/${pname}.desktop \
40 --replace-fail 'Exec=AppRun --no-sandbox' 'Exec=${pname}'
44 description = "Modern and easy to use SQL client for MySQL, Postgres, SQLite, SQL Server, and more. Linux, MacOS, and Windows";
45 homepage = "https://www.beekeeperstudio.io";
46 changelog = "https://github.com/beekeeper-studio/beekeeper-studio/releases/tag/v${version}";
47 license = lib.licenses.gpl3Only;
48 sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
49 mainProgram = "beekeeper-studio";
50 maintainers = with lib.maintainers; [ milogert alexnortung ];
51 platforms = [ "aarch64-linux" "x86_64-linux" ];