diff --git a/.direnv/bin/nix-direnv-reload b/.direnv/bin/nix-direnv-reload new file mode 100755 index 00000000..186ac961 --- /dev/null +++ b/.direnv/bin/nix-direnv-reload @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +dir="$(realpath $(dirname ${BASH_SOURCE[0]})/../..)" +_nix_direnv_force_reload=1 direnv exec "$dir" true +direnv reload +# direnv reload updates the mtime of .envrc. Also update the timestamp of the +# profile_rc file to keep track that we actually are up to date. +touch $dir/.direnv/{nix,flake}-profile-*.rc + diff --git a/.direnv/flake-inputs/027wnc7kfpdl7n7xr7pby8csjd31d8xw-source b/.direnv/flake-inputs/027wnc7kfpdl7n7xr7pby8csjd31d8xw-source new file mode 120000 index 00000000..ff0cfd66 --- /dev/null +++ b/.direnv/flake-inputs/027wnc7kfpdl7n7xr7pby8csjd31d8xw-source @@ -0,0 +1 @@ +/nix/store/027wnc7kfpdl7n7xr7pby8csjd31d8xw-source \ No newline at end of file diff --git a/.direnv/flake-inputs/06hrp1ayvbz1xxy2sq813csja9fpa0gz-source b/.direnv/flake-inputs/06hrp1ayvbz1xxy2sq813csja9fpa0gz-source new file mode 120000 index 00000000..4c7865c4 --- /dev/null +++ b/.direnv/flake-inputs/06hrp1ayvbz1xxy2sq813csja9fpa0gz-source @@ -0,0 +1 @@ +/nix/store/06hrp1ayvbz1xxy2sq813csja9fpa0gz-source \ No newline at end of file diff --git a/.direnv/flake-inputs/0bf808gbz6bn0jj4cmr1hjyzxxdpg1lq-source b/.direnv/flake-inputs/0bf808gbz6bn0jj4cmr1hjyzxxdpg1lq-source new file mode 120000 index 00000000..d312ffab --- /dev/null +++ b/.direnv/flake-inputs/0bf808gbz6bn0jj4cmr1hjyzxxdpg1lq-source @@ -0,0 +1 @@ +/nix/store/0bf808gbz6bn0jj4cmr1hjyzxxdpg1lq-source \ No newline at end of file diff --git a/.direnv/flake-inputs/0f4jas3yznbqshasngfw3cwj2x5rry45-source b/.direnv/flake-inputs/0f4jas3yznbqshasngfw3cwj2x5rry45-source new file mode 120000 index 00000000..84e4f299 --- /dev/null +++ b/.direnv/flake-inputs/0f4jas3yznbqshasngfw3cwj2x5rry45-source @@ -0,0 +1 @@ +/nix/store/0f4jas3yznbqshasngfw3cwj2x5rry45-source \ No newline at end of file diff --git a/.direnv/flake-inputs/0wywh9466wil3x7fc660h7ki8gjbf389-source b/.direnv/flake-inputs/0wywh9466wil3x7fc660h7ki8gjbf389-source new file mode 120000 index 00000000..ed9ee4ce --- /dev/null +++ b/.direnv/flake-inputs/0wywh9466wil3x7fc660h7ki8gjbf389-source @@ -0,0 +1 @@ +/nix/store/0wywh9466wil3x7fc660h7ki8gjbf389-source \ No newline at end of file diff --git a/.direnv/flake-inputs/1cfq3bqjmyx1j64vawb83iy1x3jvw6sg-source b/.direnv/flake-inputs/1cfq3bqjmyx1j64vawb83iy1x3jvw6sg-source new file mode 120000 index 00000000..2b571bd7 --- /dev/null +++ b/.direnv/flake-inputs/1cfq3bqjmyx1j64vawb83iy1x3jvw6sg-source @@ -0,0 +1 @@ +/nix/store/1cfq3bqjmyx1j64vawb83iy1x3jvw6sg-source \ No newline at end of file diff --git a/.direnv/flake-inputs/39wqw2iqiqp9gh77bikwbz6mbra4xjj1-source b/.direnv/flake-inputs/39wqw2iqiqp9gh77bikwbz6mbra4xjj1-source new file mode 120000 index 00000000..9ac28f89 --- /dev/null +++ b/.direnv/flake-inputs/39wqw2iqiqp9gh77bikwbz6mbra4xjj1-source @@ -0,0 +1 @@ +/nix/store/39wqw2iqiqp9gh77bikwbz6mbra4xjj1-source \ No newline at end of file diff --git a/.direnv/flake-inputs/5q7vxm9lc4b9hifc3br4sr8dy7f2h0qa-source b/.direnv/flake-inputs/5q7vxm9lc4b9hifc3br4sr8dy7f2h0qa-source new file mode 120000 index 00000000..b99253e8 --- /dev/null +++ b/.direnv/flake-inputs/5q7vxm9lc4b9hifc3br4sr8dy7f2h0qa-source @@ -0,0 +1 @@ +/nix/store/5q7vxm9lc4b9hifc3br4sr8dy7f2h0qa-source \ No newline at end of file diff --git a/.direnv/flake-inputs/63kj13wz4wq6hk37b0hx04jfbw6rkd2r-source b/.direnv/flake-inputs/63kj13wz4wq6hk37b0hx04jfbw6rkd2r-source new file mode 120000 index 00000000..d58447ef --- /dev/null +++ b/.direnv/flake-inputs/63kj13wz4wq6hk37b0hx04jfbw6rkd2r-source @@ -0,0 +1 @@ +/nix/store/63kj13wz4wq6hk37b0hx04jfbw6rkd2r-source \ No newline at end of file diff --git a/.direnv/flake-inputs/74lfbc16rmzimvz281rff8mv7mnbq42m-source b/.direnv/flake-inputs/74lfbc16rmzimvz281rff8mv7mnbq42m-source new file mode 120000 index 00000000..890b66ef --- /dev/null +++ b/.direnv/flake-inputs/74lfbc16rmzimvz281rff8mv7mnbq42m-source @@ -0,0 +1 @@ +/nix/store/74lfbc16rmzimvz281rff8mv7mnbq42m-source \ No newline at end of file diff --git a/.direnv/flake-inputs/8drxi4s8n69hdv4mp4jiqsi71yaxv8i6-source b/.direnv/flake-inputs/8drxi4s8n69hdv4mp4jiqsi71yaxv8i6-source new file mode 120000 index 00000000..b6d8b86c --- /dev/null +++ b/.direnv/flake-inputs/8drxi4s8n69hdv4mp4jiqsi71yaxv8i6-source @@ -0,0 +1 @@ +/nix/store/8drxi4s8n69hdv4mp4jiqsi71yaxv8i6-source \ No newline at end of file diff --git a/.direnv/flake-inputs/8sm7wycza5fl6lnsmw11sn4vqkvw4xyh-source b/.direnv/flake-inputs/8sm7wycza5fl6lnsmw11sn4vqkvw4xyh-source new file mode 120000 index 00000000..c2649c1f --- /dev/null +++ b/.direnv/flake-inputs/8sm7wycza5fl6lnsmw11sn4vqkvw4xyh-source @@ -0,0 +1 @@ +/nix/store/8sm7wycza5fl6lnsmw11sn4vqkvw4xyh-source \ No newline at end of file diff --git a/.direnv/flake-inputs/9ks8076lanzwp09dmwy5r3racihsc1ip-source b/.direnv/flake-inputs/9ks8076lanzwp09dmwy5r3racihsc1ip-source new file mode 120000 index 00000000..298bba72 --- /dev/null +++ b/.direnv/flake-inputs/9ks8076lanzwp09dmwy5r3racihsc1ip-source @@ -0,0 +1 @@ +/nix/store/9ks8076lanzwp09dmwy5r3racihsc1ip-source \ No newline at end of file diff --git a/.direnv/flake-inputs/alwr19m30k1w42kggdkv0wphav00lmx4-source b/.direnv/flake-inputs/alwr19m30k1w42kggdkv0wphav00lmx4-source new file mode 120000 index 00000000..ebcb3ad3 --- /dev/null +++ b/.direnv/flake-inputs/alwr19m30k1w42kggdkv0wphav00lmx4-source @@ -0,0 +1 @@ +/nix/store/alwr19m30k1w42kggdkv0wphav00lmx4-source \ No newline at end of file diff --git a/.direnv/flake-inputs/dmcric47gi0f1213padyr2dbz57mffld-source b/.direnv/flake-inputs/dmcric47gi0f1213padyr2dbz57mffld-source new file mode 120000 index 00000000..f59789d9 --- /dev/null +++ b/.direnv/flake-inputs/dmcric47gi0f1213padyr2dbz57mffld-source @@ -0,0 +1 @@ +/nix/store/dmcric47gi0f1213padyr2dbz57mffld-source \ No newline at end of file diff --git a/.direnv/flake-inputs/gmdhl9qfaic5765lxw2wj6hb2ifjmhjd-source b/.direnv/flake-inputs/gmdhl9qfaic5765lxw2wj6hb2ifjmhjd-source new file mode 120000 index 00000000..8d08e7ed --- /dev/null +++ b/.direnv/flake-inputs/gmdhl9qfaic5765lxw2wj6hb2ifjmhjd-source @@ -0,0 +1 @@ +/nix/store/gmdhl9qfaic5765lxw2wj6hb2ifjmhjd-source \ No newline at end of file diff --git a/.direnv/flake-inputs/gmppc1139ppjii2yq94c2nb4gcc0sbhw-source b/.direnv/flake-inputs/gmppc1139ppjii2yq94c2nb4gcc0sbhw-source new file mode 120000 index 00000000..a061ae99 --- /dev/null +++ b/.direnv/flake-inputs/gmppc1139ppjii2yq94c2nb4gcc0sbhw-source @@ -0,0 +1 @@ +/nix/store/gmppc1139ppjii2yq94c2nb4gcc0sbhw-source \ No newline at end of file diff --git a/.direnv/flake-inputs/hb81frn1qnacz38jh7py28i6dq5bamr4-source b/.direnv/flake-inputs/hb81frn1qnacz38jh7py28i6dq5bamr4-source new file mode 120000 index 00000000..4777e2c4 --- /dev/null +++ b/.direnv/flake-inputs/hb81frn1qnacz38jh7py28i6dq5bamr4-source @@ -0,0 +1 @@ +/nix/store/hb81frn1qnacz38jh7py28i6dq5bamr4-source \ No newline at end of file diff --git a/.direnv/flake-inputs/hj6cfvnmnwn2j3l4sg5k7k38l5idad8q-source b/.direnv/flake-inputs/hj6cfvnmnwn2j3l4sg5k7k38l5idad8q-source new file mode 120000 index 00000000..4ea2dda9 --- /dev/null +++ b/.direnv/flake-inputs/hj6cfvnmnwn2j3l4sg5k7k38l5idad8q-source @@ -0,0 +1 @@ +/nix/store/hj6cfvnmnwn2j3l4sg5k7k38l5idad8q-source \ No newline at end of file diff --git a/.direnv/flake-inputs/ikv2pfxjzvmadmj4nqaknigzpk6vbl35-source b/.direnv/flake-inputs/ikv2pfxjzvmadmj4nqaknigzpk6vbl35-source new file mode 120000 index 00000000..ed78556a --- /dev/null +++ b/.direnv/flake-inputs/ikv2pfxjzvmadmj4nqaknigzpk6vbl35-source @@ -0,0 +1 @@ +/nix/store/ikv2pfxjzvmadmj4nqaknigzpk6vbl35-source \ No newline at end of file diff --git a/.direnv/flake-inputs/jk590byq8ydkv9h7i4k0mvrg1ac9570v-source b/.direnv/flake-inputs/jk590byq8ydkv9h7i4k0mvrg1ac9570v-source new file mode 120000 index 00000000..c49ec51f --- /dev/null +++ b/.direnv/flake-inputs/jk590byq8ydkv9h7i4k0mvrg1ac9570v-source @@ -0,0 +1 @@ +/nix/store/jk590byq8ydkv9h7i4k0mvrg1ac9570v-source \ No newline at end of file diff --git a/.direnv/flake-inputs/nyiwz0136np2pafqxnzk53qhml0ann20-source b/.direnv/flake-inputs/nyiwz0136np2pafqxnzk53qhml0ann20-source new file mode 120000 index 00000000..328659b1 --- /dev/null +++ b/.direnv/flake-inputs/nyiwz0136np2pafqxnzk53qhml0ann20-source @@ -0,0 +1 @@ +/nix/store/nyiwz0136np2pafqxnzk53qhml0ann20-source \ No newline at end of file diff --git a/.direnv/flake-inputs/p58d2j0ac7zvja5jl14xzbc19fakjxh2-source b/.direnv/flake-inputs/p58d2j0ac7zvja5jl14xzbc19fakjxh2-source new file mode 120000 index 00000000..5529c3b0 --- /dev/null +++ b/.direnv/flake-inputs/p58d2j0ac7zvja5jl14xzbc19fakjxh2-source @@ -0,0 +1 @@ +/nix/store/p58d2j0ac7zvja5jl14xzbc19fakjxh2-source \ No newline at end of file diff --git a/.direnv/flake-inputs/p7iz0r8gs6ppkhj83zjmwyd21k8b7v3y-source b/.direnv/flake-inputs/p7iz0r8gs6ppkhj83zjmwyd21k8b7v3y-source new file mode 120000 index 00000000..859a0b11 --- /dev/null +++ b/.direnv/flake-inputs/p7iz0r8gs6ppkhj83zjmwyd21k8b7v3y-source @@ -0,0 +1 @@ +/nix/store/p7iz0r8gs6ppkhj83zjmwyd21k8b7v3y-source \ No newline at end of file diff --git a/.direnv/flake-inputs/qc0cdv66gcsq5l529qxsy6fdxyhj4zqr-source b/.direnv/flake-inputs/qc0cdv66gcsq5l529qxsy6fdxyhj4zqr-source new file mode 120000 index 00000000..858a1900 --- /dev/null +++ b/.direnv/flake-inputs/qc0cdv66gcsq5l529qxsy6fdxyhj4zqr-source @@ -0,0 +1 @@ +/nix/store/qc0cdv66gcsq5l529qxsy6fdxyhj4zqr-source \ No newline at end of file diff --git a/.direnv/flake-inputs/r4aym5qnzsnviw0c1xdx0hacck405mkp-source b/.direnv/flake-inputs/r4aym5qnzsnviw0c1xdx0hacck405mkp-source new file mode 120000 index 00000000..d8437744 --- /dev/null +++ b/.direnv/flake-inputs/r4aym5qnzsnviw0c1xdx0hacck405mkp-source @@ -0,0 +1 @@ +/nix/store/r4aym5qnzsnviw0c1xdx0hacck405mkp-source \ No newline at end of file diff --git a/.direnv/flake-inputs/w34a3j05pqqmsk4y3vbpzbf4klhacx03-source b/.direnv/flake-inputs/w34a3j05pqqmsk4y3vbpzbf4klhacx03-source new file mode 120000 index 00000000..448c118f --- /dev/null +++ b/.direnv/flake-inputs/w34a3j05pqqmsk4y3vbpzbf4klhacx03-source @@ -0,0 +1 @@ +/nix/store/w34a3j05pqqmsk4y3vbpzbf4klhacx03-source \ No newline at end of file diff --git a/.direnv/flake-inputs/wlgapyp42h5j5ks1wzip99y3igwzk97d-source b/.direnv/flake-inputs/wlgapyp42h5j5ks1wzip99y3igwzk97d-source new file mode 120000 index 00000000..28c524b7 --- /dev/null +++ b/.direnv/flake-inputs/wlgapyp42h5j5ks1wzip99y3igwzk97d-source @@ -0,0 +1 @@ +/nix/store/wlgapyp42h5j5ks1wzip99y3igwzk97d-source \ No newline at end of file diff --git a/.direnv/flake-inputs/x10v0wcvs81gxmhcl9b2lmdqc2flql8r-source b/.direnv/flake-inputs/x10v0wcvs81gxmhcl9b2lmdqc2flql8r-source new file mode 120000 index 00000000..9be404af --- /dev/null +++ b/.direnv/flake-inputs/x10v0wcvs81gxmhcl9b2lmdqc2flql8r-source @@ -0,0 +1 @@ +/nix/store/x10v0wcvs81gxmhcl9b2lmdqc2flql8r-source \ No newline at end of file diff --git a/.direnv/flake-inputs/x72z1mg22ai3n1728s1gyqmzvh57jd5i-source b/.direnv/flake-inputs/x72z1mg22ai3n1728s1gyqmzvh57jd5i-source new file mode 120000 index 00000000..30ddb485 --- /dev/null +++ b/.direnv/flake-inputs/x72z1mg22ai3n1728s1gyqmzvh57jd5i-source @@ -0,0 +1 @@ +/nix/store/x72z1mg22ai3n1728s1gyqmzvh57jd5i-source \ No newline at end of file diff --git a/.direnv/flake-inputs/xxzrw4n8cj2yyraxqc4mdmfgi603z7d8-source b/.direnv/flake-inputs/xxzrw4n8cj2yyraxqc4mdmfgi603z7d8-source new file mode 120000 index 00000000..3d152790 --- /dev/null +++ b/.direnv/flake-inputs/xxzrw4n8cj2yyraxqc4mdmfgi603z7d8-source @@ -0,0 +1 @@ +/nix/store/xxzrw4n8cj2yyraxqc4mdmfgi603z7d8-source \ No newline at end of file diff --git a/.direnv/flake-inputs/yj1wxm9hh8610iyzqnz75kvs6xl8j3my-source b/.direnv/flake-inputs/yj1wxm9hh8610iyzqnz75kvs6xl8j3my-source new file mode 120000 index 00000000..f17959fc --- /dev/null +++ b/.direnv/flake-inputs/yj1wxm9hh8610iyzqnz75kvs6xl8j3my-source @@ -0,0 +1 @@ +/nix/store/yj1wxm9hh8610iyzqnz75kvs6xl8j3my-source \ No newline at end of file diff --git a/.direnv/flake-inputs/ysj1ghn1jcvim74la17vgsg11hajjx8w-source b/.direnv/flake-inputs/ysj1ghn1jcvim74la17vgsg11hajjx8w-source new file mode 120000 index 00000000..6aee31ab --- /dev/null +++ b/.direnv/flake-inputs/ysj1ghn1jcvim74la17vgsg11hajjx8w-source @@ -0,0 +1 @@ +/nix/store/ysj1ghn1jcvim74la17vgsg11hajjx8w-source \ No newline at end of file diff --git a/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa b/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa new file mode 120000 index 00000000..5bded061 --- /dev/null +++ b/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa @@ -0,0 +1 @@ +/nix/store/596cc3p61n08sj799lvn92ba64lp9zcy-ghc-shell-for-rel8-env \ No newline at end of file diff --git a/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc b/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc new file mode 100644 index 00000000..27e98753 --- /dev/null +++ b/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc @@ -0,0 +1,1932 @@ +unset shellHook +PATH=${PATH:-} +nix_saved_PATH="$PATH" +XDG_DATA_DIRS=${XDG_DATA_DIRS:-} +nix_saved_XDG_DATA_DIRS="$XDG_DATA_DIRS" +AR='ar' +export AR +AS='as' +export AS +BASH='/nix/store/vqvj60h076bhqj6977caz0pfxs6543nb-bash-5.2-p15/bin/bash' +CC='gcc' +export CC +CONFIG_SHELL='/nix/store/vqvj60h076bhqj6977caz0pfxs6543nb-bash-5.2-p15/bin/bash' +export CONFIG_SHELL +CXX='g++' +export CXX +DETERMINISTIC_BUILD='1' +export DETERMINISTIC_BUILD +HOSTTYPE='x86_64' +HOST_PATH='/nix/store/5xshy6grpn2nsnwz7va6mjixiyp8m50g-ncurses-6.4/bin:/nix/store/7x16xnl2cc3mmq4x9dci3gcs06bx1925-ncurses-6.4-dev/bin:/nix/store/v50h09mk3jpqdqcx7bdwg6c6zvjyyx5a-numactl-2.0.16/bin:/nix/store/frsl3935sgp53hdgmmknhbl33d4fb7nn-postgresql-14.9/bin:/nix/store/2505yzhgyckcwhk13hdyg6r3h81qz21k-scriv-1.3.1/bin:/nix/store/lx8vhp4fxclp494svlfis3sb2g8z4l9h-python3-3.10.12/bin:/nix/store/xsj9ifz8apxcgajq7z7mkcrmk5a7jgwd-python3.10-babel-2.12.1/bin:/nix/store/0d9klyxa9nqn2c8v278qqbx055b9i51v-python3.10-charset-normalizer-3.0.1/bin:/nix/store/apn3p2b40xvirn7w740wv2gy330ppib5-coreutils-9.3/bin:/nix/store/xvhh3dzdqfaz78nhya1xildz2r38sy3s-findutils-4.9.0/bin:/nix/store/5ca2vh08sq8m20mv4z3wd1lij6wngym0-diffutils-3.10/bin:/nix/store/7snlgj0l0ys6lbcl5pyy8vwnmk26wh8x-gnused-4.9/bin:/nix/store/4hx292xs95frrd1hqwwfc2fpcz0niwgp-gnugrep-3.11/bin:/nix/store/47pwjwir6m3r0czs8zir5wzfvk7i5z6i-gawk-5.2.2/bin:/nix/store/d960k69nahxms669k9fl5rqhk0fkfzr5-gnutar-1.35/bin:/nix/store/7nfcdvrmdbpms7wcrjjsqwkv07lswhli-gzip-1.13/bin:/nix/store/dwxydys9kcz5l2901asxdvh3qdh981b1-bzip2-1.0.8-bin/bin:/nix/store/s806iqg5vwsnp434i5whcn1rf605y9s6-gnumake-4.4.1/bin:/nix/store/vqvj60h076bhqj6977caz0pfxs6543nb-bash-5.2-p15/bin:/nix/store/63m0np3ypqr741nn1a3xmg39p6f97ix1-patch-2.7.6/bin:/nix/store/b1rpgx8n48m6520gakkf9rsqf7kv7sra-xz-5.4.4-bin/bin:/nix/store/vzjkllqadhpmy9jbzqvq94xipvd5xk5f-file-5.45/bin' +export HOST_PATH +IFS=' +' +IN_NIX_SHELL='impure' +export IN_NIX_SHELL +LD='ld' +export LD +LINENO='76' +MACHTYPE='x86_64-pc-linux-gnu' +NIX_BINTOOLS='/nix/store/5rykrx2q8y58zkkpd5968iaprb33xa9l-binutils-wrapper-2.40' +export NIX_BINTOOLS +NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu='1' +export NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu +NIX_BUILD_CORES='12' +export NIX_BUILD_CORES +NIX_CC='/nix/store/75slks1wr3b3sxr5advswjzg9lvbv9jc-gcc-wrapper-12.3.0' +export NIX_CC +NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu='1' +export NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu +NIX_CFLAGS_COMPILE=' -frandom-seed=596cc3p61n -isystem /nix/store/lx8vhp4fxclp494svlfis3sb2g8z4l9h-python3-3.10.12/include -isystem /nix/store/7x16xnl2cc3mmq4x9dci3gcs06bx1925-ncurses-6.4-dev/include -isystem /nix/store/frsl3935sgp53hdgmmknhbl33d4fb7nn-postgresql-14.9/include -isystem /nix/store/lx8vhp4fxclp494svlfis3sb2g8z4l9h-python3-3.10.12/include -isystem /nix/store/7x16xnl2cc3mmq4x9dci3gcs06bx1925-ncurses-6.4-dev/include -isystem /nix/store/frsl3935sgp53hdgmmknhbl33d4fb7nn-postgresql-14.9/include' +export NIX_CFLAGS_COMPILE +NIX_ENFORCE_NO_NATIVE='1' +export NIX_ENFORCE_NO_NATIVE +NIX_GHC_LIBDIR='/nix/store/h18f3dglwshps7qixamcpg0gxs28j35j-ghc-shell-for-rel8-ghc-9.6.2-env/lib/ghc-9.6.2/lib' +export NIX_GHC_LIBDIR +NIX_HARDENING_ENABLE='fortify fortify3 stackprotector pic strictoverflow format relro bindnow' +export NIX_HARDENING_ENABLE +NIX_LDFLAGS='-rpath /home/ollie/work/rel8/outputs/out/lib -L/nix/store/lx8vhp4fxclp494svlfis3sb2g8z4l9h-python3-3.10.12/lib -L/nix/store/5xshy6grpn2nsnwz7va6mjixiyp8m50g-ncurses-6.4/lib -L/nix/store/xaz82jmpn8xj9y0v5jxxlrqrwpll832p-libffi-3.4.4/lib -L/nix/store/8zkv8ylir9ydi2y45j21s7nq1gmxvdd5-gmp-with-cxx-6.3.0/lib -L/nix/store/v50h09mk3jpqdqcx7bdwg6c6zvjyyx5a-numactl-2.0.16/lib -L/nix/store/frsl3935sgp53hdgmmknhbl33d4fb7nn-postgresql-14.9/lib -L/nix/store/4pz2ginczgn49m2dp6v71w9m9p1mq717-postgresql-14.9-lib/lib -L/nix/store/lx8vhp4fxclp494svlfis3sb2g8z4l9h-python3-3.10.12/lib -L/nix/store/5xshy6grpn2nsnwz7va6mjixiyp8m50g-ncurses-6.4/lib -L/nix/store/xaz82jmpn8xj9y0v5jxxlrqrwpll832p-libffi-3.4.4/lib -L/nix/store/8zkv8ylir9ydi2y45j21s7nq1gmxvdd5-gmp-with-cxx-6.3.0/lib -L/nix/store/v50h09mk3jpqdqcx7bdwg6c6zvjyyx5a-numactl-2.0.16/lib -L/nix/store/frsl3935sgp53hdgmmknhbl33d4fb7nn-postgresql-14.9/lib -L/nix/store/4pz2ginczgn49m2dp6v71w9m9p1mq717-postgresql-14.9-lib/lib' +export NIX_LDFLAGS +NIX_NO_SELF_RPATH='1' +NIX_SSL_CERT_FILE='/nix/store/nnxyd3g8yxa2jcd5gy84crgcqav8pcya-nss-cacert-3.92/etc/ssl/certs/ca-bundle.crt' +export NIX_SSL_CERT_FILE +NIX_STORE='/nix/store' +export NIX_STORE +NM='nm' +export NM +OBJCOPY='objcopy' +export OBJCOPY +OBJDUMP='objdump' +export OBJDUMP +OLDPWD='' +export OLDPWD +OPTERR='1' +OSTYPE='linux-gnu' +PATH='/nix/store/h18f3dglwshps7qixamcpg0gxs28j35j-ghc-shell-for-rel8-ghc-9.6.2-env/bin:/nix/store/in6rqdh6jm6f5agb9v7qqm9wg6d5ing2-happy-exe-happy-1.20.1.1/bin:/nix/store/z3jl58cyya95m32p6c064y7ik14p8384-cabal-install-exe-cabal-3.10.1.0/bin:/nix/store/lx8vhp4fxclp494svlfis3sb2g8z4l9h-python3-3.10.12/bin:/nix/store/v553h3r3f0xqxpvb9pgzx006qrmmv12m-patchelf-0.15.0/bin:/nix/store/75slks1wr3b3sxr5advswjzg9lvbv9jc-gcc-wrapper-12.3.0/bin:/nix/store/n8dryz4xf7ln028j37zapgzg4j47p743-gcc-12.3.0/bin:/nix/store/3xdipdscl5v1ghhkwmc7d9ag4qigmvyc-glibc-2.37-8-bin/bin:/nix/store/apn3p2b40xvirn7w740wv2gy330ppib5-coreutils-9.3/bin:/nix/store/5rykrx2q8y58zkkpd5968iaprb33xa9l-binutils-wrapper-2.40/bin:/nix/store/rhhll3vwpj38ri72ahrrrvcbkhz4fhh6-binutils-2.40/bin:/nix/store/5xshy6grpn2nsnwz7va6mjixiyp8m50g-ncurses-6.4/bin:/nix/store/7x16xnl2cc3mmq4x9dci3gcs06bx1925-ncurses-6.4-dev/bin:/nix/store/v50h09mk3jpqdqcx7bdwg6c6zvjyyx5a-numactl-2.0.16/bin:/nix/store/frsl3935sgp53hdgmmknhbl33d4fb7nn-postgresql-14.9/bin:/nix/store/2505yzhgyckcwhk13hdyg6r3h81qz21k-scriv-1.3.1/bin:/nix/store/xsj9ifz8apxcgajq7z7mkcrmk5a7jgwd-python3.10-babel-2.12.1/bin:/nix/store/0d9klyxa9nqn2c8v278qqbx055b9i51v-python3.10-charset-normalizer-3.0.1/bin:/nix/store/apn3p2b40xvirn7w740wv2gy330ppib5-coreutils-9.3/bin:/nix/store/xvhh3dzdqfaz78nhya1xildz2r38sy3s-findutils-4.9.0/bin:/nix/store/5ca2vh08sq8m20mv4z3wd1lij6wngym0-diffutils-3.10/bin:/nix/store/7snlgj0l0ys6lbcl5pyy8vwnmk26wh8x-gnused-4.9/bin:/nix/store/4hx292xs95frrd1hqwwfc2fpcz0niwgp-gnugrep-3.11/bin:/nix/store/47pwjwir6m3r0czs8zir5wzfvk7i5z6i-gawk-5.2.2/bin:/nix/store/d960k69nahxms669k9fl5rqhk0fkfzr5-gnutar-1.35/bin:/nix/store/7nfcdvrmdbpms7wcrjjsqwkv07lswhli-gzip-1.13/bin:/nix/store/dwxydys9kcz5l2901asxdvh3qdh981b1-bzip2-1.0.8-bin/bin:/nix/store/s806iqg5vwsnp434i5whcn1rf605y9s6-gnumake-4.4.1/bin:/nix/store/vqvj60h076bhqj6977caz0pfxs6543nb-bash-5.2-p15/bin:/nix/store/63m0np3ypqr741nn1a3xmg39p6f97ix1-patch-2.7.6/bin:/nix/store/b1rpgx8n48m6520gakkf9rsqf7kv7sra-xz-5.4.4-bin/bin:/nix/store/vzjkllqadhpmy9jbzqvq94xipvd5xk5f-file-5.45/bin' +export PATH +PS4='+ ' +PYTHONHASHSEED='0' +export PYTHONHASHSEED +PYTHONNOUSERSITE='1' +export PYTHONNOUSERSITE +PYTHONPATH='/nix/store/8709pjq26fcdg52lcdb7cp6wl9j9kr4m-python3.10-cffi-1.15.1/lib/python3.10/site-packages:/nix/store/4qkl4cdw38jmpj6b2ck1c4qjkq7zk5sm-python3.10-pycparser-2.21/lib/python3.10/site-packages:/nix/store/lx8vhp4fxclp494svlfis3sb2g8z4l9h-python3-3.10.12/lib/python3.10/site-packages:/nix/store/2505yzhgyckcwhk13hdyg6r3h81qz21k-scriv-1.3.1/lib/python3.10/site-packages:/nix/store/dws72zgjdappw4qkczps7y99wrwqvkmv-python3.10-attrs-23.1.0/lib/python3.10/site-packages:/nix/store/6di1gnrlnl2v26pxg6xh1k70hrm7m76p-python3.10-click-8.1.6/lib/python3.10/site-packages:/nix/store/6329xql0py63bzixgyhr33769mj5lhfi-python3.10-click-log-0.4.0/lib/python3.10/site-packages:/nix/store/p9jlfaas21vpim3j5212jgajvj9zmx0h-python3.10-Jinja2-3.1.2/lib/python3.10/site-packages:/nix/store/xsj9ifz8apxcgajq7z7mkcrmk5a7jgwd-python3.10-babel-2.12.1/lib/python3.10/site-packages:/nix/store/s7m7jz8x0hsmzxnram8cxpag711lm8wm-python3.10-markupsafe-2.1.3/lib/python3.10/site-packages:/nix/store/czw6fnldmg306qy9frw2syfgyd447dba-python3.10-requests-2.31.0/lib/python3.10/site-packages:/nix/store/5rr06sgq2xrrdiysskqy1mhhn1gm1gzk-python3.10-brotlicffi-1.0.9.2/lib/python3.10/site-packages:/nix/store/gibm99hrpqyqdbkdqkysbhxpka5wilfs-python3.10-certifi-2023.05.07/lib/python3.10/site-packages:/nix/store/0d9klyxa9nqn2c8v278qqbx055b9i51v-python3.10-charset-normalizer-3.0.1/lib/python3.10/site-packages:/nix/store/3zsl7nhp2bm786s05w6wcq7an5fndhkx-python3.10-idna-3.4/lib/python3.10/site-packages:/nix/store/5h1rs1hfixf9gjlpy8qf0k95xx1c77a5-python3.10-urllib3-1.26.16/lib/python3.10/site-packages:/nix/store/wq18qf2iyrbhkj3jf2lxsig2mkw35g7i-python3.10-brotli-1.0.9/lib/python3.10/site-packages:/nix/store/8j03b7y085660742an8524r9sc3inbbl-python3.10-pysocks-1.7.1/lib/python3.10/site-packages:/nix/store/9kqzmsyjdh3kkv42ykhpmr0g2vqzvrmz-python3.10-tomli-2.0.1/lib/python3.10/site-packages' +export PYTHONPATH +RANLIB='ranlib' +export RANLIB +READELF='readelf' +export READELF +SIZE='size' +export SIZE +SOURCE_DATE_EPOCH='315532800' +export SOURCE_DATE_EPOCH +STRINGS='strings' +export STRINGS +STRIP='strip' +export STRIP +SYSTEM_CERTIFICATE_PATH='/nix/store/nnxyd3g8yxa2jcd5gy84crgcqav8pcya-nss-cacert-3.92/etc/ssl/certs/ca-bundle.crt' +export SYSTEM_CERTIFICATE_PATH +XDG_DATA_DIRS='/nix/store/h18f3dglwshps7qixamcpg0gxs28j35j-ghc-shell-for-rel8-ghc-9.6.2-env/share:/nix/store/lx8vhp4fxclp494svlfis3sb2g8z4l9h-python3-3.10.12/share:/nix/store/v553h3r3f0xqxpvb9pgzx006qrmmv12m-patchelf-0.15.0/share' +export XDG_DATA_DIRS +_PYTHON_HOST_PLATFORM='linux-x86_64' +export _PYTHON_HOST_PLATFORM +_PYTHON_SYSCONFIGDATA_NAME='_sysconfigdata__linux_x86_64-linux-gnu' +export _PYTHON_SYSCONFIGDATA_NAME +__structuredAttrs='' +export __structuredAttrs +buildInputs='/nix/store/ivn36792srzy7mlm57xi03gh7v4cxbay-aeson-lib-aeson-2.2.0.0 /nix/store/m5n38hqmihx6aklh1jxpd01py4nw2z6v-attoparsec-aeson-lib-attoparsec-aeson-2.2.0.0 /nix/store/a62hdac03hkzcyw7ic5ljzcxppf1cz2g-attoparsec-lib-attoparsec-0.14.4 /nix/store/c1g9axsyci0n0fyziyh1v0bjdjcwqkjs-base-compat-lib-base-compat-0.13.0 /nix/store/pwfqxk6whaa1xnvxx34qvib4ihcsj5b1-base16-lib-base16-1.0 /nix/store/dm8jvnpzw3k19kxcg18ad84cyp2j9rxc-bifunctors-lib-bifunctors-5.6.1 /nix/store/7g2kcsswxs5q5g374iy8327y41j3inml-bytestring-lib-bytestring-0.11.4.0 /nix/store/43ss69vvbsfdgwq5j6pk1a8dx3xkqig4-case-insensitive-lib-case-insensitive-1.2.1.0 /nix/store/jxkb8jnbqvg81s4b67kqzzf6riyzmjsa-comonad-lib-comonad-5.0.8 /nix/store/x6l1nl30pr3lmbnfv0lnz1szyn2awvhn-containers-lib-containers-0.6.7 /nix/store/21lvv4x9mb6wq547zkhsq3ay61pzh4fh-contravariant-lib-contravariant-1.5.5 /nix/store/qa9m9k896747c0dlh48b1j09n9as8cfb-data-dword-lib-data-dword-0.3.2.1 /nix/store/n20flbiy26rq4nwbamphnim89rz59ikq-data-textual-lib-data-textual-0.3.0.3 /nix/store/s5kcnq62dgy9fkp486cb59lr6xk9lmps-hasql-lib-hasql-1.6.3.2 /nix/store/xixfhgck8j1br3i7myl2qrxl4zlzrygf-hasql-transaction-lib-hasql-transaction-1.0.1.2 /nix/store/srxyh4x9d8vkq6dk0i30wm6g4c0nqd7f-hedgehog-lib-hedgehog-1.4 /nix/store/bfbs0rdcbww8frr03djliwhnqlg6g8zc-mmorph-lib-mmorph-1.2.0 /nix/store/ldpv3dvbdccybvd3zqn09z5i2nxl3mwl-network-ip-lib-network-ip-0.3.0.3 /nix/store/yyc0vg8d38sck1px5g5vkwdabh0nr0m9-opaleye-lib-opaleye-0.10.1.0 /nix/store/w42kswqa2jvs09w2qnzyy1lljzmfkhca-product-profunctors-lib-product-profunctors-0.11.1.1 /nix/store/x1729hgqyvy14ksh7h4h665bvny4jx2q-profunctors-lib-profunctors-5.6.2 /nix/store/lbhnpnw8k4i5ki2845ppdl7ij9b6dykk-scientific-lib-scientific-0.3.7.0 /nix/store/n1dn5hxv7wm7y4h1mn2in0fhfakjnfyx-semialign-lib-semialign-1.3 /nix/store/085dsalv08bxqmxpax7l634naw0qi30x-semigroupoids-lib-semigroupoids-6.0.0.1 /nix/store/dd4xq2j868h98aqfw3qnm5wn9hkgnkzl-tasty-hedgehog-lib-tasty-hedgehog-1.4.0.2 /nix/store/z3bb418lgk6wm3ynpg9ig079690lid08-tasty-lib-tasty-1.5 /nix/store/sgb26l5aha724allxknsx3wiggrl7c42-text-lib-text-2.0.2 /nix/store/imahd846bkpmcfl2bfk9h8qd8q2g25lh-these-lib-these-1.2 /nix/store/z1pfrxhixf5lyyp5yh3yfrd2377qk3pq-time-lib-time-1.12.2 /nix/store/m9frrldl4lklkblcaixk434sqg0ipsvi-tmp-postgres-lib-tmp-postgres-1.34.1.0 /nix/store/4pg88iri0fi5zxw8jyvqhrwq012ai0jv-transformers-lib-transformers-0.6.1.0 /nix/store/b03zizx6liylh6b485rvyvhrb3zfm5m7-utf8-string-lib-utf8-string-1.0.2 /nix/store/k1v0mzc3qvfx041khxfcd1f9f8sq5d6d-uuid-lib-uuid-1.3.15 /nix/store/phg30aivzvbjnlgirbx9rhxgr8v92ilg-vector-lib-vector-0.13.0.0 /nix/store/frsl3935sgp53hdgmmknhbl33d4fb7nn-postgresql-14.9 /nix/store/2505yzhgyckcwhk13hdyg6r3h81qz21k-scriv-1.3.1' +export buildInputs +buildPhase='{ echo "------------------------------------------------------------"; + echo " WARNING: the existence of this path is not guaranteed."; + echo " It is an internal implementation detail for pkgs.mkShell."; + echo "------------------------------------------------------------"; + echo; + # Record all build inputs as runtime dependencies + export; +} >> "$out" +' +export buildPhase +builder='/nix/store/vqvj60h076bhqj6977caz0pfxs6543nb-bash-5.2-p15/bin/bash' +export builder +cmakeFlags='' +export cmakeFlags +configureFlags='' +export configureFlags +defaultBuildInputs='' +defaultNativeBuildInputs='/nix/store/v553h3r3f0xqxpvb9pgzx006qrmmv12m-patchelf-0.15.0 /nix/store/fdgkgam7dgivvg4dzc12k3mlyx6sxrq5-update-autotools-gnu-config-scripts-hook /nix/store/h9lc1dpi14z7is86ffhl3ld569138595-audit-tmpdir.sh /nix/store/m54bmrhj6fqz8nds5zcj97w9s9bckc9v-compress-man-pages.sh /nix/store/wgrbkkaldkrlrni33ccvm3b6vbxzb656-make-symlinks-relative.sh /nix/store/5yzw0vhkyszf2d179m0qfkgxmp5wjjx4-move-docs.sh /nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh /nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh /nix/store/pag6l61paj1dc9sv15l7bm5c17xn5kyk-move-systemd-user-units.sh /nix/store/jivxp510zxakaaic7qkrb7v1dd2rdbw9-multiple-outputs.sh /nix/store/wzdsbnv2ba3nj91aql8jjdddfmkkdh7h-patch-shebangs.sh /nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh /nix/store/xyff06pkhki3qy1ls77w10s0v79c9il0-reproducible-builds.sh /nix/store/ngg1cv31c8c7bcm2n8ww4g06nq7s4zhm-set-source-date-epoch-to-latest.sh /nix/store/wmknncrif06fqxa16hpdldhixk95nds0-strip.sh /nix/store/75slks1wr3b3sxr5advswjzg9lvbv9jc-gcc-wrapper-12.3.0' +depsBuildBuild='' +export depsBuildBuild +depsBuildBuildPropagated='' +export depsBuildBuildPropagated +depsBuildTarget='' +export depsBuildTarget +depsBuildTargetPropagated='' +export depsBuildTargetPropagated +depsHostHost='' +export depsHostHost +depsHostHostPropagated='' +export depsHostHostPropagated +depsTargetTarget='' +export depsTargetTarget +depsTargetTargetPropagated='' +export depsTargetTargetPropagated +doCheck='' +export doCheck +doInstallCheck='' +export doInstallCheck +dontAddDisableDepTrack='1' +export dontAddDisableDepTrack +declare -a envBuildBuildHooks=('addPythonPath' 'sysconfigdataHook' 'addPythonPath' 'sysconfigdataHook' ) +declare -a envBuildHostHooks=('addPythonPath' 'sysconfigdataHook' 'addPythonPath' 'sysconfigdataHook' ) +declare -a envBuildTargetHooks=('addPythonPath' 'sysconfigdataHook' 'addPythonPath' 'sysconfigdataHook' ) +declare -a envHostHostHooks=('ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' 'addPythonPath' 'sysconfigdataHook' ) +declare -a envHostTargetHooks=('ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' 'addPythonPath' 'sysconfigdataHook' ) +declare -a envTargetTargetHooks=() +exactDeps='' +export exactDeps +declare -a fixupOutputHooks=('if [ -z "${dontPatchELF-}" ]; then patchELF "$prefix"; fi' 'if [[ -z "${noAuditTmpdir-}" && -e "$prefix" ]]; then auditTmpdir "$prefix"; fi' 'if [ -z "${dontGzipMan-}" ]; then compressManPages "$prefix"; fi' '_moveLib64' '_moveSbin' '_moveSystemdUserUnits' 'patchShebangsAuto' '_pruneLibtoolFiles' '_doStrip' ) +guess='12' +initialPath='/nix/store/apn3p2b40xvirn7w740wv2gy330ppib5-coreutils-9.3 /nix/store/xvhh3dzdqfaz78nhya1xildz2r38sy3s-findutils-4.9.0 /nix/store/5ca2vh08sq8m20mv4z3wd1lij6wngym0-diffutils-3.10 /nix/store/7snlgj0l0ys6lbcl5pyy8vwnmk26wh8x-gnused-4.9 /nix/store/4hx292xs95frrd1hqwwfc2fpcz0niwgp-gnugrep-3.11 /nix/store/47pwjwir6m3r0czs8zir5wzfvk7i5z6i-gawk-5.2.2 /nix/store/d960k69nahxms669k9fl5rqhk0fkfzr5-gnutar-1.35 /nix/store/7nfcdvrmdbpms7wcrjjsqwkv07lswhli-gzip-1.13 /nix/store/dwxydys9kcz5l2901asxdvh3qdh981b1-bzip2-1.0.8-bin /nix/store/s806iqg5vwsnp434i5whcn1rf605y9s6-gnumake-4.4.1 /nix/store/vqvj60h076bhqj6977caz0pfxs6543nb-bash-5.2-p15 /nix/store/63m0np3ypqr741nn1a3xmg39p6f97ix1-patch-2.7.6 /nix/store/b1rpgx8n48m6520gakkf9rsqf7kv7sra-xz-5.4.4-bin /nix/store/vzjkllqadhpmy9jbzqvq94xipvd5xk5f-file-5.45' +installPhase='echo "Shell for rel8" +echo $nativeBuildInputs $buildInputs > $out +' +export installPhase +mesonFlags='' +export mesonFlags +name='ghc-shell-for-rel8-env' +export name +nativeBuildInputs='/nix/store/h18f3dglwshps7qixamcpg0gxs28j35j-ghc-shell-for-rel8-ghc-9.6.2-env /nix/store/in6rqdh6jm6f5agb9v7qqm9wg6d5ing2-happy-exe-happy-1.20.1.1 /nix/store/z3jl58cyya95m32p6c064y7ik14p8384-cabal-install-exe-cabal-3.10.1.0' +export nativeBuildInputs +out='/home/ollie/work/rel8/outputs/out' +export out +outputBin='out' +outputDev='out' +outputDevdoc='REMOVE' +outputDevman='out' +outputDoc='out' +outputInclude='out' +outputInfo='out' +outputLib='out' +outputMan='out' +outputs='out' +export outputs +patches='' +export patches +phases='installPhase' +export phases +pkg='/nix/store/75slks1wr3b3sxr5advswjzg9lvbv9jc-gcc-wrapper-12.3.0' +declare -a pkgsBuildBuild=() +declare -a pkgsBuildHost=('/nix/store/h18f3dglwshps7qixamcpg0gxs28j35j-ghc-shell-for-rel8-ghc-9.6.2-env' '/nix/store/in6rqdh6jm6f5agb9v7qqm9wg6d5ing2-happy-exe-happy-1.20.1.1' '/nix/store/z3jl58cyya95m32p6c064y7ik14p8384-cabal-install-exe-cabal-3.10.1.0' '/nix/store/8709pjq26fcdg52lcdb7cp6wl9j9kr4m-python3.10-cffi-1.15.1' '/nix/store/4qkl4cdw38jmpj6b2ck1c4qjkq7zk5sm-python3.10-pycparser-2.21' '/nix/store/lx8vhp4fxclp494svlfis3sb2g8z4l9h-python3-3.10.12' '/nix/store/lx8vhp4fxclp494svlfis3sb2g8z4l9h-python3-3.10.12' '/nix/store/nnxyd3g8yxa2jcd5gy84crgcqav8pcya-nss-cacert-3.92' '/nix/store/v553h3r3f0xqxpvb9pgzx006qrmmv12m-patchelf-0.15.0' '/nix/store/fdgkgam7dgivvg4dzc12k3mlyx6sxrq5-update-autotools-gnu-config-scripts-hook' '/nix/store/h9lc1dpi14z7is86ffhl3ld569138595-audit-tmpdir.sh' '/nix/store/m54bmrhj6fqz8nds5zcj97w9s9bckc9v-compress-man-pages.sh' '/nix/store/wgrbkkaldkrlrni33ccvm3b6vbxzb656-make-symlinks-relative.sh' '/nix/store/5yzw0vhkyszf2d179m0qfkgxmp5wjjx4-move-docs.sh' '/nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh' '/nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh' '/nix/store/pag6l61paj1dc9sv15l7bm5c17xn5kyk-move-systemd-user-units.sh' '/nix/store/jivxp510zxakaaic7qkrb7v1dd2rdbw9-multiple-outputs.sh' '/nix/store/wzdsbnv2ba3nj91aql8jjdddfmkkdh7h-patch-shebangs.sh' '/nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh' '/nix/store/xyff06pkhki3qy1ls77w10s0v79c9il0-reproducible-builds.sh' '/nix/store/ngg1cv31c8c7bcm2n8ww4g06nq7s4zhm-set-source-date-epoch-to-latest.sh' '/nix/store/wmknncrif06fqxa16hpdldhixk95nds0-strip.sh' '/nix/store/75slks1wr3b3sxr5advswjzg9lvbv9jc-gcc-wrapper-12.3.0' '/nix/store/5rykrx2q8y58zkkpd5968iaprb33xa9l-binutils-wrapper-2.40' ) +declare -a pkgsBuildTarget=() +declare -a pkgsHostHost=('/nix/store/5xshy6grpn2nsnwz7va6mjixiyp8m50g-ncurses-6.4' '/nix/store/7x16xnl2cc3mmq4x9dci3gcs06bx1925-ncurses-6.4-dev' '/nix/store/5xshy6grpn2nsnwz7va6mjixiyp8m50g-ncurses-6.4' '/nix/store/xaz82jmpn8xj9y0v5jxxlrqrwpll832p-libffi-3.4.4' '/nix/store/8zkv8ylir9ydi2y45j21s7nq1gmxvdd5-gmp-with-cxx-6.3.0' '/nix/store/v50h09mk3jpqdqcx7bdwg6c6zvjyyx5a-numactl-2.0.16' ) +declare -a pkgsHostTarget=('/nix/store/ivn36792srzy7mlm57xi03gh7v4cxbay-aeson-lib-aeson-2.2.0.0' '/nix/store/jc5m6dj4ma1lgl1s0l846vk7zl1y66xg-OneTuple-lib-OneTuple-0.4.1.1' '/nix/store/hpj9mykh0wqgcdcyq2ql6w2bxni2lbhf-QuickCheck-lib-QuickCheck-2.14.3' '/nix/store/x6l1nl30pr3lmbnfv0lnz1szyn2awvhn-containers-lib-containers-0.6.7' '/nix/store/zgs2d0k4brdc08sxivqh04lp8r7k4179-random-lib-random-1.2.1.1' '/nix/store/7g2kcsswxs5q5g374iy8327y41j3inml-bytestring-lib-bytestring-0.11.4.0' '/nix/store/3afza5cgk4gli03vzmjkglvydg447ckn-mtl-lib-mtl-2.3.1' '/nix/store/4pg88iri0fi5zxw8jyvqhrwq012ai0jv-transformers-lib-transformers-0.6.1.0' '/nix/store/6p55czzpncqmhj0bscwzmni33jd30805-splitmix-lib-splitmix-0.1.0.4' '/nix/store/6p55czzpncqmhj0bscwzmni33jd30805-splitmix-lib-splitmix-0.1.0.4' '/nix/store/ndjry1nigdva39x5yx9n1n2ka9wrc4ai-data-fix-lib-data-fix-0.3.2' '/nix/store/9kbyag5scs7zwxl190jrjpgypmazrz23-hashable-lib-hashable-1.4.3.0' '/nix/store/54pfkfjnzax6dfw8yk6snmakvy8z4ayi-filepath-lib-filepath-1.4.100.1' '/nix/store/xfh06cs3hdmm7zm7g888y75w5bd1r09c-exceptions-lib-exceptions-0.10.7' '/nix/store/vxsy7ds780ayydgn0vx8lq9aaxz36wv6-stm-lib-stm-2.5.1.0' '/nix/store/sgb26l5aha724allxknsx3wiggrl7c42-text-lib-text-2.0.2' '/nix/store/g9fk0iq1fv6c8vkk0sarg557y1gchl2d-binary-lib-binary-0.8.9.1' '/nix/store/amd1qr2jvi3cx4qmavd63bq522cbrw5j-dlist-lib-dlist-1.0' '/nix/store/bxngl2vqp9qjhp4q006jbj3bvdwr7r3l-generically-lib-generically-0.1.1' '/nix/store/ajvgpqm6igp9kwilbx99avs7135gnk50-indexed-traversable-lib-indexed-traversable-0.1.2.1' '/nix/store/savhxwkcqrqzb077kfdci320pr3aj51b-integer-conversion-lib-integer-conversion-0.1' '/nix/store/bdfsbi9sx2vqx0rivcrh73lq5jfaiyr0-primitive-lib-primitive-0.8.0.0' '/nix/store/84a9l5vqg1xqnjwh3lqssgviffc7dlgy-network-uri-lib-network-uri-2.6.4.2' '/nix/store/nplxjh659dgiz8sgpjasjif08b685d7k-parsec-lib-parsec-3.1.16.1' '/nix/store/6c0bcpddwniicfxydngjhwh37nngfzx1-th-compat-lib-th-compat-0.1.4' '/nix/store/lbhnpnw8k4i5ki2845ppdl7ij9b6dykk-scientific-lib-scientific-0.3.7.0' '/nix/store/brq9yz993mldza9d8cna2k7gcmgqr0n2-integer-logarithms-lib-integer-logarithms-1.0.3.1' '/nix/store/n1dn5hxv7wm7y4h1mn2in0fhfakjnfyx-semialign-lib-semialign-1.3' '/nix/store/kms34lgvvx149qfm7r3sd4y20kdzxjgk-indexed-traversable-instances-lib-indexed-traversable-instances-0.1.1.2' '/nix/store/1kqjqghd980g5f5k9h9xzmiild29dkfr-tagged-lib-tagged-0.8.8' '/nix/store/wsqkkwflcm1rwwlyrgiw0d8q1vhr3j3z-unordered-containers-lib-unordered-containers-0.2.19.1' '/nix/store/phg30aivzvbjnlgirbx9rhxgr8v92ilg-vector-lib-vector-0.13.0.0' '/nix/store/lhysv61qygqy41nzsngw3pllw6hk0san-vector-stream-lib-vector-stream-0.1.0.0' '/nix/store/085dsalv08bxqmxpax7l634naw0qi30x-semigroupoids-lib-semigroupoids-6.0.0.1' '/nix/store/0qwcapqr52h6y29v9a5g0v3fvrm77ai5-base-orphans-lib-base-orphans-0.9.0' '/nix/store/dm8jvnpzw3k19kxcg18ad84cyp2j9rxc-bifunctors-lib-bifunctors-5.6.1' '/nix/store/zplhizcz2icpybq81d43dhw2nm5kccg5-assoc-lib-assoc-1.1' '/nix/store/jxkb8jnbqvg81s4b67kqzzf6riyzmjsa-comonad-lib-comonad-5.0.8' '/nix/store/4vbi9fg0pmpiyljpxfiqsyji4x9xmjph-distributive-lib-distributive-0.6.2.1' '/nix/store/3maxxna45kck25gpvw6wd3hyl3mwnl75-transformers-compat-lib-transformers-compat-0.7.2' '/nix/store/0x69fpqdc1wz1v3qpmclfnifs1z2x1c1-th-abstraction-lib-th-abstraction-0.5.0.0' '/nix/store/21lvv4x9mb6wq547zkhsq3ay61pzh4fh-contravariant-lib-contravariant-1.5.5' '/nix/store/yxkhr51v8l7cigb333xq924dl91wqpxy-StateVar-lib-StateVar-1.2.2' '/nix/store/imahd846bkpmcfl2bfk9h8qd8q2g25lh-these-lib-these-1.2' '/nix/store/xn92h2538xkp86x23vdhw2h563608j1n-strict-lib-strict-0.5' '/nix/store/vw0jrlqfv71nwyfmz9y13prgahbbxxhc-text-iso8601-lib-text-iso8601-0.1' '/nix/store/xz027p0lva0s5n5alya5fcsz6qlh4b2c-time-compat-lib-time-compat-1.9.6.1' '/nix/store/z1pfrxhixf5lyyp5yh3yfrd2377qk3pq-time-lib-time-1.12.2' '/nix/store/z1pfrxhixf5lyyp5yh3yfrd2377qk3pq-time-lib-time-1.12.2' '/nix/store/nagjgx1pp1sdg72yzdpkm365fkswzm13-text-short-lib-text-short-0.1.5' '/nix/store/ri8s9m02m8vgc24pnqhwsms3mab3388l-uuid-types-lib-uuid-types-1.0.5' '/nix/store/87ikvl5blidfg5zayscvm59j0jp7vly6-witherable-lib-witherable-0.4.2' '/nix/store/m5n38hqmihx6aklh1jxpd01py4nw2z6v-attoparsec-aeson-lib-attoparsec-aeson-2.2.0.0' '/nix/store/ivn36792srzy7mlm57xi03gh7v4cxbay-aeson-lib-aeson-2.2.0.0' '/nix/store/a62hdac03hkzcyw7ic5ljzcxppf1cz2g-attoparsec-lib-attoparsec-0.14.4' '/nix/store/k7i2qv7yx0mplrhcr6a11vs9mcibq1vs-attoparsec-lib-attoparsec-internal-0.14.4' '/nix/store/c1g9axsyci0n0fyziyh1v0bjdjcwqkjs-base-compat-lib-base-compat-0.13.0' '/nix/store/6qjjw9lhcf3w5n3mq43mny9n5kd4681s-unix-lib-unix-2.8.1.0' '/nix/store/pwfqxk6whaa1xnvxx34qvib4ihcsj5b1-base16-lib-base16-1.0' '/nix/store/43ss69vvbsfdgwq5j6pk1a8dx3xkqig4-case-insensitive-lib-case-insensitive-1.2.1.0' '/nix/store/qa9m9k896747c0dlh48b1j09n9as8cfb-data-dword-lib-data-dword-0.3.2.1' '/nix/store/m4fi2b1vi09cay630w2h2iq3hfcd8ap9-data-bword-lib-data-bword-0.1.0.2' '/nix/store/n20flbiy26rq4nwbamphnim89rz59ikq-data-textual-lib-data-textual-0.3.0.3' '/nix/store/b2xzq7sbfs3yp59pc0y3hxj3ba04ggah-parsers-lib-parsers-0.12.11' '/nix/store/537qvp5d9la41kc1mkp386g200bfr5sw-charset-lib-charset-0.3.10' '/nix/store/6pqyhbfy6017nyd1jj7m8x5ydwv66zk9-text-latin1-lib-text-latin1-0.3.1' '/nix/store/h3a7c98sg0k4ch8hp4sb065124mc65xi-data-checked-lib-data-checked-0.3' '/nix/store/c6nbcqlm7m9cfswi70b2383w5fn2bnv3-semigroups-lib-semigroups-0.20' '/nix/store/q3d8vgq1579knqb0rjar7klzknmqslhr-text-printer-lib-text-printer-0.5.0.2' '/nix/store/s5kcnq62dgy9fkp486cb59lr6xk9lmps-hasql-lib-hasql-1.6.3.2' '/nix/store/9qh6xy2ispzz82vav0cnb14c4xzg1b16-bytestring-strict-builder-lib-bytestring-strict-builder-0.4.5.6' '/nix/store/m4shpf930vz5y2swayj945v89ksdlgqs-hashtables-lib-hashtables-1.3.1' '/nix/store/ldpv3dvbdccybvd3zqn09z5i2nxl3mwl-network-ip-lib-network-ip-0.3.0.3' '/nix/store/2vrkr7l3nry68rkn5vca2q3djalwpyrd-data-default-class-lib-data-default-class-0.1.2.0' '/nix/store/2r8vp0ll7pyf8xagq6sda0vbipr7vami-data-endian-lib-data-endian-0.1.1' '/nix/store/fqaibm1xhvdy0fgiifgig7c3zp54h92b-data-serializer-lib-data-serializer-0.3.5' '/nix/store/5ccx81phm2lv8nlb7fpx4wj04pbby1k1-cereal-lib-cereal-0.5.8.3' '/nix/store/yzw141wl4p0mmmjph4wwzwhngjndd5k2-split-lib-split-0.2.3.5' '/nix/store/02q8fgyjqwh22pbv1pyb992k06mxcgqq-type-hint-lib-type-hint-0.1' '/nix/store/q2jxhn36xpc21mq7mp9glh59mbjdainj-postgresql-binary-lib-postgresql-binary-0.13.1' '/nix/store/hwhyppci366q9r74b3pyqsjilyxz9cxx-binary-parser-lib-binary-parser-0.5.7.3' '/nix/store/k1v0mzc3qvfx041khxfcd1f9f8sq5d6d-uuid-lib-uuid-1.3.15' '/nix/store/vj5080mbrzzzl4m29fvnws3mqdv9n3dz-cryptohash-md5-lib-cryptohash-md5-0.11.101.0' '/nix/store/8ky4la1m3f16v4vibcckw3k3f2m6758s-cryptohash-sha1-lib-cryptohash-sha1-0.11.101.0' '/nix/store/nzn87ahs3ki84nqa815rhjg7dh9169kg-entropy-lib-entropy-0.4.1.10' '/nix/store/g78g81q4l99r77c3wbi2l1r0r26a6mss-network-info-lib-network-info-0.2.1' '/nix/store/1yq6pb3wpdxmf5rpid0b5w4vxgcdi9f2-postgresql-libpq-lib-postgresql-libpq-0.10.0.0' '/nix/store/x1729hgqyvy14ksh7h4h665bvny4jx2q-profunctors-lib-profunctors-5.6.2' '/nix/store/04i0saa6mpai351s6a6abqiawl73bgiw-text-builder-lib-text-builder-0.6.7' '/nix/store/r5px8p2w9k9ymi1y15y43jsy57p86apx-text-builder-dev-lib-text-builder-dev-0.3.3.2' '/nix/store/7gh21zjx16k59v399wavq1wfxrc0j4xr-deferred-folds-lib-deferred-folds-0.9.18.3' '/nix/store/ya2br0f4p2p5rh07ac3i84m80gmirs2q-foldl-lib-foldl-1.4.15' '/nix/store/zq6ygzq9z5ixzcyjk9vc6vcav559dr56-isomorphism-class-lib-isomorphism-class-0.1.0.9' '/nix/store/xixfhgck8j1br3i7myl2qrxl4zlzrygf-hasql-transaction-lib-hasql-transaction-1.0.1.2' '/nix/store/c7zga3qd91cjzg73gia7hlfdqlblwkf7-bytestring-tree-builder-lib-bytestring-tree-builder-0.2.7.10' '/nix/store/r0c4jpyhby0bbhp4ij4n81gad8w0ji1y-contravariant-extras-lib-contravariant-extras-0.3.5.3' '/nix/store/w48kp6nbz53g05zq9y36azp7pwx6qf8h-template-haskell-compat-v0208-lib-template-haskell-compat-v0208-0.1.9.2' '/nix/store/srxyh4x9d8vkq6dk0i30wm6g4c0nqd7f-hedgehog-lib-hedgehog-1.4' '/nix/store/ml1lwicd9gm68ly28j3i6dk8vwhwfv0q-ansi-terminal-lib-ansi-terminal-1.0' '/nix/store/jk9wd177jasr6j4snjwzb5wc46pdgqq7-ansi-terminal-types-lib-ansi-terminal-types-0.11.5' '/nix/store/nj4if48ij3ldnsvrzfvnwksmffvwfr82-colour-lib-colour-2.3.6' '/nix/store/nj4if48ij3ldnsvrzfvnwksmffvwfr82-colour-lib-colour-2.3.6' '/nix/store/3h21gailwf1a1lc9psmd4hdyj57zfl3d-async-lib-async-2.2.4' '/nix/store/80cy9py5yxq6mibx0wayx2vp8z45fnhc-barbies-lib-barbies-2.0.4.0' '/nix/store/prlh0nzxqjqzdsdb9bjc4r5pl3p19ga0-concurrent-output-lib-concurrent-output-1.10.19' '/nix/store/r4w3y4vwhj5qxa0392myrrq3555lc2gr-directory-lib-directory-1.3.8.1' '/nix/store/7m9799fkq19dhjk9984v1ij43p8nbjxn-process-lib-process-1.6.17.0' '/nix/store/91w6y429q2dsjqgpw99wl34jvamczs4d-terminal-size-lib-terminal-size-0.3.4' '/nix/store/11kzzx3yv9rcsdq06xps9by05sa1nq8p-erf-lib-erf-2.0.0.0' '/nix/store/nsid2ygzmibl0m5dmk6pbkqs5l9fb0dc-lifted-async-lib-lifted-async-0.10.2.4' '/nix/store/7k77w8r7zw6qqssnjrccyd8a10d3yd7x-constraints-lib-constraints-0.13.4' '/nix/store/kdrzcv7djfvjijkg4my1qaajrf1can4g-type-equality-lib-type-equality-1' '/nix/store/48s4b6c0s6n4vswhpwn32fxn6d2hba1w-lifted-base-lib-lifted-base-0.2.3.12' '/nix/store/i6khb3qcsjd3xsg9vfqrpiix2gbjls75-monad-control-lib-monad-control-1.0.3.1' '/nix/store/30p7f5glnjz3kvijw6gcv73axn1ixzgg-transformers-base-lib-transformers-base-0.4.6' '/nix/store/30p7f5glnjz3kvijw6gcv73axn1ixzgg-transformers-base-lib-transformers-base-0.4.6' '/nix/store/bfbs0rdcbww8frr03djliwhnqlg6g8zc-mmorph-lib-mmorph-1.2.0' '/nix/store/wpdlxsqa0pjnyzcm5r7kxyzfgffxncr7-pretty-show-lib-pretty-show-1.10' '/nix/store/8ghlw0cp8kbygpifwnm5jikigkzknf8r-haskell-lexer-lib-haskell-lexer-1.1.1' '/nix/store/jm56fqzqbkvs1wnj9866q25kqcmd3ra2-resourcet-lib-resourcet-1.3.0' '/nix/store/vb1wz3lslkxnj1abj2fr1kb1vrk9cplp-unliftio-core-lib-unliftio-core-0.2.1.0' '/nix/store/83f79sv4w1hm8lgzzmr89qqda78fc8wh-safe-exceptions-lib-safe-exceptions-0.1.7.4' '/nix/store/vfyfjci0l392waqwhyj3kajjhsywkq5s-wl-pprint-annotated-lib-wl-pprint-annotated-0.1.0.1' '/nix/store/yyc0vg8d38sck1px5g5vkwdabh0nr0m9-opaleye-lib-opaleye-0.10.1.0' '/nix/store/hfr260nfa6bcv2zh9ak0g1nsnql5h8xf-base16-bytestring-lib-base16-bytestring-1.0.2.0' '/nix/store/l5593w9z2wnjy000iixjdag5d9njsqab-postgresql-simple-lib-postgresql-simple-0.7.0.0' '/nix/store/ivcahqs2mni9w876y94w2539vn6k7dmi-Only-lib-Only-0.1' '/nix/store/w42kswqa2jvs09w2qnzyy1lljzmfkhca-product-profunctors-lib-product-profunctors-0.11.1.1' '/nix/store/xgn7f2havph2h346k8v9y3p5cbanx6hg-time-locale-compat-lib-time-locale-compat-0.1.1.5' '/nix/store/a0vdaxqz4771apk1jgw9mxqqcmfx3kjz-void-lib-void-0.7.3' '/nix/store/dd4xq2j868h98aqfw3qnm5wn9hkgnkzl-tasty-hedgehog-lib-tasty-hedgehog-1.4.0.2' '/nix/store/z3bb418lgk6wm3ynpg9ig079690lid08-tasty-lib-tasty-1.5' '/nix/store/11v7l785vhjhss869yzwikn7dq05312j-optparse-applicative-lib-optparse-applicative-0.18.1.0' '/nix/store/gpjvrjc44j13kybr5nw1nlzsl37bi4jk-prettyprinter-ansi-terminal-lib-prettyprinter-ansi-terminal-1.1.3' '/nix/store/cp0xx43sbzrrd633gwb30c0inzg3m9d5-prettyprinter-lib-prettyprinter-1.7.1' '/nix/store/cp0xx43sbzrrd633gwb30c0inzg3m9d5-prettyprinter-lib-prettyprinter-1.7.1' '/nix/store/m9frrldl4lklkblcaixk434sqg0ipsvi-tmp-postgres-lib-tmp-postgres-1.34.1.0' '/nix/store/7sgwapaqli3hlkcx5wf64nxpaip70hli-ansi-wl-pprint-lib-ansi-wl-pprint-0.6.9' '/nix/store/6xiy857mw9b3al4drjsavyzl895clm2d-base64-bytestring-lib-base64-bytestring-1.2.1.0' '/nix/store/gqs5kz07qd2kzlsimplhhxs5jql9s5gr-generic-monoid-lib-generic-monoid-0.1.0.1' '/nix/store/6dhwir0n7qrf4f3z4mbd5s5xfh6b8bil-port-utils-lib-port-utils-0.2.1.0' '/nix/store/xnndil4zzx1cspwrhi1cfhygsl0vxc79-network-lib-network-3.1.4.0' '/nix/store/g30cydypw4628dhbhi852nz6ksgpbpby-postgres-options-lib-postgres-options-0.2.1.0' '/nix/store/cj7bjw9ynj8q4911191wf24d6ds3b0n6-uri-bytestring-lib-uri-bytestring-0.3.3.1' '/nix/store/lwx8vblnpf6wl47ifbgx2qbdhakz3xk2-blaze-builder-lib-blaze-builder-0.4.2.3' '/nix/store/f3yn8ivskl5vy3yxrrxa1l97zjc8w8j0-th-lift-instances-lib-th-lift-instances-0.1.20' '/nix/store/cl7a6gqf02ff5lr23vf0krxaz6xa6m6w-th-lift-lib-th-lift-0.8.4' '/nix/store/qn1v5v952ynj7l5hg5k6s2lc7s96qh1h-temporary-lib-temporary-1.3' '/nix/store/b03zizx6liylh6b485rvyvhrb3zfm5m7-utf8-string-lib-utf8-string-1.0.2' '/nix/store/frsl3935sgp53hdgmmknhbl33d4fb7nn-postgresql-14.9' '/nix/store/4pz2ginczgn49m2dp6v71w9m9p1mq717-postgresql-14.9-lib' '/nix/store/2505yzhgyckcwhk13hdyg6r3h81qz21k-scriv-1.3.1' '/nix/store/dws72zgjdappw4qkczps7y99wrwqvkmv-python3.10-attrs-23.1.0' '/nix/store/lx8vhp4fxclp494svlfis3sb2g8z4l9h-python3-3.10.12' '/nix/store/6di1gnrlnl2v26pxg6xh1k70hrm7m76p-python3.10-click-8.1.6' '/nix/store/6329xql0py63bzixgyhr33769mj5lhfi-python3.10-click-log-0.4.0' '/nix/store/p9jlfaas21vpim3j5212jgajvj9zmx0h-python3.10-Jinja2-3.1.2' '/nix/store/xsj9ifz8apxcgajq7z7mkcrmk5a7jgwd-python3.10-babel-2.12.1' '/nix/store/s7m7jz8x0hsmzxnram8cxpag711lm8wm-python3.10-markupsafe-2.1.3' '/nix/store/czw6fnldmg306qy9frw2syfgyd447dba-python3.10-requests-2.31.0' '/nix/store/5rr06sgq2xrrdiysskqy1mhhn1gm1gzk-python3.10-brotlicffi-1.0.9.2' '/nix/store/8709pjq26fcdg52lcdb7cp6wl9j9kr4m-python3.10-cffi-1.15.1' '/nix/store/4qkl4cdw38jmpj6b2ck1c4qjkq7zk5sm-python3.10-pycparser-2.21' '/nix/store/gibm99hrpqyqdbkdqkysbhxpka5wilfs-python3.10-certifi-2023.05.07' '/nix/store/0d9klyxa9nqn2c8v278qqbx055b9i51v-python3.10-charset-normalizer-3.0.1' '/nix/store/3zsl7nhp2bm786s05w6wcq7an5fndhkx-python3.10-idna-3.4' '/nix/store/5h1rs1hfixf9gjlpy8qf0k95xx1c77a5-python3.10-urllib3-1.26.16' '/nix/store/wq18qf2iyrbhkj3jf2lxsig2mkw35g7i-python3.10-brotli-1.0.9' '/nix/store/8j03b7y085660742an8524r9sc3inbbl-python3.10-pysocks-1.7.1' '/nix/store/9kqzmsyjdh3kkv42ykhpmr0g2vqzvrmz-python3.10-tomli-2.0.1' ) +declare -a pkgsTargetTarget=() +declare -a postFixupHooks=('_makeSymlinksRelativeInAllOutputs' '_multioutPropagateDev' ) +declare -a postUnpackHooks=('_updateSourceDateEpochFromSourceRoot' ) +declare -a preConfigureHooks=('_multioutConfig' ) +preConfigurePhases=' updateAutotoolsGnuConfigScriptsPhase' +declare -a preFixupHooks=('_moveToShare' '_multioutDocs' '_multioutDevs' ) +preferLocalBuild='1' +export preferLocalBuild +prefix='/home/ollie/work/rel8/outputs/out' +declare -a propagatedBuildDepFiles=('propagated-build-build-deps' 'propagated-native-build-inputs' 'propagated-build-target-deps' ) +propagatedBuildInputs='' +export propagatedBuildInputs +declare -a propagatedHostDepFiles=('propagated-host-host-deps' 'propagated-build-inputs' ) +propagatedNativeBuildInputs='' +export propagatedNativeBuildInputs +declare -a propagatedTargetDepFiles=('propagated-target-target-deps' ) +shell='/nix/store/vqvj60h076bhqj6977caz0pfxs6543nb-bash-5.2-p15/bin/bash' +export shell +shellHook='' +export shellHook +stdenv='/nix/store/vr6wwdxkmyy44sg0gwxi10b8fc5zhwz0-stdenv-linux' +export stdenv +strictDeps='' +export strictDeps +system='x86_64-linux' +export system +declare -a unpackCmdHooks=('_defaultUnpack' ) +_accumFlagsArray () +{ + + local name; + if [ -n "$__structuredAttrs" ]; then + for name in "$@"; + do + local -n nameref="$name"; + flagsArray+=(${nameref+"${nameref[@]}"}); + done; + else + for name in "$@"; + do + local -n nameref="$name"; + case "$name" in + *Array) + flagsArray+=(${nameref+"${nameref[@]}"}) + ;; + *) + flagsArray+=(${nameref-}) + ;; + esac; + done; + fi +} +_activatePkgs () +{ + + local hostOffset targetOffset; + local pkg; + for hostOffset in "${allPlatOffsets[@]}"; + do + local pkgsVar="${pkgAccumVarVars[hostOffset + 1]}"; + for targetOffset in "${allPlatOffsets[@]}"; + do + (( hostOffset <= targetOffset )) || continue; + local pkgsRef="${pkgsVar}[$targetOffset - $hostOffset]"; + local pkgsSlice="${!pkgsRef}[@]"; + for pkg in ${!pkgsSlice+"${!pkgsSlice}"}; + do + activatePackage "$pkg" "$hostOffset" "$targetOffset"; + done; + done; + done +} +_addRpathPrefix () +{ + + if [ "${NIX_NO_SELF_RPATH:-0}" != 1 ]; then + export NIX_LDFLAGS="-rpath $1/lib ${NIX_LDFLAGS-}"; + fi +} +_addToEnv () +{ + + local depHostOffset depTargetOffset; + local pkg; + for depHostOffset in "${allPlatOffsets[@]}"; + do + local hookVar="${pkgHookVarVars[depHostOffset + 1]}"; + local pkgsVar="${pkgAccumVarVars[depHostOffset + 1]}"; + for depTargetOffset in "${allPlatOffsets[@]}"; + do + (( depHostOffset <= depTargetOffset )) || continue; + local hookRef="${hookVar}[$depTargetOffset - $depHostOffset]"; + if [[ -z "${strictDeps-}" ]]; then + local visitedPkgs=""; + for pkg in "${pkgsBuildBuild[@]}" "${pkgsBuildHost[@]}" "${pkgsBuildTarget[@]}" "${pkgsHostHost[@]}" "${pkgsHostTarget[@]}" "${pkgsTargetTarget[@]}"; + do + if [[ "$visitedPkgs" = *"$pkg"* ]]; then + continue; + fi; + runHook "${!hookRef}" "$pkg"; + visitedPkgs+=" $pkg"; + done; + else + local pkgsRef="${pkgsVar}[$depTargetOffset - $depHostOffset]"; + local pkgsSlice="${!pkgsRef}[@]"; + for pkg in ${!pkgsSlice+"${!pkgsSlice}"}; + do + runHook "${!hookRef}" "$pkg"; + done; + fi; + done; + done +} +_allFlags () +{ + + export system pname name version; + for varName in $(awk 'BEGIN { for (v in ENVIRON) if (v ~ /^[a-z][a-zA-Z0-9_]*$/) print v }'); + do + if (( "${NIX_DEBUG:-0}" >= 1 )); then + printf "@%s@ -> %q\n" "${varName}" "${!varName}" 1>&2; + fi; + args+=("--subst-var" "$varName"); + done +} +_assignFirst () +{ + + local varName="$1"; + local _var; + local REMOVE=REMOVE; + shift; + for _var in "$@"; + do + if [ -n "${!_var-}" ]; then + eval "${varName}"="${_var}"; + return; + fi; + done; + echo; + echo "error: _assignFirst: could not find a non-empty variable whose name to assign to ${varName}."; + echo " The following variables were all unset or empty:"; + echo " $*"; + if [ -z "${out:-}" ]; then + echo ' If you do not want an "out" output in your derivation, make sure to define'; + echo ' the other specific required outputs. This can be achieved by picking one'; + echo " of the above as an output."; + echo ' You do not have to remove "out" if you want to have a different default'; + echo ' output, because the first output is taken as a default.'; + echo; + fi; + return 1 +} +_callImplicitHook () +{ + + local def="$1"; + local hookName="$2"; + if declare -F "$hookName" > /dev/null; then + "$hookName"; + else + if type -p "$hookName" > /dev/null; then + source "$hookName"; + else + if [ -n "${!hookName:-}" ]; then + eval "${!hookName}"; + else + return "$def"; + fi; + fi; + fi +} +_defaultUnpack () +{ + + local fn="$1"; + local destination; + if [ -d "$fn" ]; then + destination="$(stripHash "$fn")"; + if [ -e "$destination" ]; then + echo "Cannot copy $fn to $destination: destination already exists!"; + echo "Did you specify two \"srcs\" with the same \"name\"?"; + return 1; + fi; + cp -pr --reflink=auto -- "$fn" "$destination"; + else + case "$fn" in + *.tar.xz | *.tar.lzma | *.txz) + xz -d < "$fn" | tar xf - --warning=no-timestamp + ;; + *.tar | *.tar.* | *.tgz | *.tbz2 | *.tbz) + tar xf "$fn" --warning=no-timestamp + ;; + *) + return 1 + ;; + esac; + fi +} +_doStrip () +{ + + local -ra flags=(dontStripHost dontStripTarget); + local -ra debugDirs=(stripDebugList stripDebugListTarget); + local -ra allDirs=(stripAllList stripAllListTarget); + local -ra stripCmds=(STRIP STRIP_FOR_TARGET); + local -ra ranlibCmds=(RANLIB RANLIB_FOR_TARGET); + stripDebugList=${stripDebugList[*]:-lib lib32 lib64 libexec bin sbin}; + stripDebugListTarget=${stripDebugListTarget[*]:-}; + stripAllList=${stripAllList[*]:-}; + stripAllListTarget=${stripAllListTarget[*]:-}; + local i; + for i in ${!stripCmds[@]}; + do + local -n flag="${flags[$i]}"; + local -n debugDirList="${debugDirs[$i]}"; + local -n allDirList="${allDirs[$i]}"; + local -n stripCmd="${stripCmds[$i]}"; + local -n ranlibCmd="${ranlibCmds[$i]}"; + if [[ -n "${dontStrip-}" || -n "${flag-}" ]] || ! type -f "${stripCmd-}" 2> /dev/null 1>&2; then + continue; + fi; + stripDirs "$stripCmd" "$ranlibCmd" "$debugDirList" "${stripDebugFlags[*]:--S -p}"; + stripDirs "$stripCmd" "$ranlibCmd" "$allDirList" "${stripAllFlags[*]:--s -p}"; + done +} +_eval () +{ + + if declare -F "$1" > /dev/null 2>&1; then + "$@"; + else + eval "$1"; + fi +} +_makeSymlinksRelative () +{ + + local symlinkTarget; + if [ "${dontRewriteSymlinks-}" ] || [ ! -e "$prefix" ]; then + return; + fi; + while IFS= read -r -d '' f; do + symlinkTarget=$(readlink "$f"); + if [[ "$symlinkTarget"/ != "$prefix"/* ]]; then + continue; + fi; + if [ ! -e "$symlinkTarget" ]; then + echo "the symlink $f is broken, it points to $symlinkTarget (which is missing)"; + fi; + echo "rewriting symlink $f to be relative to $prefix"; + ln -snrf "$symlinkTarget" "$f"; + done < <(find $prefix -type l -print0) +} +_makeSymlinksRelativeInAllOutputs () +{ + + local output; + for output in $(getAllOutputNames); + do + prefix="${!output}" _makeSymlinksRelative; + done +} +_moveLib64 () +{ + + if [ "${dontMoveLib64-}" = 1 ]; then + return; + fi; + if [ ! -e "$prefix/lib64" -o -L "$prefix/lib64" ]; then + return; + fi; + echo "moving $prefix/lib64/* to $prefix/lib"; + mkdir -p $prefix/lib; + shopt -s dotglob; + for i in $prefix/lib64/*; + do + mv --no-clobber "$i" $prefix/lib; + done; + shopt -u dotglob; + rmdir $prefix/lib64; + ln -s lib $prefix/lib64 +} +_moveSbin () +{ + + if [ "${dontMoveSbin-}" = 1 ]; then + return; + fi; + if [ ! -e "$prefix/sbin" -o -L "$prefix/sbin" ]; then + return; + fi; + echo "moving $prefix/sbin/* to $prefix/bin"; + mkdir -p $prefix/bin; + shopt -s dotglob; + for i in $prefix/sbin/*; + do + mv "$i" $prefix/bin; + done; + shopt -u dotglob; + rmdir $prefix/sbin; + ln -s bin $prefix/sbin +} +_moveSystemdUserUnits () +{ + + if [ "${dontMoveSystemdUserUnits:-0}" = 1 ]; then + return; + fi; + if [ ! -e "${prefix:?}/lib/systemd/user" ]; then + return; + fi; + local source="$prefix/lib/systemd/user"; + local target="$prefix/share/systemd/user"; + echo "moving $source/* to $target"; + mkdir -p "$target"; + ( shopt -s dotglob; + for i in "$source"/*; + do + mv "$i" "$target"; + done ); + rmdir "$source"; + ln -s "$target" "$source" +} +_moveToShare () +{ + + if [ -n "$__structuredAttrs" ]; then + if [ -z "${forceShare-}" ]; then + forceShare=(man doc info); + fi; + else + forceShare=(${forceShare:-man doc info}); + fi; + if [[ -z "$out" ]]; then + return; + fi; + for d in "${forceShare[@]}"; + do + if [ -d "$out/$d" ]; then + if [ -d "$out/share/$d" ]; then + echo "both $d/ and share/$d/ exist!"; + else + echo "moving $out/$d to $out/share/$d"; + mkdir -p $out/share; + mv $out/$d $out/share/; + fi; + fi; + done +} +_multioutConfig () +{ + + if [ "$(getAllOutputNames)" = "out" ] || [ -z "${setOutputFlags-1}" ]; then + return; + fi; + if [ -z "${shareDocName:-}" ]; then + local confScript="${configureScript:-}"; + if [ -z "$confScript" ] && [ -x ./configure ]; then + confScript=./configure; + fi; + if [ -f "$confScript" ]; then + local shareDocName="$(sed -n "s/^PACKAGE_TARNAME='\(.*\)'$/\1/p" < "$confScript")"; + fi; + if [ -z "$shareDocName" ] || echo "$shareDocName" | grep -q '[^a-zA-Z0-9_-]'; then + shareDocName="$(echo "$name" | sed 's/-[^a-zA-Z].*//')"; + fi; + fi; + prependToVar configureFlags --bindir="${!outputBin}"/bin --sbindir="${!outputBin}"/sbin --includedir="${!outputInclude}"/include --oldincludedir="${!outputInclude}"/include --mandir="${!outputMan}"/share/man --infodir="${!outputInfo}"/share/info --docdir="${!outputDoc}"/share/doc/"${shareDocName}" --libdir="${!outputLib}"/lib --libexecdir="${!outputLib}"/libexec --localedir="${!outputLib}"/share/locale; + prependToVar installFlags pkgconfigdir="${!outputDev}"/lib/pkgconfig m4datadir="${!outputDev}"/share/aclocal aclocaldir="${!outputDev}"/share/aclocal +} +_multioutDevs () +{ + + if [ "$(getAllOutputNames)" = "out" ] || [ -z "${moveToDev-1}" ]; then + return; + fi; + moveToOutput include "${!outputInclude}"; + moveToOutput lib/pkgconfig "${!outputDev}"; + moveToOutput share/pkgconfig "${!outputDev}"; + moveToOutput lib/cmake "${!outputDev}"; + moveToOutput share/aclocal "${!outputDev}"; + for f in "${!outputDev}"/{lib,share}/pkgconfig/*.pc; + do + echo "Patching '$f' includedir to output ${!outputInclude}"; + sed -i "/^includedir=/s,=\${prefix},=${!outputInclude}," "$f"; + done +} +_multioutDocs () +{ + + local REMOVE=REMOVE; + moveToOutput share/info "${!outputInfo}"; + moveToOutput share/doc "${!outputDoc}"; + moveToOutput share/gtk-doc "${!outputDevdoc}"; + moveToOutput share/devhelp/books "${!outputDevdoc}"; + moveToOutput share/man "${!outputMan}"; + moveToOutput share/man/man3 "${!outputDevman}" +} +_multioutPropagateDev () +{ + + if [ "$(getAllOutputNames)" = "out" ]; then + return; + fi; + local outputFirst; + for outputFirst in $(getAllOutputNames); + do + break; + done; + local propagaterOutput="$outputDev"; + if [ -z "$propagaterOutput" ]; then + propagaterOutput="$outputFirst"; + fi; + if [ -z "${propagatedBuildOutputs+1}" ]; then + local po_dirty="$outputBin $outputInclude $outputLib"; + set +o pipefail; + propagatedBuildOutputs=`echo "$po_dirty" | tr -s ' ' '\n' | grep -v -F "$propagaterOutput" | sort -u | tr '\n' ' ' `; + set -o pipefail; + fi; + if [ -z "$propagatedBuildOutputs" ]; then + return; + fi; + mkdir -p "${!propagaterOutput}"/nix-support; + for output in $propagatedBuildOutputs; + do + echo -n " ${!output}" >> "${!propagaterOutput}"/nix-support/propagated-build-inputs; + done +} +_overrideFirst () +{ + + if [ -z "${!1-}" ]; then + _assignFirst "$@"; + fi +} +_pruneLibtoolFiles () +{ + + if [ "${dontPruneLibtoolFiles-}" ] || [ ! -e "$prefix" ]; then + return; + fi; + find "$prefix" -type f -name '*.la' -exec grep -q '^# Generated by .*libtool' {} \; -exec grep -q "^old_library=''" {} \; -exec sed -i {} -e "/^dependency_libs='[^']/ c dependency_libs='' #pruned" \; +} +_updateSourceDateEpochFromSourceRoot () +{ + + if [ -n "$sourceRoot" ]; then + updateSourceDateEpoch "$sourceRoot"; + fi +} +activatePackage () +{ + + local pkg="$1"; + local -r hostOffset="$2"; + local -r targetOffset="$3"; + (( hostOffset <= targetOffset )) || exit 1; + if [ -f "$pkg" ]; then + source "$pkg"; + fi; + if [[ -z "${strictDeps-}" || "$hostOffset" -le -1 ]]; then + addToSearchPath _PATH "$pkg/bin"; + fi; + if (( hostOffset <= -1 )); then + addToSearchPath _XDG_DATA_DIRS "$pkg/share"; + fi; + if [[ "$hostOffset" -eq 0 && -d "$pkg/bin" ]]; then + addToSearchPath _HOST_PATH "$pkg/bin"; + fi; + if [[ -f "$pkg/nix-support/setup-hook" ]]; then + source "$pkg/nix-support/setup-hook"; + fi +} +addEnvHooks () +{ + + local depHostOffset="$1"; + shift; + local pkgHookVarsSlice="${pkgHookVarVars[$depHostOffset + 1]}[@]"; + local pkgHookVar; + for pkgHookVar in "${!pkgHookVarsSlice}"; + do + eval "${pkgHookVar}s"'+=("$@")'; + done +} +addPythonPath () +{ + + addToSearchPathWithCustomDelimiter : PYTHONPATH $1/lib/python3.10/site-packages +} +addToSearchPath () +{ + + addToSearchPathWithCustomDelimiter ":" "$@" +} +addToSearchPathWithCustomDelimiter () +{ + + local delimiter="$1"; + local varName="$2"; + local dir="$3"; + if [[ -d "$dir" && "${!varName:+${delimiter}${!varName}${delimiter}}" != *"${delimiter}${dir}${delimiter}"* ]]; then + export "${varName}=${!varName:+${!varName}${delimiter}}${dir}"; + fi +} +appendToVar () +{ + + local -n nameref="$1"; + local useArray type; + if [ -n "$__structuredAttrs" ]; then + useArray=true; + else + useArray=false; + fi; + if declare -p "$1" 2> /dev/null | grep -q '^'; then + type="$(declare -p "$1")"; + if [[ "$type" =~ "declare -A" ]]; then + echo "appendToVar(): ERROR: trying to use appendToVar on an associative array, use variable+=([\"X\"]=\"Y\") instead." 1>&2; + return 1; + else + if [[ "$type" =~ "declare -a" ]]; then + useArray=true; + else + useArray=false; + fi; + fi; + fi; + shift; + if $useArray; then + nameref=(${nameref+"${nameref[@]}"} "$@"); + else + nameref="${nameref-} $*"; + fi +} +auditTmpdir () +{ + + local dir="$1"; + [ -e "$dir" ] || return 0; + echo "checking for references to $TMPDIR/ in $dir..."; + local i; + find "$dir" -type f -print0 | while IFS= read -r -d '' i; do + if [[ "$i" =~ .build-id ]]; then + continue; + fi; + if isELF "$i"; then + if { + printf :; + patchelf --print-rpath "$i" + } | grep -q -F ":$TMPDIR/"; then + echo "RPATH of binary $i contains a forbidden reference to $TMPDIR/"; + exit 1; + fi; + fi; + if isScript "$i"; then + if [ -e "$(dirname "$i")/.$(basename "$i")-wrapped" ]; then + if grep -q -F "$TMPDIR/" "$i"; then + echo "wrapper script $i contains a forbidden reference to $TMPDIR/"; + exit 1; + fi; + fi; + fi; + done +} +bintoolsWrapper_addLDVars () +{ + + local role_post; + getHostRoleEnvHook; + if [[ -d "$1/lib64" && ! -L "$1/lib64" ]]; then + export NIX_LDFLAGS${role_post}+=" -L$1/lib64"; + fi; + if [[ -d "$1/lib" ]]; then + local -a glob=($1/lib/lib*); + if [ "${#glob[*]}" -gt 0 ]; then + export NIX_LDFLAGS${role_post}+=" -L$1/lib"; + fi; + fi +} +buildPhase () +{ + + runHook preBuild; + if [[ -z "${makeFlags-}" && -z "${makefile:-}" && ! ( -e Makefile || -e makefile || -e GNUmakefile ) ]]; then + echo "no Makefile or custom buildPhase, doing nothing"; + else + foundMakefile=1; + local flagsArray=(${enableParallelBuilding:+-j${NIX_BUILD_CORES}} SHELL=$SHELL); + _accumFlagsArray makeFlags makeFlagsArray buildFlags buildFlagsArray; + echoCmd 'build flags' "${flagsArray[@]}"; + make ${makefile:+-f $makefile} "${flagsArray[@]}"; + unset flagsArray; + fi; + runHook postBuild +} +ccWrapper_addCVars () +{ + + local role_post; + getHostRoleEnvHook; + if [ -d "$1/include" ]; then + export NIX_CFLAGS_COMPILE${role_post}+=" -isystem $1/include"; + fi; + if [ -d "$1/Library/Frameworks" ]; then + export NIX_CFLAGS_COMPILE${role_post}+=" -iframework $1/Library/Frameworks"; + fi +} +checkPhase () +{ + + runHook preCheck; + if [[ -z "${foundMakefile:-}" ]]; then + echo "no Makefile or custom checkPhase, doing nothing"; + runHook postCheck; + return; + fi; + if [[ -z "${checkTarget:-}" ]]; then + if make -n ${makefile:+-f $makefile} check > /dev/null 2>&1; then + checkTarget=check; + else + if make -n ${makefile:+-f $makefile} test > /dev/null 2>&1; then + checkTarget=test; + fi; + fi; + fi; + if [[ -z "${checkTarget:-}" ]]; then + echo "no check/test target in ${makefile:-Makefile}, doing nothing"; + else + local flagsArray=(${enableParallelChecking:+-j${NIX_BUILD_CORES}} SHELL=$SHELL); + _accumFlagsArray makeFlags makeFlagsArray; + if [ -n "$__structuredAttrs" ]; then + flagsArray+=("${checkFlags[@]:-VERBOSE=y}"); + else + flagsArray+=(${checkFlags:-VERBOSE=y}); + fi; + _accumFlagsArray checkFlagsArray; + flagsArray+=(${checkTarget}); + echoCmd 'check flags' "${flagsArray[@]}"; + make ${makefile:+-f $makefile} "${flagsArray[@]}"; + unset flagsArray; + fi; + runHook postCheck +} +compressManPages () +{ + + local dir="$1"; + if [ -L "$dir"/share ] || [ -L "$dir"/share/man ] || [ ! -d "$dir/share/man" ]; then + return; + fi; + echo "gzipping man pages under $dir/share/man/"; + find "$dir"/share/man/ -type f -a '!' -regex '.*\.\(bz2\|gz\|xz\)$' -print0 | while IFS= read -r -d '' f; do + if gzip -c -n "$f" > "$f".gz; then + rm "$f"; + else + rm "$f".gz; + fi; + done; + find "$dir"/share/man/ -type l -a '!' -regex '.*\.\(bz2\|gz\|xz\)$' -print0 | sort -z | while IFS= read -r -d '' f; do + local target; + target="$(readlink -f "$f")"; + if [ -f "$target".gz ]; then + ln -sf "$target".gz "$f".gz && rm "$f"; + fi; + done +} +configurePhase () +{ + + runHook preConfigure; + : "${configureScript=}"; + if [[ -z "$configureScript" && -x ./configure ]]; then + configureScript=./configure; + fi; + if [ -z "${dontFixLibtool:-}" ]; then + export lt_cv_deplibs_check_method="${lt_cv_deplibs_check_method-pass_all}"; + local i; + find . -iname "ltmain.sh" -print0 | while IFS='' read -r -d '' i; do + echo "fixing libtool script $i"; + fixLibtool "$i"; + done; + CONFIGURE_MTIME_REFERENCE=$(mktemp configure.mtime.reference.XXXXXX); + find . -executable -type f -name configure -exec grep -l 'GNU Libtool is free software; you can redistribute it and/or modify' {} \; -exec touch -r {} "$CONFIGURE_MTIME_REFERENCE" \; -exec sed -i s_/usr/bin/file_file_g {} \; -exec touch -r "$CONFIGURE_MTIME_REFERENCE" {} \;; + rm -f "$CONFIGURE_MTIME_REFERENCE"; + fi; + if [[ -z "${dontAddPrefix:-}" && -n "$prefix" ]]; then + prependToVar configureFlags "${prefixKey:---prefix=}$prefix"; + fi; + if [[ -f "$configureScript" ]]; then + if [ -z "${dontAddDisableDepTrack:-}" ]; then + if grep -q dependency-tracking "$configureScript"; then + prependToVar configureFlags --disable-dependency-tracking; + fi; + fi; + if [ -z "${dontDisableStatic:-}" ]; then + if grep -q enable-static "$configureScript"; then + prependToVar configureFlags --disable-static; + fi; + fi; + fi; + if [ -n "$configureScript" ]; then + local -a flagsArray; + _accumFlagsArray configureFlags configureFlagsArray; + echoCmd 'configure flags' "${flagsArray[@]}"; + $configureScript "${flagsArray[@]}"; + unset flagsArray; + else + echo "no configure script, doing nothing"; + fi; + runHook postConfigure +} +consumeEntire () +{ + + if IFS='' read -r -d '' "$1"; then + echo "consumeEntire(): ERROR: Input null bytes, won't process" 1>&2; + return 1; + fi +} +distPhase () +{ + + runHook preDist; + local flagsArray=(); + _accumFlagsArray distFlags distFlagsArray; + flagsArray+=(${distTarget:-dist}); + echo 'dist flags: %q' "${flagsArray[@]}"; + make ${makefile:+-f $makefile} "${flagsArray[@]}"; + if [ "${dontCopyDist:-0}" != 1 ]; then + mkdir -p "$out/tarballs"; + cp -pvd ${tarballs[*]:-*.tar.gz} "$out/tarballs"; + fi; + runHook postDist +} +dumpVars () +{ + + if [ "${noDumpEnvVars:-0}" != 1 ]; then + export 2> /dev/null >| "$NIX_BUILD_TOP/env-vars" || true; + fi +} +echoCmd () +{ + + printf "%s:" "$1"; + shift; + printf ' %q' "$@"; + echo +} +exitHandler () +{ + + exitCode="$?"; + set +e; + if [ -n "${showBuildStats:-}" ]; then + read -r -d '' -a buildTimes < <(times); + echo "build times:"; + echo "user time for the shell ${buildTimes[0]}"; + echo "system time for the shell ${buildTimes[1]}"; + echo "user time for all child processes ${buildTimes[2]}"; + echo "system time for all child processes ${buildTimes[3]}"; + fi; + if (( "$exitCode" != 0 )); then + runHook failureHook; + if [ -n "${succeedOnFailure:-}" ]; then + echo "build failed with exit code $exitCode (ignored)"; + mkdir -p "$out/nix-support"; + printf "%s" "$exitCode" > "$out/nix-support/failed"; + exit 0; + fi; + else + runHook exitHook; + fi; + return "$exitCode" +} +findInputs () +{ + + local -r pkg="$1"; + local -r hostOffset="$2"; + local -r targetOffset="$3"; + (( hostOffset <= targetOffset )) || exit 1; + local varVar="${pkgAccumVarVars[hostOffset + 1]}"; + local varRef="$varVar[$((targetOffset - hostOffset))]"; + local var="${!varRef}"; + unset -v varVar varRef; + local varSlice="$var[*]"; + case "${!varSlice-}" in + *" $pkg "*) + return 0 + ;; + esac; + unset -v varSlice; + eval "$var"'+=("$pkg")'; + if ! [ -e "$pkg" ]; then + echo "build input $pkg does not exist" 1>&2; + exit 1; + fi; + function mapOffset () + { + local -r inputOffset="$1"; + local -n outputOffset="$2"; + if (( inputOffset <= 0 )); then + outputOffset=$((inputOffset + hostOffset)); + else + outputOffset=$((inputOffset - 1 + targetOffset)); + fi + }; + local relHostOffset; + for relHostOffset in "${allPlatOffsets[@]}"; + do + local files="${propagatedDepFilesVars[relHostOffset + 1]}"; + local hostOffsetNext; + mapOffset "$relHostOffset" hostOffsetNext; + (( -1 <= hostOffsetNext && hostOffsetNext <= 1 )) || continue; + local relTargetOffset; + for relTargetOffset in "${allPlatOffsets[@]}"; + do + (( "$relHostOffset" <= "$relTargetOffset" )) || continue; + local fileRef="${files}[$relTargetOffset - $relHostOffset]"; + local file="${!fileRef}"; + unset -v fileRef; + local targetOffsetNext; + mapOffset "$relTargetOffset" targetOffsetNext; + (( -1 <= hostOffsetNext && hostOffsetNext <= 1 )) || continue; + [[ -f "$pkg/nix-support/$file" ]] || continue; + local pkgNext; + read -r -d '' pkgNext < "$pkg/nix-support/$file" || true; + for pkgNext in $pkgNext; + do + findInputs "$pkgNext" "$hostOffsetNext" "$targetOffsetNext"; + done; + done; + done +} +fixLibtool () +{ + + local search_path; + for flag in $NIX_LDFLAGS; + do + case $flag in + -L*) + search_path+=" ${flag#-L}" + ;; + esac; + done; + sed -i "$1" -e "s^eval \(sys_lib_search_path=\).*^\1'${search_path:-}'^" -e 's^eval sys_lib_.+search_path=.*^^' +} +fixupPhase () +{ + + local output; + for output in $(getAllOutputNames); + do + if [ -e "${!output}" ]; then + chmod -R u+w "${!output}"; + fi; + done; + runHook preFixup; + local output; + for output in $(getAllOutputNames); + do + prefix="${!output}" runHook fixupOutput; + done; + recordPropagatedDependencies; + if [ -n "${setupHook:-}" ]; then + mkdir -p "${!outputDev}/nix-support"; + substituteAll "$setupHook" "${!outputDev}/nix-support/setup-hook"; + fi; + if [ -n "${setupHooks:-}" ]; then + mkdir -p "${!outputDev}/nix-support"; + local hook; + for hook in ${setupHooks[@]}; + do + local content; + consumeEntire content < "$hook"; + substituteAllStream content "file '$hook'" >> "${!outputDev}/nix-support/setup-hook"; + unset -v content; + done; + unset -v hook; + fi; + if [ -n "${propagatedUserEnvPkgs:-}" ]; then + mkdir -p "${!outputBin}/nix-support"; + printWords $propagatedUserEnvPkgs > "${!outputBin}/nix-support/propagated-user-env-packages"; + fi; + runHook postFixup +} +genericBuild () +{ + + export GZIP_NO_TIMESTAMPS=1; + if [ -f "${buildCommandPath:-}" ]; then + source "$buildCommandPath"; + return; + fi; + if [ -n "${buildCommand:-}" ]; then + eval "$buildCommand"; + return; + fi; + if [ -z "${phases[*]:-}" ]; then + phases="${prePhases[*]:-} unpackPhase patchPhase ${preConfigurePhases[*]:-} configurePhase ${preBuildPhases[*]:-} buildPhase checkPhase ${preInstallPhases[*]:-} installPhase ${preFixupPhases[*]:-} fixupPhase installCheckPhase ${preDistPhases[*]:-} distPhase ${postPhases[*]:-}"; + fi; + for curPhase in ${phases[*]}; + do + if [[ "$curPhase" = unpackPhase && -n "${dontUnpack:-}" ]]; then + continue; + fi; + if [[ "$curPhase" = patchPhase && -n "${dontPatch:-}" ]]; then + continue; + fi; + if [[ "$curPhase" = configurePhase && -n "${dontConfigure:-}" ]]; then + continue; + fi; + if [[ "$curPhase" = buildPhase && -n "${dontBuild:-}" ]]; then + continue; + fi; + if [[ "$curPhase" = checkPhase && -z "${doCheck:-}" ]]; then + continue; + fi; + if [[ "$curPhase" = installPhase && -n "${dontInstall:-}" ]]; then + continue; + fi; + if [[ "$curPhase" = fixupPhase && -n "${dontFixup:-}" ]]; then + continue; + fi; + if [[ "$curPhase" = installCheckPhase && -z "${doInstallCheck:-}" ]]; then + continue; + fi; + if [[ "$curPhase" = distPhase && -z "${doDist:-}" ]]; then + continue; + fi; + if [[ -n $NIX_LOG_FD ]]; then + echo "@nix { \"action\": \"setPhase\", \"phase\": \"$curPhase\" }" >&"$NIX_LOG_FD"; + fi; + showPhaseHeader "$curPhase"; + dumpVars; + local startTime=$(date +"%s"); + eval "${!curPhase:-$curPhase}"; + local endTime=$(date +"%s"); + showPhaseFooter "$curPhase" "$startTime" "$endTime"; + if [ "$curPhase" = unpackPhase ]; then + [ -n "${sourceRoot:-}" ] && chmod +x "${sourceRoot}"; + cd "${sourceRoot:-.}"; + fi; + done +} +getAllOutputNames () +{ + + if [ -n "$__structuredAttrs" ]; then + echo "${!outputs[*]}"; + else + echo "$outputs"; + fi +} +getHostRole () +{ + + getRole "$hostOffset" +} +getHostRoleEnvHook () +{ + + getRole "$depHostOffset" +} +getRole () +{ + + case $1 in + -1) + role_post='_FOR_BUILD' + ;; + 0) + role_post='' + ;; + 1) + role_post='_FOR_TARGET' + ;; + *) + echo "binutils-wrapper-2.40: used as improper sort of dependency" 1>&2; + return 1 + ;; + esac +} +getTargetRole () +{ + + getRole "$targetOffset" +} +getTargetRoleEnvHook () +{ + + getRole "$depTargetOffset" +} +getTargetRoleWrapper () +{ + + case $targetOffset in + -1) + export NIX_BINTOOLS_WRAPPER_TARGET_BUILD_x86_64_unknown_linux_gnu=1 + ;; + 0) + export NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu=1 + ;; + 1) + export NIX_BINTOOLS_WRAPPER_TARGET_TARGET_x86_64_unknown_linux_gnu=1 + ;; + *) + echo "binutils-wrapper-2.40: used as improper sort of dependency" 1>&2; + return 1 + ;; + esac +} +installCheckPhase () +{ + + runHook preInstallCheck; + if [[ -z "${foundMakefile:-}" ]]; then + echo "no Makefile or custom installCheckPhase, doing nothing"; + else + if [[ -z "${installCheckTarget:-}" ]] && ! make -n ${makefile:+-f $makefile} "${installCheckTarget:-installcheck}" > /dev/null 2>&1; then + echo "no installcheck target in ${makefile:-Makefile}, doing nothing"; + else + local flagsArray=(${enableParallelChecking:+-j${NIX_BUILD_CORES}} SHELL=$SHELL); + _accumFlagsArray makeFlags makeFlagsArray installCheckFlags installCheckFlagsArray; + flagsArray+=(${installCheckTarget:-installcheck}); + echoCmd 'installcheck flags' "${flagsArray[@]}"; + make ${makefile:+-f $makefile} "${flagsArray[@]}"; + unset flagsArray; + fi; + fi; + runHook postInstallCheck +} +installPhase () +{ + + runHook preInstall; + if [[ -z "${makeFlags-}" && -z "${makefile:-}" && ! ( -e Makefile || -e makefile || -e GNUmakefile ) ]]; then + echo "no Makefile or custom installPhase, doing nothing"; + runHook postInstall; + return; + else + foundMakefile=1; + fi; + if [ -n "$prefix" ]; then + mkdir -p "$prefix"; + fi; + local flagsArray=(${enableParallelInstalling:+-j${NIX_BUILD_CORES}} SHELL=$SHELL); + _accumFlagsArray makeFlags makeFlagsArray installFlags installFlagsArray; + if [ -n "$__structuredAttrs" ]; then + flagsArray+=("${installTargets[@]:-install}"); + else + flagsArray+=(${installTargets:-install}); + fi; + echoCmd 'install flags' "${flagsArray[@]}"; + make ${makefile:+-f $makefile} "${flagsArray[@]}"; + unset flagsArray; + runHook postInstall +} +isELF () +{ + + local fn="$1"; + local fd; + local magic; + exec {fd}< "$fn"; + read -r -n 4 -u "$fd" magic; + exec {fd}>&-; + if [ "$magic" = 'ELF' ]; then + return 0; + else + return 1; + fi +} +isMachO () +{ + + local fn="$1"; + local fd; + local magic; + exec {fd}< "$fn"; + read -r -n 4 -u "$fd" magic; + exec {fd}>&-; + if [[ "$magic" = $(echo -ne "\xfe\xed\xfa\xcf") || "$magic" = $(echo -ne "\xcf\xfa\xed\xfe") ]]; then + return 0; + else + if [[ "$magic" = $(echo -ne "\xfe\xed\xfa\xce") || "$magic" = $(echo -ne "\xce\xfa\xed\xfe") ]]; then + return 0; + else + if [[ "$magic" = $(echo -ne "\xca\xfe\xba\xbe") || "$magic" = $(echo -ne "\xbe\xba\xfe\xca") ]]; then + return 0; + else + return 1; + fi; + fi; + fi +} +isScript () +{ + + local fn="$1"; + local fd; + local magic; + exec {fd}< "$fn"; + read -r -n 2 -u "$fd" magic; + exec {fd}>&-; + if [[ "$magic" =~ \#! ]]; then + return 0; + else + return 1; + fi +} +mapOffset () +{ + + local -r inputOffset="$1"; + local -n outputOffset="$2"; + if (( inputOffset <= 0 )); then + outputOffset=$((inputOffset + hostOffset)); + else + outputOffset=$((inputOffset - 1 + targetOffset)); + fi +} +moveToOutput () +{ + + local patt="$1"; + local dstOut="$2"; + local output; + for output in $(getAllOutputNames); + do + if [ "${!output}" = "$dstOut" ]; then + continue; + fi; + local srcPath; + for srcPath in "${!output}"/$patt; + do + if [ ! -e "$srcPath" ] && [ ! -L "$srcPath" ]; then + continue; + fi; + if [ "$dstOut" = REMOVE ]; then + echo "Removing $srcPath"; + rm -r "$srcPath"; + else + local dstPath="$dstOut${srcPath#${!output}}"; + echo "Moving $srcPath to $dstPath"; + if [ -d "$dstPath" ] && [ -d "$srcPath" ]; then + rmdir "$srcPath" --ignore-fail-on-non-empty; + if [ -d "$srcPath" ]; then + mv -t "$dstPath" "$srcPath"/*; + rmdir "$srcPath"; + fi; + else + mkdir -p "$(readlink -m "$dstPath/..")"; + mv "$srcPath" "$dstPath"; + fi; + fi; + local srcParent="$(readlink -m "$srcPath/..")"; + if [ -n "$(find "$srcParent" -maxdepth 0 -type d -empty 2> /dev/null)" ]; then + echo "Removing empty $srcParent/ and (possibly) its parents"; + rmdir -p --ignore-fail-on-non-empty "$srcParent" 2> /dev/null || true; + fi; + done; + done +} +patchELF () +{ + + local dir="$1"; + [ -e "$dir" ] || return 0; + echo "shrinking RPATHs of ELF executables and libraries in $dir"; + local i; + while IFS= read -r -d '' i; do + if [[ "$i" =~ .build-id ]]; then + continue; + fi; + if ! isELF "$i"; then + continue; + fi; + echo "shrinking $i"; + patchelf --shrink-rpath "$i" || true; + done < <(find "$dir" -type f -print0) +} +patchPhase () +{ + + runHook prePatch; + local -a patchesArray; + if [ -n "$__structuredAttrs" ]; then + patchesArray=(${patches:+"${patches[@]}"}); + else + patchesArray=(${patches:-}); + fi; + for i in "${patchesArray[@]}"; + do + echo "applying patch $i"; + local uncompress=cat; + case "$i" in + *.gz) + uncompress="gzip -d" + ;; + *.bz2) + uncompress="bzip2 -d" + ;; + *.xz) + uncompress="xz -d" + ;; + *.lzma) + uncompress="lzma -d" + ;; + esac; + local -a flagsArray; + if [ -n "$__structuredAttrs" ]; then + flagsArray=("${patchFlags[@]:--p1}"); + else + flagsArray=(${patchFlags:--p1}); + fi; + $uncompress < "$i" 2>&1 | patch "${flagsArray[@]}"; + done; + runHook postPatch +} +patchShebangs () +{ + + local pathName; + local update; + while [[ $# -gt 0 ]]; do + case "$1" in + --host) + pathName=HOST_PATH; + shift + ;; + --build) + pathName=PATH; + shift + ;; + --update) + update=true; + shift + ;; + --) + shift; + break + ;; + -* | --*) + echo "Unknown option $1 supplied to patchShebangs" 1>&2; + return 1 + ;; + *) + break + ;; + esac; + done; + echo "patching script interpreter paths in $@"; + local f; + local oldPath; + local newPath; + local arg0; + local args; + local oldInterpreterLine; + local newInterpreterLine; + if [[ $# -eq 0 ]]; then + echo "No arguments supplied to patchShebangs" 1>&2; + return 0; + fi; + local f; + while IFS= read -r -d '' f; do + isScript "$f" || continue; + read -r oldInterpreterLine < "$f"; + read -r oldPath arg0 args <<< "${oldInterpreterLine:2}"; + if [[ -z "${pathName:-}" ]]; then + if [[ -n $strictDeps && $f == "$NIX_STORE"* ]]; then + pathName=HOST_PATH; + else + pathName=PATH; + fi; + fi; + if [[ "$oldPath" == *"/bin/env" ]]; then + if [[ $arg0 == "-S" ]]; then + arg0=${args%% *}; + args=${args#* }; + newPath="$(PATH="${!pathName}" command -v "env" || true)"; + args="-S $(PATH="${!pathName}" command -v "$arg0" || true) $args"; + else + if [[ $arg0 == "-"* || $arg0 == *"="* ]]; then + echo "$f: unsupported interpreter directive \"$oldInterpreterLine\" (set dontPatchShebangs=1 and handle shebang patching yourself)" 1>&2; + exit 1; + else + newPath="$(PATH="${!pathName}" command -v "$arg0" || true)"; + fi; + fi; + else + if [[ -z $oldPath ]]; then + oldPath="/bin/sh"; + fi; + newPath="$(PATH="${!pathName}" command -v "$(basename "$oldPath")" || true)"; + args="$arg0 $args"; + fi; + newInterpreterLine="$newPath $args"; + newInterpreterLine=${newInterpreterLine%${newInterpreterLine##*[![:space:]]}}; + if [[ -n "$oldPath" && ( "$update" == true || "${oldPath:0:${#NIX_STORE}}" != "$NIX_STORE" ) ]]; then + if [[ -n "$newPath" && "$newPath" != "$oldPath" ]]; then + echo "$f: interpreter directive changed from \"$oldInterpreterLine\" to \"$newInterpreterLine\""; + escapedInterpreterLine=${newInterpreterLine//\\/\\\\}; + timestamp=$(stat --printf "%y" "$f"); + sed -i -e "1 s|.*|#\!$escapedInterpreterLine|" "$f"; + touch --date "$timestamp" "$f"; + fi; + fi; + done < <(find "$@" -type f -perm -0100 -print0) +} +patchShebangsAuto () +{ + + if [[ -z "${dontPatchShebangs-}" && -e "$prefix" ]]; then + if [[ "$output" != out && "$output" = "$outputDev" ]]; then + patchShebangs --build "$prefix"; + else + patchShebangs --host "$prefix"; + fi; + fi +} +prependToVar () +{ + + local -n nameref="$1"; + local useArray type; + if [ -n "$__structuredAttrs" ]; then + useArray=true; + else + useArray=false; + fi; + if declare -p "$1" 2> /dev/null | grep -q '^'; then + type="$(declare -p "$1")"; + if [[ "$type" =~ "declare -A" ]]; then + echo "prependToVar(): ERROR: trying to use prependToVar on an associative array." 1>&2; + return 1; + else + if [[ "$type" =~ "declare -a" ]]; then + useArray=true; + else + useArray=false; + fi; + fi; + fi; + shift; + if $useArray; then + nameref=("$@" ${nameref+"${nameref[@]}"}); + else + nameref="$* ${nameref-}"; + fi +} +printLines () +{ + + (( "$#" > 0 )) || return 0; + printf '%s\n' "$@" +} +printWords () +{ + + (( "$#" > 0 )) || return 0; + printf '%s ' "$@" +} +recordPropagatedDependencies () +{ + + declare -ra flatVars=(depsBuildBuildPropagated propagatedNativeBuildInputs depsBuildTargetPropagated depsHostHostPropagated propagatedBuildInputs depsTargetTargetPropagated); + declare -ra flatFiles=("${propagatedBuildDepFiles[@]}" "${propagatedHostDepFiles[@]}" "${propagatedTargetDepFiles[@]}"); + local propagatedInputsIndex; + for propagatedInputsIndex in "${!flatVars[@]}"; + do + local propagatedInputsSlice="${flatVars[$propagatedInputsIndex]}[@]"; + local propagatedInputsFile="${flatFiles[$propagatedInputsIndex]}"; + [[ -n "${!propagatedInputsSlice}" ]] || continue; + mkdir -p "${!outputDev}/nix-support"; + printWords ${!propagatedInputsSlice} > "${!outputDev}/nix-support/$propagatedInputsFile"; + done +} +runHook () +{ + + local hookName="$1"; + shift; + local hooksSlice="${hookName%Hook}Hooks[@]"; + local hook; + for hook in "_callImplicitHook 0 $hookName" ${!hooksSlice+"${!hooksSlice}"}; + do + _eval "$hook" "$@"; + done; + return 0 +} +runOneHook () +{ + + local hookName="$1"; + shift; + local hooksSlice="${hookName%Hook}Hooks[@]"; + local hook ret=1; + for hook in "_callImplicitHook 1 $hookName" ${!hooksSlice+"${!hooksSlice}"}; + do + if _eval "$hook" "$@"; then + ret=0; + break; + fi; + done; + return "$ret" +} +showPhaseFooter () +{ + + local phase="$1"; + local startTime="$2"; + local endTime="$3"; + local delta=$(( endTime - startTime )); + (( delta < 30 )) && return; + local H=$((delta/3600)); + local M=$((delta%3600/60)); + local S=$((delta%60)); + echo -n "$phase completed in "; + (( H > 0 )) && echo -n "$H hours "; + (( M > 0 )) && echo -n "$M minutes "; + echo "$S seconds" +} +showPhaseHeader () +{ + + local phase="$1"; + case "$phase" in + unpackPhase) + echo "unpacking sources" + ;; + patchPhase) + echo "patching sources" + ;; + configurePhase) + echo "configuring" + ;; + buildPhase) + echo "building" + ;; + checkPhase) + echo "running tests" + ;; + installPhase) + echo "installing" + ;; + fixupPhase) + echo "post-installation fixup" + ;; + installCheckPhase) + echo "running install tests" + ;; + *) + echo "$phase" + ;; + esac +} +stripDirs () +{ + + local cmd="$1"; + local ranlibCmd="$2"; + local paths="$3"; + local stripFlags="$4"; + local excludeFlags=(); + local pathsNew=; + [ -z "$cmd" ] && echo "stripDirs: Strip command is empty" 1>&2 && exit 1; + [ -z "$ranlibCmd" ] && echo "stripDirs: Ranlib command is empty" 1>&2 && exit 1; + local pattern; + if [ -n "${stripExclude:-}" ]; then + for pattern in "${stripExclude[@]}"; + do + excludeFlags+=(-a '!' '(' -name "$pattern" -o -wholename "$prefix/$pattern" ')'); + done; + fi; + local p; + for p in ${paths}; + do + if [ -e "$prefix/$p" ]; then + pathsNew="${pathsNew} $prefix/$p"; + fi; + done; + paths=${pathsNew}; + if [ -n "${paths}" ]; then + echo "stripping (with command $cmd and flags $stripFlags) in $paths"; + local striperr; + striperr="$(mktemp --tmpdir="$TMPDIR" 'striperr.XXXXXX')"; + find $paths -type f "${excludeFlags[@]}" -a '!' -path "$prefix/lib/debug/*" -print0 | xargs -r -0 -n1 -- realpath -z | sort -u -z | xargs -r -0 -n1 -P "$NIX_BUILD_CORES" -- $cmd $stripFlags 2> "$striperr" || exit_code=$?; + [[ "$exit_code" = 123 || -z "$exit_code" ]] || ( cat "$striperr" 1>&2 && exit 1 ); + rm "$striperr"; + find $paths -name '*.a' -type f -exec $ranlibCmd '{}' \; 2> /dev/null; + fi +} +stripHash () +{ + + local strippedName casematchOpt=0; + strippedName="$(basename -- "$1")"; + shopt -q nocasematch && casematchOpt=1; + shopt -u nocasematch; + if [[ "$strippedName" =~ ^[a-z0-9]{32}- ]]; then + echo "${strippedName:33}"; + else + echo "$strippedName"; + fi; + if (( casematchOpt )); then + shopt -s nocasematch; + fi +} +substitute () +{ + + local input="$1"; + local output="$2"; + shift 2; + if [ ! -f "$input" ]; then + echo "substitute(): ERROR: file '$input' does not exist" 1>&2; + return 1; + fi; + local content; + consumeEntire content < "$input"; + if [ -e "$output" ]; then + chmod +w "$output"; + fi; + substituteStream content "file '$input'" "$@" > "$output" +} +substituteAll () +{ + + local input="$1"; + local output="$2"; + local -a args=(); + _allFlags; + substitute "$input" "$output" "${args[@]}" +} +substituteAllInPlace () +{ + + local fileName="$1"; + shift; + substituteAll "$fileName" "$fileName" "$@" +} +substituteAllStream () +{ + + local -a args=(); + _allFlags; + substituteStream "$1" "$2" "${args[@]}" +} +substituteInPlace () +{ + + local -a fileNames=(); + for arg in "$@"; + do + if [[ "$arg" = "--"* ]]; then + break; + fi; + fileNames+=("$arg"); + shift; + done; + for file in "${fileNames[@]}"; + do + substitute "$file" "$file" "$@"; + done +} +substituteStream () +{ + + local var=$1; + local description=$2; + shift 2; + while (( "$#" )); do + case "$1" in + --replace) + pattern="$2"; + replacement="$3"; + shift 3; + local savedvar; + savedvar="${!var}"; + eval "$var"'=${'"$var"'//"$pattern"/"$replacement"}'; + if [ "$pattern" != "$replacement" ]; then + if [ "${!var}" == "$savedvar" ]; then + echo "substituteStream(): WARNING: pattern '$pattern' doesn't match anything in $description" 1>&2; + fi; + fi + ;; + --subst-var) + local varName="$2"; + shift 2; + if ! [[ "$varName" =~ ^[a-zA-Z_][a-zA-Z0-9_]*$ ]]; then + echo "substituteStream(): ERROR: substitution variables must be valid Bash names, \"$varName\" isn't." 1>&2; + return 1; + fi; + if [ -z ${!varName+x} ]; then + echo "substituteStream(): ERROR: variable \$$varName is unset" 1>&2; + return 1; + fi; + pattern="@$varName@"; + replacement="${!varName}"; + eval "$var"'=${'"$var"'//"$pattern"/"$replacement"}' + ;; + --subst-var-by) + pattern="@$2@"; + replacement="$3"; + eval "$var"'=${'"$var"'//"$pattern"/"$replacement"}'; + shift 3 + ;; + *) + echo "substituteStream(): ERROR: Invalid command line argument: $1" 1>&2; + return 1 + ;; + esac; + done; + printf "%s" "${!var}" +} +sysconfigdataHook () +{ + + if [ "$1" = '/nix/store/lx8vhp4fxclp494svlfis3sb2g8z4l9h-python3-3.10.12' ]; then + export _PYTHON_HOST_PLATFORM='linux-x86_64'; + export _PYTHON_SYSCONFIGDATA_NAME='_sysconfigdata__linux_x86_64-linux-gnu'; + fi +} +toPythonPath () +{ + + local paths="$1"; + local result=; + for i in $paths; + do + p="$i/lib/python3.10/site-packages"; + result="${result}${result:+:}$p"; + done; + echo $result +} +unpackFile () +{ + + curSrc="$1"; + echo "unpacking source archive $curSrc"; + if ! runOneHook unpackCmd "$curSrc"; then + echo "do not know how to unpack source archive $curSrc"; + exit 1; + fi +} +unpackPhase () +{ + + runHook preUnpack; + if [ -z "${srcs:-}" ]; then + if [ -z "${src:-}" ]; then + echo 'variable $src or $srcs should point to the source'; + exit 1; + fi; + srcs="$src"; + fi; + local -a srcsArray; + if [ -n "$__structuredAttrs" ]; then + srcsArray=("${srcs[@]}"); + else + srcsArray=($srcs); + fi; + local dirsBefore=""; + for i in *; + do + if [ -d "$i" ]; then + dirsBefore="$dirsBefore $i "; + fi; + done; + for i in "${srcsArray[@]}"; + do + unpackFile "$i"; + done; + : "${sourceRoot=}"; + if [ -n "${setSourceRoot:-}" ]; then + runOneHook setSourceRoot; + else + if [ -z "$sourceRoot" ]; then + for i in *; + do + if [ -d "$i" ]; then + case $dirsBefore in + *\ $i\ *) + + ;; + *) + if [ -n "$sourceRoot" ]; then + echo "unpacker produced multiple directories"; + exit 1; + fi; + sourceRoot="$i" + ;; + esac; + fi; + done; + fi; + fi; + if [ -z "$sourceRoot" ]; then + echo "unpacker appears to have produced no directories"; + exit 1; + fi; + echo "source root is $sourceRoot"; + if [ "${dontMakeSourcesWritable:-0}" != 1 ]; then + chmod -R u+w -- "$sourceRoot"; + fi; + runHook postUnpack +} +updateAutotoolsGnuConfigScriptsPhase () +{ + + if [ -n "${dontUpdateAutotoolsGnuConfigScripts-}" ]; then + return; + fi; + for script in config.sub config.guess; + do + for f in $(find . -type f -name "$script"); + do + echo "Updating Autotools / GNU config script to a newer upstream version: $f"; + cp -f "/nix/store/knwyqhxbsxflilyy0mkpai2fp3lxarqz-gnu-config-2023-07-31/$script" "$f"; + done; + done +} +updateSourceDateEpoch () +{ + + local path="$1"; + local -a res=($(find "$path" -type f -not -newer "$NIX_BUILD_TOP/.." -printf '%T@ %p\0' | sort -n --zero-terminated | tail -n1 --zero-terminated | head -c -1)); + local time="${res[0]//\.[0-9]*/}"; + local newestFile="${res[1]}"; + if [ "${time:-0}" -gt "$SOURCE_DATE_EPOCH" ]; then + echo "setting SOURCE_DATE_EPOCH to timestamp $time of file $newestFile"; + export SOURCE_DATE_EPOCH="$time"; + local now="$(date +%s)"; + if [ "$time" -gt $((now - 60)) ]; then + echo "warning: file $newestFile may be generated; SOURCE_DATE_EPOCH may be non-deterministic"; + fi; + fi +} +PATH="$PATH${nix_saved_PATH:+:$nix_saved_PATH}" +XDG_DATA_DIRS="$XDG_DATA_DIRS${nix_saved_XDG_DATA_DIRS:+:$nix_saved_XDG_DATA_DIRS}" +export NIX_BUILD_TOP="$(mktemp -d -t nix-shell.XXXXXX)" +export TMP="$NIX_BUILD_TOP" +export TMPDIR="$NIX_BUILD_TOP" +export TEMP="$NIX_BUILD_TOP" +export TEMPDIR="$NIX_BUILD_TOP" +eval "$shellHook" diff --git a/.envrc b/.envrc new file mode 100644 index 00000000..3550a30f --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/Changelog.md b/Changelog.md index 6ed8d8b4..c55e3497 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,118 @@ + + +# 1.5.0.0 — 2023-12-05 + +## Removed + +- Removed `nullaryFunction`. Instead `function` can be called with `()`. + +## Added + +- Support PostgreSQL's `inet` type (which maps to the Haskell `NetAddr IP` type). ([#227](https://github.com/circuithub/rel8/pull/227)) + +- `Rel8.materialize` and `Rel8.Tabulate.materialize`, which add a materialization/optimisation fence to `SELECT` statements by binding a query to a `WITH` subquery. Note that Rel8 doesn't currently add `MATERIALIZE` to this, but may in the future. ([#180](https://github.com/circuithub/rel8/pull/180)) + +- `Rel8.head`, `Rel8.headExpr`, `Rel8.last`, `Rel8.lastExpr` for accessing the first/last elements of `ListTable`s and arrays. We have also added variants for `NonEmptyTable`s/non-empty arrays with the `1` suffix (e.g., `head1`). ([#245](https://github.com/circuithub/rel8/pull/245)) + +- Rel8 now has extensive support for `WITH` statements and data-modifying statements (https://www.postgresql.org/docs/current/queries-with.html#QUERIES-WITH-MODIFYING). + + This work offers a lot of new power to Rel8. One new possibility is "moving" rows between tables, for example to archive rows in one table into a log table: + + ```haskell + import Rel8 + + archive :: Statement () + archive = do + deleted <- + delete Delete + { from = mainTable + , using = pure () + , deleteWhere = \foo -> fooId foo ==. lit 123 + , returning = Returning id + } + + insert Insert + { into = archiveTable + , rows = deleted + , onConflict = DoNothing + , returning = NoReturninvg + } + ``` + + This `Statement` will compile to a single SQL statement - essentially: + + ```sql + WITH deleted_rows (DELETE FROM main_table WHERE id = 123 RETURNING *) + INSERT INTO archive_table SELECT * FROM deleted_rows + ``` + + This feature is a significant performant improvement, as it avoids an entire roundtrip. + + This change has necessitated a change to how a `SELECT` statement is ran: `select` now will now produce a `Rel8.Statement`, which you have to `run` to turn it into a Hasql `Statement`. Rel8 offers a variety of `run` functions depending on how many rows need to be returned - see the various family of `run` functions in Rel8's documentation for more. + + [#250](https://github.com/circuithub/rel8/pull/250) + +- - `Rel8.loop` and `Rel8.loopDistinct`, which allow writing `WITH .. RECURSIVE` queries. ([#180](https://github.com/circuithub/rel8/pull/180)) + +- Added the `QualifiedName` type for named PostgreSQL objects (tables, views, functions, operators, sequences, etc.) that can optionally be qualified by a schema, including an `IsString` instance. + +- Added `queryFunction` for `SELECT`ing from table-returning functions such as `jsonb_to_recordset`. + +- `TypeName` record, which gives a richer representation of the components of a PostgreSQL type name (name, schema, modifiers, scalar/array). + +- `Rel8.length` and `Rel8.lengthExpr` for getting the length `ListTable`s and arrays. We have also added variants for `NonEmptyTable`s/non-empty arrays with the `1` suffix (e.g., `length1`). + +- Added aggregators `listCat` and `nonEmptyCat` for folding a collection of lists into a single list by concatenation. + +- `DBType` instance for `Fixed` that would map (e.g.) `Micro` to `numeric(1000, 6)` and `Pico` to `numeric(1000, 12)`. + +- Added `index`, `index1`, `indexExpr`, and `index1Expr` functions for extracting individual elements from `ListTable`s and `NonEmptyTable`s. + +## Changed + +- Rel8's API regarding aggregation has changed significantly, and is now a closer match to Opaleye. + + The previous aggregation API had `aggregate` transform a `Table` from the `Aggregate` context back into the `Expr` context: + + ```haskell + myQuery = aggregate do + a <- each tableA + return $ liftF2 (,) (sum (foo a)) (countDistinct (bar a)) + ``` + + This API seemed convenient, but has some significant shortcomings. The new API requires an explicit `Aggregator` be passed to `aggregate`: + + ```haskell + myQuery = aggregate (liftA2 (,) (sumOn foo) (countDistinctOn bar)) do + each tableA + ``` + + For more details, see [#235](https://github.com/circuithub/rel8/pull/235) + +- `TypeInformation`'s `decoder` field has changed. Instead of taking a `Hasql.Decoder`, it now takes a `Rel8.Decoder`, which itself is comprised of a `Hasql.Decoder` and an `attoparsec` `Parser`. This is necessitated by the fix for [#168](https://github.com/circuithub/rel8/issues/168); we generally decode things in PostgreSQL's binary format (using a `Hasql.Decoder`), but for nested arrays we now get things in PostgreSQL's text format (for which we need an `attoparsec` `Parser`), so must have both. Most `DBType` instances that use `mapTypeInformation` or `ParseTypeInformation`, or `DerivingVia` helpers like `ReadShow`, `JSONBEncoded`, `Enum` and `Composite` are unaffected by this change. + +- The `schema` field from `TableSchema` has been removed and the name field changed from `String` to `QualifiedName`. +- `nextval`, `function` and `binaryOperator` now take a `QualifiedName` instead of a `String`. + +- `function` has been changed to accept a single argument (as opposed to variadic arguments). See [#258](https://github.com/circuithub/rel8/pull/258) for more details. + +- `TypeInformation`'s `typeName` parameter from `String` to `TypeName`. +- `DBEnum`'s `enumTypeName` method from `String` to `QualifiedName`. +- `DBComposite`'s `compositeTypeName` method from `String` to `QualifiedName`. + +- Changed `Upsert` by adding a `predicate` field, which allows partial indexes to be specified as conflict targets. + +- The window functions `lag`, `lead`, `firstValue`, `lastValue` and `nthValue` can now operate on entire rows at once as opposed to just single columns. + +## Fixed + +- Fixed a bug with `catListTable` and `catNonEmptyTable` where invalid SQL could be produced. ([#240](https://github.com/circuithub/rel8/pull/240)) + +- A fix for [#168](https://github.com/circuithub/rel8/issues/168), which prevented using `catListTable` on arrays of arrays. To achieve this we had to coerce arrays of arrays to text internally, which unfortunately isn't completely transparent; you can oberve it if you write something like `listTable [listTable [10]] > listTable [listTable [9]]`: previously that would be `false`, but now it's `true`. Arrays of non-arrays are unaffected by this. + +- Fixes [#228](https://github.com/circuithub/rel8/issues/228) where it was impossible to call `nextval` with a qualified sequence name. + +- Fixes [#71](https://github.com/circuithub/rel8/issues/71). # 1.4.1.0 (2023-01-19) ## New features diff --git a/changelog.d/20230707_182829_ollie_scriv.md b/changelog.d/20230707_182829_ollie_scriv.md deleted file mode 100644 index f699b6e1..00000000 --- a/changelog.d/20230707_182829_ollie_scriv.md +++ /dev/null @@ -1,3 +0,0 @@ -### Added - -- Support PostgreSQL's `inet` type (which maps to the Haskell `NetAddr IP` type). ([#227](https://github.com/circuithub/rel8/pull/227)) \ No newline at end of file diff --git a/changelog.d/20230707_183519_ollie_scriv.md b/changelog.d/20230707_183519_ollie_scriv.md deleted file mode 100644 index 93f8ab58..00000000 --- a/changelog.d/20230707_183519_ollie_scriv.md +++ /dev/null @@ -1,3 +0,0 @@ -### Added - -- `Rel8.materialize` and `Rel8.Tabulate.materialize`, which add a materialization/optimisation fence to `SELECT` statements by binding a query to a `WITH` subquery. Note that Rel8 doesn't currently add `MATERIALIZE` to this, but may in the future. ([#180](https://github.com/circuithub/rel8/pull/180)) diff --git a/changelog.d/20230707_184221_ollie_scriv.md b/changelog.d/20230707_184221_ollie_scriv.md deleted file mode 100644 index 4165e9c4..00000000 --- a/changelog.d/20230707_184221_ollie_scriv.md +++ /dev/null @@ -1,3 +0,0 @@ -### Fixed - -- Fixed a bug with `catListTable` and `catNonEmptyTable` where invalid SQL could be produced. ([#240](https://github.com/circuithub/rel8/pull/240)) diff --git a/changelog.d/20230707_184703_ollie_scriv.md b/changelog.d/20230707_184703_ollie_scriv.md deleted file mode 100644 index e602a516..00000000 --- a/changelog.d/20230707_184703_ollie_scriv.md +++ /dev/null @@ -1,20 +0,0 @@ -### Changed - -- Rel8's API regarding aggregation has changed significantly, and is now a closer match to Opaleye. - - The previous aggregation API had `aggregate` transform a `Table` from the `Aggregate` context back into the `Expr` context: - - ```haskell - myQuery = aggregate do - a <- each tableA - return $ liftF2 (,) (sum (foo a)) (countDistinct (bar a)) - ``` - - This API seemed convenient, but has some significant shortcomings. The new API requires an explicit `Aggregator` be passed to `aggregate`: - - ```haskell - myQuery = aggregate (liftA2 (,) (sumOn foo) (countDistinctOn bar)) do - each tableA - ``` - - For more details, see [#235](https://github.com/circuithub/rel8/pull/235) diff --git a/changelog.d/20230707_185221_ollie_scriv.md b/changelog.d/20230707_185221_ollie_scriv.md deleted file mode 100644 index e1efb77d..00000000 --- a/changelog.d/20230707_185221_ollie_scriv.md +++ /dev/null @@ -1,7 +0,0 @@ -### Fixed - -- A fix for [#168](https://github.com/circuithub/rel8/issues/168), which prevented using `catListTable` on arrays of arrays. To achieve this we had to coerce arrays of arrays to text internally, which unfortunately isn't completely transparent; you can oberve it if you write something like `listTable [listTable [10]] > listTable [listTable [9]]`: previously that would be `false`, but now it's `true`. Arrays of non-arrays are unaffected by this. - -### Changed - -- `TypeInformation`'s `decoder` field has changed. Instead of taking a `Hasql.Decoder`, it now takes a `Rel8.Decoder`, which itself is comprised of a `Hasql.Decoder` and an `attoparsec` `Parser`. This is necessitated by the fix for [#168](https://github.com/circuithub/rel8/issues/168); we generally decode things in PostgreSQL's binary format (using a `Hasql.Decoder`), but for nested arrays we now get things in PostgreSQL's text format (for which we need an `attoparsec` `Parser`), so must have both. Most `DBType` instances that use `mapTypeInformation` or `ParseTypeInformation`, or `DerivingVia` helpers like `ReadShow`, `JSONBEncoded`, `Enum` and `Composite` are unaffected by this change. diff --git a/changelog.d/20230707_185339_ollie_scriv.md b/changelog.d/20230707_185339_ollie_scriv.md deleted file mode 100644 index 2e4b3522..00000000 --- a/changelog.d/20230707_185339_ollie_scriv.md +++ /dev/null @@ -1,3 +0,0 @@ -### Added - -- `Rel8.head`, `Rel8.headExpr`, `Rel8.last`, `Rel8.lastExpr` for accessing the first/last elements of `ListTable`s and arrays. We have also added variants for `NonEmptyTable`s/non-empty arrays with the `1` suffix (e.g., `head1`). ([#245](https://github.com/circuithub/rel8/pull/245)) diff --git a/changelog.d/20230707_185534_ollie_scriv.md b/changelog.d/20230707_185534_ollie_scriv.md deleted file mode 100644 index 8da47554..00000000 --- a/changelog.d/20230707_185534_ollie_scriv.md +++ /dev/null @@ -1,39 +0,0 @@ -### Added - -- Rel8 now has extensive support for `WITH` statements and data-modifying statements (https://www.postgresql.org/docs/current/queries-with.html#QUERIES-WITH-MODIFYING). - - This work offers a lot of new power to Rel8. One new possibility is "moving" rows between tables, for example to archive rows in one table into a log table: - - ```haskell - import Rel8 - - archive :: Statement () - archive = do - deleted <- - delete Delete - { from = mainTable - , using = pure () - , deleteWhere = \foo -> fooId foo ==. lit 123 - , returning = Returning id - } - - insert Insert - { into = archiveTable - , rows = deleted - , onConflict = DoNothing - , returning = NoReturninvg - } - ``` - - This `Statement` will compile to a single SQL statement - essentially: - - ```sql - WITH deleted_rows (DELETE FROM main_table WHERE id = 123 RETURNING *) - INSERT INTO archive_table SELECT * FROM deleted_rows - ``` - - This feature is a significant performant improvement, as it avoids an entire roundtrip. - - This change has necessitated a change to how a `SELECT` statement is ran: `select` now will now produce a `Rel8.Statement`, which you have to `run` to turn it into a Hasql `Statement`. Rel8 offers a variety of `run` functions depending on how many rows need to be returned - see the various family of `run` functions in Rel8's documentation for more. - - [#250](https://github.com/circuithub/rel8/pull/250) diff --git a/changelog.d/20230707_191301_ollie_scriv.md b/changelog.d/20230707_191301_ollie_scriv.md deleted file mode 100644 index 278e9e3e..00000000 --- a/changelog.d/20230707_191301_ollie_scriv.md +++ /dev/null @@ -1,3 +0,0 @@ -### Added - -- - `Rel8.loop` and `Rel8.loopDistinct`, which allow writing `WITH .. RECURSIVE` queries. ([#180](https://github.com/circuithub/rel8/pull/180)) diff --git a/changelog.d/20230711_125727_shane.obrien_QualifiedName.md b/changelog.d/20230711_125727_shane.obrien_QualifiedName.md deleted file mode 100644 index a309f325..00000000 --- a/changelog.d/20230711_125727_shane.obrien_QualifiedName.md +++ /dev/null @@ -1,37 +0,0 @@ - - - -### Added - -- Added the `QualifiedName` type for named PostgreSQL objects (tables, views, functions, operators, sequences, etc.) that can optionally be qualified by a schema, including an `IsString` instance. - -### Changed - -- The `schema` field from `TableSchema` has been removed and the name field changed from `String` to `QualifiedName`. -- `nextval`, `function` and `binaryOperator` now take a `QualifiedName` instead of a `String`. - - -### Fixed - -- Fixes [#228](https://github.com/circuithub/rel8/issues/228) where it was impossible to call `nextval` with a qualified sequence name. - - diff --git a/changelog.d/20230711_132437_shane.obrien_function.md b/changelog.d/20230711_132437_shane.obrien_function.md deleted file mode 100644 index 8db1f438..00000000 --- a/changelog.d/20230711_132437_shane.obrien_function.md +++ /dev/null @@ -1,38 +0,0 @@ - - -### Removed - -- Removed `nullaryFunction`. Instead `function` can be called with `()`. - - -### Changed - -- `function` has been changed to accept a single argument (as opposed to variadic arguments). See [#258](https://github.com/circuithub/rel8/pull/258) for more details. - - - - diff --git a/changelog.d/20230711_132805_shane.obrien_query_function.md b/changelog.d/20230711_132805_shane.obrien_query_function.md deleted file mode 100644 index 24c81121..00000000 --- a/changelog.d/20230711_132805_shane.obrien_query_function.md +++ /dev/null @@ -1,37 +0,0 @@ - - -### Added - -- Added `queryFunction` for `SELECT`ing from table-returning functions such as `jsonb_to_recordset`. - - - -### Fixed - -- Fixes [#71](https://github.com/circuithub/rel8/issues/71). - - diff --git a/changelog.d/20230715_173829_shane.obrien_TypeName.md b/changelog.d/20230715_173829_shane.obrien_TypeName.md deleted file mode 100644 index 09d880ea..00000000 --- a/changelog.d/20230715_173829_shane.obrien_TypeName.md +++ /dev/null @@ -1,40 +0,0 @@ - - - -### Added - -- `TypeName` record, which gives a richer representation of the components of a PostgreSQL type name (name, schema, modifiers, scalar/array). - -### Changed - -- `TypeInformation`'s `typeName` parameter from `String` to `TypeName`. -- `DBEnum`'s `enumTypeName` method from `String` to `QualifiedName`. -- `DBComposite`'s `compositeTypeName` method from `String` to `QualifiedName`. - - - - diff --git a/changelog.d/20230725_005721_shane.obrien_partial_index.md b/changelog.d/20230725_005721_shane.obrien_partial_index.md deleted file mode 100644 index d91245bd..00000000 --- a/changelog.d/20230725_005721_shane.obrien_partial_index.md +++ /dev/null @@ -1,40 +0,0 @@ - - - - -### Changed - -- Changed `Upsert` by adding a `predicate` field, which allows partial indexes to be specified as conflict targets. - - - - diff --git a/changelog.d/20230815_190143_shane.obrien_array_length.md b/changelog.d/20230815_190143_shane.obrien_array_length.md deleted file mode 100644 index 70aed4ed..00000000 --- a/changelog.d/20230815_190143_shane.obrien_array_length.md +++ /dev/null @@ -1,3 +0,0 @@ -### Added - -- `Rel8.length` and `Rel8.lengthExpr` for getting the length `ListTable`s and arrays. We have also added variants for `NonEmptyTable`s/non-empty arrays with the `1` suffix (e.g., `length1`). diff --git a/changelog.d/20230826_034632_shane.obrien_array_cat.md b/changelog.d/20230826_034632_shane.obrien_array_cat.md deleted file mode 100644 index 6c975b25..00000000 --- a/changelog.d/20230826_034632_shane.obrien_array_cat.md +++ /dev/null @@ -1,40 +0,0 @@ - - - -### Added - -- Added aggregators `listCat` and `nonEmptyCat` for folding a collection of lists into a single list by concatenation. - - - - - diff --git a/changelog.d/20231006_154448_shane.obrien_decimal.md b/changelog.d/20231006_154448_shane.obrien_decimal.md deleted file mode 100644 index c2db704b..00000000 --- a/changelog.d/20231006_154448_shane.obrien_decimal.md +++ /dev/null @@ -1,40 +0,0 @@ - - - -### Added - -- `DBType` instance for `Fixed` that would map (e.g.) `Micro` to `numeric(1000, 6)` and `Pico` to `numeric(1000, 12)`. - - - - - diff --git a/changelog.d/20231006_191956_shane.obrien_window_table.md b/changelog.d/20231006_191956_shane.obrien_window_table.md deleted file mode 100644 index 33f1602c..00000000 --- a/changelog.d/20231006_191956_shane.obrien_window_table.md +++ /dev/null @@ -1,3 +0,0 @@ -### Changed - -- The window functions `lag`, `lead`, `firstValue`, `lastValue` and `nthValue` can now operate on entire rows at once as opposed to just single columns. diff --git a/changelog.d/20231019_180613_shane.obrien_index.md b/changelog.d/20231019_180613_shane.obrien_index.md deleted file mode 100644 index 11354a47..00000000 --- a/changelog.d/20231019_180613_shane.obrien_index.md +++ /dev/null @@ -1,3 +0,0 @@ -### Added - -- Added `index`, `index1`, `indexExpr`, and `index1Expr` functions for extracting individual elements from `ListTable`s and `NonEmptyTable`s.