blob: c53f89582b45a24feca6d761aef1391b30e7aa13 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{ lib
, fetchurl
, undmg
, stdenv
}:
stdenv.mkDerivation (finalAttrs: {
pname = "tableplus";
version = "504";
src = fetchurl {
url = "https://download.tableplus.com/macos/${finalAttrs.version}/TablePlus.dmg";
hash = "sha256-YFUquv71QFEnlmh93+HsFN6XtgoUx6CMOVqfdWAIWfo=";
};
sourceRoot = "TablePlus.app";
nativeBuildInputs = [ undmg ];
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;
};
})
|