Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
39 lines
890 B
Nix
39 lines
890 B
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
_7zz,
|
|
stdenv,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "tableplus";
|
|
version = "538";
|
|
src = fetchurl {
|
|
url = "https://download.tableplus.com/macos/${finalAttrs.version}/TablePlus.dmg";
|
|
hash = "sha256-db3dvjEzkqWrEO+lXyImk0cVBkh8MnCwHOYKIg+kRC4=";
|
|
};
|
|
|
|
sourceRoot = "TablePlus.app";
|
|
|
|
nativeBuildInputs = [ _7zz ];
|
|
|
|
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;
|
|
};
|
|
})
|