mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-02 11:03:57 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
38 lines
884 B
Nix
38 lines
884 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;
|
|
};
|
|
})
|