dgraph: use --prefix to prefix PATH

This is more robust in case PATH is empty or otherwise weird.
This commit is contained in:
Sandro 2023-03-01 13:55:30 +01:00 committed by GitHub
parent 5d609e47fe
commit 86053e5ec2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ let
''
mkdir -p $out/bin
makeWrapper ${cfg.package}/bin/dgraph $out/bin/dgraph \
--set PATH '${lib.makeBinPath [ pkgs.nodejs ]}:$PATH' \
--prefix PATH : "${lib.makeBinPath [ pkgs.nodejs ]}" \
'';
securityOptions = {
NoNewPrivileges = true;