dgraph: use --prefix to prefix PATH
This is more robust in case PATH is empty or otherwise weird.
This commit is contained in:
@@ -12,7 +12,7 @@ let
|
|||||||
''
|
''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
makeWrapper ${cfg.package}/bin/dgraph $out/bin/dgraph \
|
makeWrapper ${cfg.package}/bin/dgraph $out/bin/dgraph \
|
||||||
--set PATH '${lib.makeBinPath [ pkgs.nodejs ]}:$PATH' \
|
--prefix PATH : "${lib.makeBinPath [ pkgs.nodejs ]}" \
|
||||||
'';
|
'';
|
||||||
securityOptions = {
|
securityOptions = {
|
||||||
NoNewPrivileges = true;
|
NoNewPrivileges = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user