From 3a0ab52313f2c00b211c0d5a34d10e7e82fe3f92 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 17 May 2023 17:15:12 +0300 Subject: [PATCH] wordpress: fix generate.sh --- pkgs/servers/web-apps/wordpress/packages/generate.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/web-apps/wordpress/packages/generate.sh b/pkgs/servers/web-apps/wordpress/packages/generate.sh index bd4435dc2ff0..1619850e8a2a 100755 --- a/pkgs/servers/web-apps/wordpress/packages/generate.sh +++ b/pkgs/servers/web-apps/wordpress/packages/generate.sh @@ -1,12 +1,15 @@ #!/usr/bin/env nix-shell -#! nix-shell -I nixpkgs=../../../../.. -i bash -p wp4nix +#!nix-shell -i bash -p wp4nix jq set -e set -u set -o pipefail set -x +cd $(dirname "$0") + nixFlags="--option experimental-features nix-command eval --raw --impure --expr" +export NIX_PATH=nixpkgs=../../../../.. export WP_VERSION=$(nix $nixFlags '(import {}).wordpress.version') PLUGINS=`cat wordpress-plugins.json | jq -r '.[]' | sed -z 's/\n/,/g;s/,$/\n/'`