Skip to content

Commit 86053e5

Browse files
dgraph: use --prefix to prefix PATH
This is more robust in case PATH is empty or otherwise weird.
1 parent 5d609e4 commit 86053e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nixos/modules/services/databases/dgraph.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ let
1212
''
1313
mkdir -p $out/bin
1414
makeWrapper ${cfg.package}/bin/dgraph $out/bin/dgraph \
15-
--set PATH '${lib.makeBinPath [ pkgs.nodejs ]}:$PATH' \
15+
--prefix PATH : "${lib.makeBinPath [ pkgs.nodejs ]}" \
1616
'';
1717
securityOptions = {
1818
NoNewPrivileges = true;

0 commit comments

Comments
 (0)