51 lines
1.6 KiB
Nix
51 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
appimageTools,
|
|
}:
|
|
let
|
|
pname = "navicat-premium";
|
|
version = "17.3.0";
|
|
|
|
src =
|
|
{
|
|
x86_64-linux = fetchurl {
|
|
url = "https://web.archive.org/web/20250725013746/https://dn.navicat.com/download/navicat17-premium-en-x86_64.AppImage";
|
|
hash = "sha256-IXUVu7kbFsoWpd21cJb/5Ho03LiaZ2pJ9KlckJ1xcOQ=";
|
|
};
|
|
aarch64-linux = fetchurl {
|
|
url = "https://web.archive.org/web/20250725014645/https://dn.navicat.com/download/navicat17-premium-en-aarch64.AppImage";
|
|
hash = "sha256-3765am3eJRjTJ9TVo0LYis0tnFEd0anSd6CUl8bfIFU=";
|
|
};
|
|
}
|
|
.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
|
|
|
|
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";
|
|
changelog = "https://www.navicat.com/products/navicat-premium-release-note";
|
|
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; [ ];
|
|
platforms = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
];
|
|
mainProgram = "navicat-premium";
|
|
};
|
|
}
|