Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchurl, appimageTools, pkgs }: 2 3let 4 pname = "beekeeper-studio"; 5 version = "3.6.2"; 6 name = "${pname}-${version}"; 7 8 src = fetchurl { 9 url = "https://github.com/beekeeper-studio/beekeeper-studio/releases/download/v${version}/Beekeeper-Studio-${version}.AppImage"; 10 name = "${pname}-${version}.AppImage"; 11 sha512 = "sha512-an4Gqx2mx/rnkLe/LUAz3qRdrqWBcrWcdCiNi8Hz1OKBp1SWN3acU8RppIM0uwlrcBkjnigbbM5DZ2o+svA23A=="; 12 }; 13 14 appimageContents = appimageTools.extractType2 { 15 inherit name src; 16 }; 17in 18appimageTools.wrapType2 { 19 inherit name src; 20 21 multiPkgs = null; # no 32bit needed 22 extraPkgs = pkgs: appimageTools.defaultFhsEnvArgs.multiPkgs pkgs ++ [ pkgs.bash ]; 23 24 extraInstallCommands = '' 25 ln -s $out/bin/${name} $out/bin/${pname} 26 install -m 444 -D ${appimageContents}/${pname}.desktop $out/share/applications/${pname}.desktop 27 install -m 444 -D ${appimageContents}/${pname}.png \ 28 $out/share/icons/hicolor/512x512/apps/${pname}.png 29 substituteInPlace $out/share/applications/${pname}.desktop \ 30 --replace 'Exec=AppRun' 'Exec=${pname}' 31 ''; 32 33 meta = with lib; { 34 description = "Modern and easy to use SQL client for MySQL, Postgres, SQLite, SQL Server, and more. Linux, MacOS, and Windows"; 35 homepage = "https://www.beekeeperstudio.io"; 36 changelog = "https://github.com/beekeeper-studio/beekeeper-studio/releases/tag/v${version}"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ milogert alexnortung ]; 39 platforms = [ "x86_64-linux" ]; 40 }; 41}