diff options
author | Ryan Mulligan <ryan@ryantm.com> | 2021-11-16 15:59:32 -0800 |
---|---|---|
committer | Ryan Mulligan <ryan@ryantm.com> | 2021-11-16 15:59:32 -0800 |
commit | 88120a137726a274905a7fc18c8d01888582384a (patch) | |
tree | 4b67645e4adaf8dcd86501ac2c6982c2e1a17da9 /pkgs/servers/web-apps | |
parent | 59e5ab0290d338f6613506bf8445c7be972d1e8d (diff) | |
download | nixpkgs-88120a137726a274905a7fc18c8d01888582384a.tar nixpkgs-88120a137726a274905a7fc18c8d01888582384a.tar.gz nixpkgs-88120a137726a274905a7fc18c8d01888582384a.tar.bz2 nixpkgs-88120a137726a274905a7fc18c8d01888582384a.tar.lz nixpkgs-88120a137726a274905a7fc18c8d01888582384a.tar.xz nixpkgs-88120a137726a274905a7fc18c8d01888582384a.tar.zst nixpkgs-88120a137726a274905a7fc18c8d01888582384a.zip |
discourse/update.py: use nix-instantiate
The interface of `nix eval` is not stable across versions of nix that are currently in the wild, so use the older nix-instantiate command instead.
Diffstat (limited to 'pkgs/servers/web-apps')
-rwxr-xr-x | pkgs/servers/web-apps/discourse/update.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/servers/web-apps/discourse/update.py b/pkgs/servers/web-apps/discourse/update.py index 8352ac09f36..ffdff7bc06a 100755 --- a/pkgs/servers/web-apps/discourse/update.py +++ b/pkgs/servers/web-apps/discourse/update.py @@ -79,7 +79,7 @@ def _call_nix_update(pkg, version): def _nix_eval(expr: str): nixpkgs_path = Path(__file__).parent / '../../../../' try: - output = subprocess.check_output(['nix', 'eval', '--json', f'(with import {nixpkgs_path} {{}}; {expr})'], text=True) + output = subprocess.check_output(['nix-instantiate', '--strict', '--json', '--eval', '-E', f'(with import {nixpkgs_path} {{}}; {expr})'], text=True) except subprocess.CalledProcessError: return None return json.loads(output) |