nixpkgs/pkgs/by-name/ta/tableplus/package.nix

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

38 lines
884 B
Nix
Raw Normal View History

2023-09-05 09:46:08 +00:00
{ lib
, fetchurl
2024-03-02 22:54:41 +00:00
, _7zz
2023-09-05 09:46:08 +00:00
, stdenv
}:
stdenv.mkDerivation (finalAttrs: {
pname = "tableplus";
2024-03-02 22:54:41 +00:00
version = "538";
2023-09-05 09:46:08 +00:00
src = fetchurl {
url = "https://download.tableplus.com/macos/${finalAttrs.version}/TablePlus.dmg";
2024-03-02 22:54:41 +00:00
hash = "sha256-db3dvjEzkqWrEO+lXyImk0cVBkh8MnCwHOYKIg+kRC4=";
2023-09-05 09:46:08 +00:00
};
sourceRoot = "TablePlus.app";
2024-03-02 22:54:41 +00:00
nativeBuildInputs = [ _7zz ];
2023-09-05 09:46:08 +00:00
installPhase = ''
runHook preInstall
mkdir -p "$out/Applications/TablePlus.app"
cp -R . "$out/Applications/TablePlus.app"
mkdir "$out/bin"
ln -s "$out/Applications/TablePlus.app/Contents/MacOS/TablePlus" "$out/bin/${finalAttrs.pname}"
runHook postInstall
'';
meta = with lib; {
description = "Database management made easy";
homepage = "https://tableplus.com";
license = licenses.unfree;
maintainers = with maintainers; [ yamashitax ];
platforms = platforms.darwin;
};
})