From 052e8a9c588ee90ef4cbc1f922e1d18ecb4f8c97 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Wed, 28 Jan 2026 17:43:58 +0100 Subject: [PATCH] python3.setupHook: use replaceVars instead of substituteAllInPlace --- .../interpreters/python/setup-hook.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pkgs/development/interpreters/python/setup-hook.nix b/pkgs/development/interpreters/python/setup-hook.nix index 364048484825..6f1933aaa25d 100644 --- a/pkgs/development/interpreters/python/setup-hook.nix +++ b/pkgs/development/interpreters/python/setup-hook.nix @@ -1,19 +1,19 @@ -{ runCommand }: +{ + runCommand, + replaceVars, +}: sitePackages: let - hook = ./setup-hook.sh; + hook = replaceVars ./setup-hook.sh { + inherit sitePackages; + }; in runCommand "python-setup-hook.sh" { strictDeps = true; - env = { - inherit sitePackages; - }; } '' - cp ${hook} hook.sh - substituteAllInPlace hook.sh - mv hook.sh $out + cp ${hook} $out ''