Skip to content

Commit

Permalink
navicat-premium: init at 17.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dr56ekgbb authored and aucub committed Nov 4, 2024
1 parent 3082bb3 commit b04c540
Showing 1 changed file with 114 additions and 0 deletions.
114 changes: 114 additions & 0 deletions pkgs/by-name/na/navicat-premium/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
{
fetchurl,
appimageTools,
lib,
libGL,
glib,
glibc,
pango,
harfbuzz,
fontconfig,
libX11,
freetype,
e2fsprogs,
expat,
p11-kit,
libxcb,
libgpg-error,
stdenv,
cjson,
libxcrypt-legacy,
curl,
makeWrapper,
autoPatchelfHook,
libxkbcommon,
libselinux,
}:
let
pname = "navicat-premium";
version = "17.1.3";
src = fetchurl {
url = "https://web.archive.org/web/20241104191829if_/https://dn.navicat.com/download/navicat17-premium-en-x86_64.AppImage";
hash = "sha256-ndMzGzHQ8MBt/bPRZWmP/aRo5ALGkZftYjcRirL26bM=";
};
appimageContents = appimageTools.extractType2 { inherit pname version src; };
in
stdenv.mkDerivation {
inherit pname version;

nativeBuildInputs = [
autoPatchelfHook
makeWrapper
];

buildInputs = [
libgpg-error
libxcb
p11-kit
expat
e2fsprogs
freetype
libX11
fontconfig
harfbuzz
pango
glibc
glib
libGL
cjson
curl
libxcrypt-legacy
libxkbcommon
libselinux
];

dontUnpack = true;

installPhase = ''
runHook preInstall
cp -a ${appimageContents}/usr $out/
chmod -R u+rwX,go+rX,go-w $out
mkdir -p $out/usr
ln -s $out/lib $out/usr/lib
runHook postInstall
'';

preFixup = ''
wrapProgram $out/bin/navicat \
--prefix LD_LIBRARY_PATH : "${
lib.makeLibraryPath [
libGL
glib
glibc
pango
harfbuzz
fontconfig
libX11
freetype
e2fsprogs
expat
p11-kit
libxcb
libgpg-error
libxkbcommon
libselinux
]
}:$out/lib" \
--set QT_PLUGIN_PATH "$out/plugins" \
--set QT_QPA_PLATFORM xcb \
--set QT_STYLE_OVERRIDE Fusion \
--chdir "$out"
'';

meta = {
homepage = "https://www.navicat.com/products/navicat-premium";
description = "Database development tool that allows you to simultaneously connect to many databases";
mainProgram = "navicat";
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
license = lib.licenses.unfree;
maintainers = with lib.maintainers; [ aucub ];
platforms = [ "x86_64-linux" ];
};
}

0 comments on commit b04c540

Please sign in to comment.