mirror of
https://github.com/juspay/services-flake.git
synced 2024-09-11 04:15:36 +03:00
fix(pgadmin): Fix pgadmin scripts on MacOS (#163)
`readlink -m` is invalid on mac. Added coreutils as a runtime input for darwin.
This commit is contained in:
parent
eb4364c92a
commit
8d390cb955
@ -103,7 +103,11 @@ in
|
||||
let
|
||||
setupScript = pkgs.writeShellApplication {
|
||||
name = "setup-pgadmin";
|
||||
runtimeInputs = [ config.package ];
|
||||
runtimeInputs =
|
||||
[ config.package ] ++
|
||||
(lib.lists.optionals pkgs.stdenv.isDarwin [
|
||||
pkgs.coreutils
|
||||
]);
|
||||
text = ''
|
||||
export PYTHONPATH="${pgadminConfig}"
|
||||
PGADMIN_DATADIR="$(readlink -m ${config.dataDir})"
|
||||
@ -132,7 +136,11 @@ in
|
||||
let
|
||||
startScript = pkgs.writeShellApplication {
|
||||
name = "start-pgadmin";
|
||||
runtimeInputs = [ config.package ];
|
||||
runtimeInputs =
|
||||
[ config.package ] ++
|
||||
(lib.lists.optionals pkgs.stdenv.isDarwin [
|
||||
pkgs.coreutils
|
||||
]);
|
||||
text = ''
|
||||
export PYTHONPATH="${pgadminConfig}"
|
||||
PGADMIN_DATADIR="$(readlink -m ${config.dataDir})"
|
||||
|
Loading…
Reference in New Issue
Block a user