+12
-1
nixos/modules/services/web-apps/discourse.xml
+12
-1
nixos/modules/services/web-apps/discourse.xml
···
+53
-2
pkgs/servers/web-apps/discourse/update.py
+53
-2
pkgs/servers/web-apps/discourse/update.py
······-return json.loads(subprocess.check_output(['nix', 'eval', '--json', f'(with import {nixpkgs_path} {{}}; {expr})'], text=True))+output = subprocess.check_output(['nix', 'eval', '--json', f'(with import {nixpkgs_path} {{}}; {expr})'], text=True)···+content = content[:pos] + f' {name} = callPackage ./{name} {{}};' + os.linesep + content[pos:]