pgadmin: format
Signed-off-by: Florian Brandes <florian.brandes@posteo.de>
This commit is contained in:
parent
580e6f79bd
commit
fc8096cd34
@ -1,16 +1,17 @@
|
||||
{ lib
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
, fetchYarnDeps
|
||||
, zlib
|
||||
, nixosTests
|
||||
, postgresqlTestHook
|
||||
, postgresql
|
||||
, yarn
|
||||
, fixup-yarn-lock
|
||||
, nodejs
|
||||
, stdenv
|
||||
, server-mode ? true
|
||||
{
|
||||
lib,
|
||||
python3,
|
||||
fetchFromGitHub,
|
||||
fetchYarnDeps,
|
||||
zlib,
|
||||
nixosTests,
|
||||
postgresqlTestHook,
|
||||
postgresql,
|
||||
yarn,
|
||||
fixup-yarn-lock,
|
||||
nodejs,
|
||||
stdenv,
|
||||
server-mode ? true,
|
||||
}:
|
||||
|
||||
let
|
||||
@ -81,8 +82,8 @@ pythonPackages.buildPythonApplication rec {
|
||||
substituteInPlace pkg/pip/setup_pip.py \
|
||||
--replace-fail "req = req.replace('psycopg[c]', 'psycopg[binary]')" "req = req"
|
||||
${lib.optionalString (!server-mode) ''
|
||||
substituteInPlace web/config.py \
|
||||
--replace-fail "SERVER_MODE = True" "SERVER_MODE = False"
|
||||
substituteInPlace web/config.py \
|
||||
--replace-fail "SERVER_MODE = True" "SERVER_MODE = False"
|
||||
''}
|
||||
'';
|
||||
|
||||
@ -140,7 +141,14 @@ pythonPackages.buildPythonApplication rec {
|
||||
cp -v ../pkg/pip/setup_pip.py setup.py
|
||||
'';
|
||||
|
||||
nativeBuildInputs = with pythonPackages; [ cython pip sphinx yarn fixup-yarn-lock nodejs ];
|
||||
nativeBuildInputs = with pythonPackages; [
|
||||
cython
|
||||
pip
|
||||
sphinx
|
||||
yarn
|
||||
fixup-yarn-lock
|
||||
nodejs
|
||||
];
|
||||
buildInputs = [
|
||||
zlib
|
||||
pythonPackages.wheel
|
||||
@ -241,19 +249,26 @@ pythonPackages.buildPythonApplication rec {
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Administration and development platform for PostgreSQL${lib.optionalString (!server-mode) ". Desktop Mode"}";
|
||||
description = "Administration and development platform for PostgreSQL${
|
||||
lib.optionalString (!server-mode) ". Desktop Mode"
|
||||
}";
|
||||
longDescription = ''
|
||||
pgAdmin 4 is designed to meet the needs of both novice and experienced Postgres users alike,
|
||||
providing a powerful graphical interface that simplifies the creation, maintenance and use of database objects.
|
||||
${if server-mode then ''
|
||||
This version is build with SERVER_MODE set to True (the default). It will require access to `/var/lib/pgadmin`
|
||||
and `/var/log/pgadmin`. This is the default version for the NixOS module `services.pgadmin`.
|
||||
This should NOT be used in combination with the `pgadmin4-desktopmode` package as they will interfere.
|
||||
'' else ''
|
||||
This version is build with SERVER_MODE set to False. It will require access to `~/.pgadmin/`. This version is suitable
|
||||
for single-user deployment or where access to `/var/lib/pgadmin` cannot be granted or the NixOS module cannot be used (e.g. on MacOS).
|
||||
This should NOT be used in combination with the NixOS module `pgadmin` as they will interfere.
|
||||
''}
|
||||
${
|
||||
if server-mode then
|
||||
''
|
||||
This version is build with SERVER_MODE set to True (the default). It will require access to `/var/lib/pgadmin`
|
||||
and `/var/log/pgadmin`. This is the default version for the NixOS module `services.pgadmin`.
|
||||
This should NOT be used in combination with the `pgadmin4-desktopmode` package as they will interfere.
|
||||
''
|
||||
else
|
||||
''
|
||||
This version is build with SERVER_MODE set to False. It will require access to `~/.pgadmin/`. This version is suitable
|
||||
for single-user deployment or where access to `/var/lib/pgadmin` cannot be granted or the NixOS module cannot be used (e.g. on MacOS).
|
||||
This should NOT be used in combination with the NixOS module `pgadmin` as they will interfere.
|
||||
''
|
||||
}
|
||||
'';
|
||||
homepage = "https://www.pgadmin.org/";
|
||||
license = lib.licenses.mit;
|
||||
|
Loading…
Reference in New Issue
Block a user