summary refs log tree commit diff
path: root/pkgs/servers/web-apps
diff options
context:
space:
mode:
authorRyan Mulligan <ryan@ryantm.com>2021-11-16 15:59:32 -0800
committerRyan Mulligan <ryan@ryantm.com>2021-11-16 15:59:32 -0800
commit88120a137726a274905a7fc18c8d01888582384a (patch)
tree4b67645e4adaf8dcd86501ac2c6982c2e1a17da9 /pkgs/servers/web-apps
parent59e5ab0290d338f6613506bf8445c7be972d1e8d (diff)
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-xpkgs/servers/web-apps/discourse/update.py2
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 8352ac09f367a..ffdff7bc06a15 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)