Unverified Commit 3581c4b3 authored by Pol Dellaiera's avatar Pol Dellaiera Committed by GitHub
Browse files

Merge pull request #225951 from yamashitax/add-tableplus

tableplus: init at 504
parents 9e227492 efc57086
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -21067,6 +21067,12 @@
    githubId = 973709;
    name = "Jairo Llopis";
  };
  yamashitax = {
    email = "hello@yamashit.ax";
    github = "yamashitax";
    githubId = 99486674;
    name = "山下";
  };
  yana = {
    email = "yana@riseup.net";
    github = "yanateras";
+37 −0
Original line number Diff line number Diff line
{ 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;
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -40670,6 +40670,8 @@ with pkgs;
  shellz = callPackage ../tools/security/shellz { };
  tableplus = callPackage ../applications/misc/tableplus { };
  timeloop = pkgs.darwin.apple_sdk_11_0.callPackage ../applications/science/computer-architecture/timeloop { };
  canon-cups-ufr2 = callPackage ../misc/cups/drivers/canon { };