From 9316c5f8e8c8f3f128dbb15ec079c26f9f6fcfaf Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sat, 14 Sep 2024 13:41:25 +0200 Subject: [PATCH] update-python-libraries: enable nix-command consistently This was already done for nix eval in _get_attr_value, but not in other places. --- .../update-python-libraries.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py b/pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py index 57153383fc18..dd6dcb2c70ad 100755 --- a/pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py +++ b/pkgs/development/interpreters/python/update-python-libraries/update-python-libraries.py @@ -162,7 +162,18 @@ def _fetch_github(url): def _hash_to_sri(algorithm, value): """Convert a hash to its SRI representation""" return ( - subprocess.check_output(["nix", "hash", "to-sri", "--type", algorithm, value]) + subprocess.check_output( + [ + "nix", + "--extra-experimental-features", + "nix-command", + "hash", + "to-sri", + "--type", + algorithm, + value, + ] + ) .decode() .strip() ) @@ -250,6 +261,8 @@ def _get_latest_version_github(attr_path, package, extension, current_version, t homepage = subprocess.check_output( [ "nix", + "--extra-experimental-features", + "nix-command", "eval", "-f", f"{NIXPKGS_ROOT}/default.nix",