about summary refs log tree commit diff
path: root/pkgs/applications/science/misc/root/default.nix
diff options
context:
space:
mode:
authorShamrock Lee <44064051+ShamrockLee@users.noreply.github.com>2022-12-10 08:27:00 +0800
committerShamrock Lee <44064051+ShamrockLee@users.noreply.github.com>2022-12-11 17:45:55 +0800
commit53f8736f10065812b0b38fcb2f1de3b5a7e0ea03 (patch)
treef5706faaaa215b273aa62d74ac5aa5bf2e1bfc2e /pkgs/applications/science/misc/root/default.nix
parentd4288c8e3ff5ada52390ae0bdd3de89a6054979c (diff)
root: adjust format
Diffstat (limited to 'pkgs/applications/science/misc/root/default.nix')
-rw-r--r--pkgs/applications/science/misc/root/default.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/applications/science/misc/root/default.nix b/pkgs/applications/science/misc/root/default.nix
index 12b181d2edd43..41240a191cf91 100644
--- a/pkgs/applications/science/misc/root/default.nix
+++ b/pkgs/applications/science/misc/root/default.nix
@@ -216,12 +216,13 @@ stdenv.mkDerivation rec {
         --set ${lib.optionalString stdenv.isDarwin "DY"}LD_LIBRARY_PATH "$out/lib"
     done
 
-    # Make ldd and sed available to the ROOT executable
-    wrapProgram "$out/bin/root" --prefix PATH : "${lib.makeBinPath [
-      gnused # sed
-      stdenv.cc # c++ ld etc.
-      stdenv.cc.libc # ldd
-    ]}"
+    # Make ldd and sed available to the ROOT executable by prefixing PATH.
+    wrapProgram "$out/bin/root" \
+      --prefix PATH : "${lib.makeBinPath [
+        gnused # sed
+        stdenv.cc # c++ ld etc.
+        stdenv.cc.libc # ldd
+      ]}"
 
     # Patch thisroot.{sh,csh,fish}