From f3a7d2e0c49f29878c2852fe13b352c8523d5141 Mon Sep 17 00:00:00 2001 From: aucub <78630225+aucub@users.noreply.github.com> Date: Thu, 28 Nov 2024 06:23:09 +0800 Subject: [PATCH] navicat-premium: init at 17.1.6 --- pkgs/by-name/na/navicat-premium/package.nix | 33 +++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/by-name/na/navicat-premium/package.nix diff --git a/pkgs/by-name/na/navicat-premium/package.nix b/pkgs/by-name/na/navicat-premium/package.nix new file mode 100644 index 00000000000000..a71c58a7ef530c --- /dev/null +++ b/pkgs/by-name/na/navicat-premium/package.nix @@ -0,0 +1,33 @@ +{ + fetchurl, + appimageTools, + lib, +}: +let + pname = "navicat-premium"; + version = "17.1.6"; + src = fetchurl { + url = "https://web.archive.org/web/20241127151816/https://dn.navicat.com/download/navicat17-premium-en-x86_64.AppImage"; + hash = "sha256-pH5hjHRuN29yBvsBrskCcwgXRUZ95iwEse2O3IiIvGo="; + }; + 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"; + 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; [ aucub ]; + }; +}