diff --git a/pkgs/by-name/be/beekeeper-studio/package.nix b/pkgs/by-name/be/beekeeper-studio/package.nix new file mode 100644 index 000000000000..6d7353ab9b43 --- /dev/null +++ b/pkgs/by-name/be/beekeeper-studio/package.nix @@ -0,0 +1,52 @@ +{ appimageTools +, fetchurl +, lib +, makeWrapper +, stdenv +}: + +let + pname = "beekeeper-studio"; + version = "4.0.3"; + + plat = { + aarch64-linux = "-arm64"; + x86_64-linux = ""; + }.${stdenv.hostPlatform.system}; + + hash = { + aarch64-linux = "sha256-PdRGZedNMZtGPI6Za2T94yKXvk6JoMoAot/kFKsBqQs="; + x86_64-linux = "sha256-P2HlCb0dai4cJlKcT9LLQ+njViD+oHS3KI2YdR5jR44="; + }.${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; + + extraInstallCommands = '' + mv $out/bin/{${pname}-${version},${pname}} + source "${makeWrapper}/nix-support/setup-hook" + 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 \ + --replace 'Exec=AppRun --no-sandbox' 'Exec=${pname}' + ''; + + meta = with lib; { + 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}"; + license = licenses.gpl3Only; + mainProgram = "beekeeper-studio"; + maintainers = with maintainers; [ milogert alexnortung ]; + platforms = [ "aarch64-linux" "x86_64-linux" ]; + }; +} diff --git a/pkgs/development/tools/database/beekeeper-studio/default.nix b/pkgs/development/tools/database/beekeeper-studio/default.nix deleted file mode 100644 index 6070b5bc32b6..000000000000 --- a/pkgs/development/tools/database/beekeeper-studio/default.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ lib, fetchurl, appimageTools, pkgs, makeWrapper }: - -let - pname = "beekeeper-studio"; - version = "3.6.2"; - name = "${pname}-${version}"; - - src = fetchurl { - url = "https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v${version}/Beekeeper-Studio-${version}.AppImage"; - name = "${pname}-${version}.AppImage"; - hash = "sha512-an4Gqx2mx/rnkLe/LUAz3qRdrqWBcrWcdCiNi8Hz1OKBp1SWN3acU8RppIM0uwlrcBkjnigbbM5DZ2o+svA23A=="; - }; - - appimageContents = appimageTools.extractType2 { - inherit name src; - }; -in -appimageTools.wrapType2 { - inherit name src; - - multiArch = false; # no 32bit needed - extraPkgs = pkgs: appimageTools.defaultFhsEnvArgs.multiPkgs pkgs ++ [ pkgs.bash ]; - - extraInstallCommands = '' - ln -s $out/bin/${name} $out/bin/${pname} - source "${makeWrapper}/nix-support/setup-hook" - wrapProgram $out/bin/${pname} \ - --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform --ozone-platform=wayland}}" - install -m 444 -D ${appimageContents}/${pname}.desktop $out/share/applications/${pname}.desktop - install -m 444 -D ${appimageContents}/${pname}.png \ - $out/share/icons/hicolor/512x512/apps/${pname}.png - substituteInPlace $out/share/applications/${pname}.desktop \ - --replace 'Exec=AppRun' 'Exec=${pname}' - - ''; - - meta = with lib; { - 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}"; - license = licenses.mit; - maintainers = with maintainers; [ milogert alexnortung ]; - platforms = [ "x86_64-linux" ]; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ceb5ff5180b7..628164ee570d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15568,8 +15568,6 @@ with pkgs; openjdk = openjdk17_headless; }; - beekeeper-studio = callPackage ../development/tools/database/beekeeper-studio { }; - bfc = callPackage ../development/compilers/bfc { }; bigloo = callPackage ../development/compilers/bigloo { };