Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.6 KiB
Nix
Raw Permalink Normal View History

2024-11-29 02:43:32 +08:00
{
lib,
2024-12-17 09:11:11 +08:00
stdenv,
2025-05-16 08:48:45 +08:00
fetchurl,
appimageTools,
2024-11-29 02:43:32 +08:00
}:
let
pname = "navicat-premium";
2025-08-11 09:36:18 +08:00
version = "17.3.0";
2024-12-17 09:11:11 +08:00
src =
{
x86_64-linux = fetchurl {
2025-08-11 09:36:18 +08:00
url = "https://web.archive.org/web/20250725013746/https://dn.navicat.com/download/navicat17-premium-en-x86_64.AppImage";
hash = "sha256-IXUVu7kbFsoWpd21cJb/5Ho03LiaZ2pJ9KlckJ1xcOQ=";
2024-12-17 09:11:11 +08:00
};
aarch64-linux = fetchurl {
2025-08-11 09:36:18 +08:00
url = "https://web.archive.org/web/20250725014645/https://dn.navicat.com/download/navicat17-premium-en-aarch64.AppImage";
hash = "sha256-3765am3eJRjTJ9TVo0LYis0tnFEd0anSd6CUl8bfIFU=";
2024-12-17 09:11:11 +08:00
};
}
2025-02-09 02:35:20 +08:00
.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
2024-12-17 09:11:11 +08:00
2024-11-29 02:43:32 +08:00
appimageContents = appimageTools.extractType2 {
inherit pname version src;
};
in
appimageTools.wrapType2 {
inherit pname version src;
extraInstallCommands = ''
cp -r ${appimageContents}/usr/share $out/share
substituteInPlace $out/share/applications/navicat.desktop \
--replace-fail "Exec=navicat" "Exec=navicat-premium"
'';
meta = {
homepage = "https://www.navicat.com/products/navicat-premium";
2024-12-17 09:11:11 +08:00
changelog = "https://www.navicat.com/products/navicat-premium-release-note";
2024-11-29 02:43:32 +08:00
description = "Database development tool that allows you to simultaneously connect to many databases";
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ ];
2024-12-17 09:11:11 +08:00
platforms = [
"x86_64-linux"
"aarch64-linux"
];
2024-11-29 02:43:32 +08:00
mainProgram = "navicat-premium";
};
}