2021-10-08 15:17:17 +00:00
|
|
|
{ lib, fetchurl, appimageTools, pkgs }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "beekeeper-studio";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "3.3.8";
|
2021-10-08 15:17:17 +00:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v${version}/Beekeeper-Studio-${version}.AppImage";
|
2022-04-15 01:41:22 +00:00
|
|
|
name = "${pname}-${version}.AppImage";
|
|
|
|
sha512 = "sha512-riBKlvOzBovJhXUf7YX6SJKshxwGiQR0jyWHfJRkq9+WMspPkpXg4sJMXziARHaa6durXZtqCfzQ08HrfqA4Qg==";
|
2021-10-08 15:17:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
appimageContents = appimageTools.extractType2 {
|
|
|
|
inherit name src;
|
|
|
|
};
|
2022-04-15 01:41:22 +00:00
|
|
|
in
|
|
|
|
appimageTools.wrapType2 {
|
2021-10-08 15:17:17 +00:00
|
|
|
inherit name src;
|
|
|
|
|
|
|
|
multiPkgs = null; # no 32bit needed
|
|
|
|
extraPkgs = pkgs: appimageTools.defaultFhsEnvArgs.multiPkgs pkgs ++ [ pkgs.bash ];
|
|
|
|
|
|
|
|
extraInstallCommands = ''
|
|
|
|
ln -s $out/bin/${name} $out/bin/${pname}
|
|
|
|
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";
|
2022-02-10 20:34:41 +00:00
|
|
|
changelog = "https://github.com/beekeeper-studio/beekeeper-studio/releases/tag/v${version}";
|
2021-10-08 15:17:17 +00:00
|
|
|
license = licenses.mit;
|
2022-02-10 20:34:41 +00:00
|
|
|
maintainers = with maintainers; [ milogert alexnortung ];
|
2021-10-08 15:17:17 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|