diff options
Diffstat (limited to '.direnv/flake-profile.rc')
-rw-r--r-- | .direnv/flake-profile.rc | 1506 |
1 files changed, 1506 insertions, 0 deletions
diff --git a/.direnv/flake-profile.rc b/.direnv/flake-profile.rc new file mode 100644 index 0000000..dc6ae31 --- /dev/null +++ b/.direnv/flake-profile.rc | |||
@@ -0,0 +1,1506 @@ | |||
1 | unset shellHook | ||
2 | nix_saved_PATH="$PATH" | ||
3 | AR=ar | ||
4 | export AR | ||
5 | AS=as | ||
6 | export AS | ||
7 | BASH=/nix/store/hrpvwkjz04s9i4nmli843hyw9z4pwhww-bash-4.4-p23/bin/bash | ||
8 | CC=gcc | ||
9 | export CC | ||
10 | CONFIG_SHELL=/nix/store/hrpvwkjz04s9i4nmli843hyw9z4pwhww-bash-4.4-p23/bin/bash | ||
11 | export CONFIG_SHELL | ||
12 | CXX=g++ | ||
13 | export CXX | ||
14 | DETERMINISTIC_BUILD=1 | ||
15 | export DETERMINISTIC_BUILD | ||
16 | DIRSTACK=() | ||
17 | GROUPS=() | ||
18 | HOSTTYPE=x86_64 | ||
19 | HOST_PATH=/nix/store/603kisq28l3prqr92z5hffh7fmwwsc9f-elm-0.19.1/bin:/nix/store/amj35xgl7bhifnih0mh39j8kbvsvg2xn-node__at_elm-tooling_slash_elm-language-server-1.6.3/bin:/nix/store/hzxpv4ha44w9pg8ynkfsgjhi3kb13h27-elm-format-0.8.3/bin:/nix/store/w3sh9aki5wrchcrq2wlg2xb394f8brh4-node_elm-oracle-1.1.1/bin:/nix/store/3yl8y2fkc1wsyqm008is2pdw5dja2icy-node_elm-test-0.19.1-revision2/bin:/nix/store/p60x886haaibkxg99mkaby1hyc9dal7w-cargo-1.41.0/bin:/nix/store/zgqj5vbrw9lq6dyczd5ixrvq8hcbrn6r-rust-1.50.0-nightly-2020-12-22-bb1fbbf84/bin:/nix/store/6dacwd7ldb2jazc218d11v2w2g55hba8-pkg-config-0.29.2/bin:/nix/store/cfkappcqwnk1kmnnqqwxrg73fjdsa2am-openssl-1.1.1g-bin/bin:/nix/store/397rckak3lmv21878y58r6iyjmiwsq9a-httpie-2.0.0/bin:/nix/store/wh1jpkqaj1jina7cbnl8vb3mfly5yllg-python3.7-Pygments-2.5.2/bin:/nix/store/hdi0fgnjp73hcw03fjxqjxmdx0f0792x-python3.7-docutils-0.16/bin:/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/bin:/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/bin:/nix/store/8dmmabfb8g3xcpsacnh4ipflkmai2465-python3.7-chardet-3.0.4/bin:/nix/store/lhc4xx6amd80ynbhz0a0xfz5s16dq98c-python3.7-setuptools-44.0.0/bin:/nix/store/1x1xwd4dlp6p2ddh40qnxiv22mmc8pa2-curl-7.70.0-dev/bin:/nix/store/k9f38hll2169jqqj72g7wx16nxavpw04-nghttp2-1.40.0-bin/bin:/nix/store/gnqgyxda6la4gw6hjh4gpmmlcnjbqn2a-libkrb5-1.17-dev/bin:/nix/store/bxjyac4385pw8cwrlgm7d18bmmndf4p5-libkrb5-1.17/bin:/nix/store/6vv8yimyaa41iwhwki9y79z8xrl9zwca-curl-7.70.0-bin/bin:/nix/store/cb0msm7sk8032nm850rnv4b23j50bbmx-diesel-cli-1.4.0/bin:/nix/store/3kbd6k80dqs6v01agxi0f2bgsq16hi13-mariadb-connector-c-3.1.5/bin:/nix/store/pdg3mr2vsm7g8sh0q3ysac9dw0pl3c1i-jq-1.6-bin/bin:/nix/store/x0jla3hpxrwz76hy9yckg1iyc9hns81k-coreutils-8.31/bin:/nix/store/97vambzyvpvrd9wgrrw7i7svi0s8vny5-findutils-4.7.0/bin:/nix/store/dqq1bvpi3g0h4v05111b3i0ymqj4v5x1-diffutils-3.7/bin:/nix/store/p34p7ysy84579lndk7rbrz6zsfr03y71-gnused-4.8/bin:/nix/store/b0vjq4r4sp9z4l2gbkc5dyyw5qfgyi3r-gnugrep-3.4/bin:/nix/store/c8balm59sxfkw9ik1fqbkadsvjqhmbx4-gawk-5.0.1/bin:/nix/store/g7dr83wnkx4gxa5ykcljc5jg04416z60-gnutar-1.32/bin:/nix/store/kkvgr3avpp7yd5hzmc4syh43jqj03sgb-gzip-1.10/bin:/nix/store/rw96psqzgyqrcd12qr6ivk9yiskjm3ab-bzip2-1.0.6.0.1-bin/bin:/nix/store/dp6y0n9cba79wwc54n1brg7xbjsq5hka-gnumake-4.2.1/bin:/nix/store/hrpvwkjz04s9i4nmli843hyw9z4pwhww-bash-4.4-p23/bin:/nix/store/xac1zfclx1xxgcd84vqb6hy3apl171n8-patch-2.7.6/bin:/nix/store/mm0w8jc58rn01c4kz2n9jvwd6bibcihs-xz-5.2.4-bin/bin | ||
20 | export HOST_PATH | ||
21 | IFS=$' \t\n' | ||
22 | IN_NIX_SHELL=impure | ||
23 | export IN_NIX_SHELL | ||
24 | LD=ld | ||
25 | export LD | ||
26 | MACHTYPE=x86_64-unknown-linux-gnu | ||
27 | NIX_BINTOOLS=/nix/store/n48b8n251dwwb04q7f3fwxdmirsakllz-binutils-wrapper-2.31.1 | ||
28 | export NIX_BINTOOLS | ||
29 | NIX_BINTOOLS_WRAPPER_x86_64_unknown_linux_gnu_TARGET_HOST=1 | ||
30 | export NIX_BINTOOLS_WRAPPER_x86_64_unknown_linux_gnu_TARGET_HOST | ||
31 | NIX_BUILD_CORES=8 | ||
32 | export NIX_BUILD_CORES | ||
33 | NIX_CC=/nix/store/m6h7zh8w6s52clnyskffj5lbkakqgywn-gcc-wrapper-9.2.0 | ||
34 | export NIX_CC | ||
35 | NIX_CC_WRAPPER_x86_64_unknown_linux_gnu_TARGET_HOST=1 | ||
36 | export NIX_CC_WRAPPER_x86_64_unknown_linux_gnu_TARGET_HOST | ||
37 | NIX_CFLAGS_COMPILE=' -isystem /nix/store/jzfmcy71n7msc1jq9bixg7hw8dghl94b-openssl-1.1.1g-dev/include -isystem /nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/include -isystem /nix/store/jkdfz5x727qwbsc121xd95j01kx8c6v5-libffi-3.3-dev/include -isystem /nix/store/1x1xwd4dlp6p2ddh40qnxiv22mmc8pa2-curl-7.70.0-dev/include -isystem /nix/store/12xzgyza4hb47vk9gw61z90spr6712lm-nghttp2-1.40.0-dev/include -isystem /nix/store/fkbpg2lx585gr28fmcs610zk88jl9bd7-zlib-1.2.11-dev/include -isystem /nix/store/gnqgyxda6la4gw6hjh4gpmmlcnjbqn2a-libkrb5-1.17-dev/include -isystem /nix/store/6wqaybiqw6hcrlxwf9jrnjlci7kq0h6i-libssh2-1.9.0-dev/include -isystem /nix/store/3kbd6k80dqs6v01agxi0f2bgsq16hi13-mariadb-connector-c-3.1.5/include -isystem /nix/store/88lhpbmlgpan34a8j5kgzb07sc0zlb5y-jq-1.6-dev/include -isystem /nix/store/jzfmcy71n7msc1jq9bixg7hw8dghl94b-openssl-1.1.1g-dev/include -isystem /nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/include -isystem /nix/store/jkdfz5x727qwbsc121xd95j01kx8c6v5-libffi-3.3-dev/include -isystem /nix/store/1x1xwd4dlp6p2ddh40qnxiv22mmc8pa2-curl-7.70.0-dev/include -isystem /nix/store/12xzgyza4hb47vk9gw61z90spr6712lm-nghttp2-1.40.0-dev/include -isystem /nix/store/fkbpg2lx585gr28fmcs610zk88jl9bd7-zlib-1.2.11-dev/include -isystem /nix/store/gnqgyxda6la4gw6hjh4gpmmlcnjbqn2a-libkrb5-1.17-dev/include -isystem /nix/store/6wqaybiqw6hcrlxwf9jrnjlci7kq0h6i-libssh2-1.9.0-dev/include -isystem /nix/store/3kbd6k80dqs6v01agxi0f2bgsq16hi13-mariadb-connector-c-3.1.5/include -isystem /nix/store/88lhpbmlgpan34a8j5kgzb07sc0zlb5y-jq-1.6-dev/include' | ||
38 | export NIX_CFLAGS_COMPILE | ||
39 | NIX_ENFORCE_NO_NATIVE=1 | ||
40 | export NIX_ENFORCE_NO_NATIVE | ||
41 | NIX_HARDENING_ENABLE='fortify stackprotector pic strictoverflow format relro bindnow' | ||
42 | export NIX_HARDENING_ENABLE | ||
43 | NIX_INDENT_MAKE=1 | ||
44 | export NIX_INDENT_MAKE | ||
45 | NIX_LDFLAGS='-rpath /home/np/code/rust/furby/outputs/out/lib64 -rpath /home/np/code/rust/furby/outputs/out/lib -L/nix/store/zgqj5vbrw9lq6dyczd5ixrvq8hcbrn6r-rust-1.50.0-nightly-2020-12-22-bb1fbbf84/lib -L/nix/store/0x3bf23q5lmdq77x5icr7c0ngvz25ms3-openssl-1.1.1g/lib -L/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib -L/nix/store/j2fdy70n25zaws892dc95yhj0gfhdxg6-libffi-3.3/lib -L/nix/store/qkpfyg67ff3c0wjsy68a61rx01f1cc31-nghttp2-1.40.0-lib/lib -L/nix/store/msp4hm62a75pdidlc3s2ymma2g5hsjjk-zlib-1.2.11/lib -L/nix/store/bxjyac4385pw8cwrlgm7d18bmmndf4p5-libkrb5-1.17/lib -L/nix/store/fnn6zvyds5sy7mgvl4h2qslmlsaf0dc8-libssh2-1.9.0/lib -L/nix/store/bcqgqdzmhd9smr51snjcy2q2cbrwy47j-curl-7.70.0/lib -L/nix/store/7cj4dviicvhga78l899arar4q5kggbc5-jq-1.6-lib/lib -L/nix/store/zgqj5vbrw9lq6dyczd5ixrvq8hcbrn6r-rust-1.50.0-nightly-2020-12-22-bb1fbbf84/lib -L/nix/store/0x3bf23q5lmdq77x5icr7c0ngvz25ms3-openssl-1.1.1g/lib -L/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib -L/nix/store/j2fdy70n25zaws892dc95yhj0gfhdxg6-libffi-3.3/lib -L/nix/store/qkpfyg67ff3c0wjsy68a61rx01f1cc31-nghttp2-1.40.0-lib/lib -L/nix/store/msp4hm62a75pdidlc3s2ymma2g5hsjjk-zlib-1.2.11/lib -L/nix/store/bxjyac4385pw8cwrlgm7d18bmmndf4p5-libkrb5-1.17/lib -L/nix/store/fnn6zvyds5sy7mgvl4h2qslmlsaf0dc8-libssh2-1.9.0/lib -L/nix/store/bcqgqdzmhd9smr51snjcy2q2cbrwy47j-curl-7.70.0/lib -L/nix/store/7cj4dviicvhga78l899arar4q5kggbc5-jq-1.6-lib/lib' | ||
46 | export NIX_LDFLAGS | ||
47 | NIX_LIB64_IN_SELF_RPATH=1 | ||
48 | NIX_NO_SELF_RPATH=1 | ||
49 | NIX_STORE=/nix/store | ||
50 | export NIX_STORE | ||
51 | NM=nm | ||
52 | export NM | ||
53 | OBJCOPY=objcopy | ||
54 | export OBJCOPY | ||
55 | OBJDUMP=objdump | ||
56 | export OBJDUMP | ||
57 | OPTERR=1 | ||
58 | OPTIND=1 | ||
59 | OSTYPE=linux-gnu | ||
60 | PATH=/nix/store/71n1xcigc00w3z7yc836jqcx9cb2dys8-patchelf-0.9/bin:/nix/store/m6h7zh8w6s52clnyskffj5lbkakqgywn-gcc-wrapper-9.2.0/bin:/nix/store/b3zsk4ihlpiimv3vff86bb5bxghgdzb9-gcc-9.2.0/bin:/nix/store/0k65d30z9xsixil10yw3bwajbdk4yskv-glibc-2.30-bin/bin:/nix/store/x0jla3hpxrwz76hy9yckg1iyc9hns81k-coreutils-8.31/bin:/nix/store/n48b8n251dwwb04q7f3fwxdmirsakllz-binutils-wrapper-2.31.1/bin:/nix/store/hrkc2sf2883l16d5yq3zg0y339kfw4xv-binutils-2.31.1/bin:/nix/store/0k65d30z9xsixil10yw3bwajbdk4yskv-glibc-2.30-bin/bin:/nix/store/x0jla3hpxrwz76hy9yckg1iyc9hns81k-coreutils-8.31/bin:/nix/store/603kisq28l3prqr92z5hffh7fmwwsc9f-elm-0.19.1/bin:/nix/store/amj35xgl7bhifnih0mh39j8kbvsvg2xn-node__at_elm-tooling_slash_elm-language-server-1.6.3/bin:/nix/store/hzxpv4ha44w9pg8ynkfsgjhi3kb13h27-elm-format-0.8.3/bin:/nix/store/w3sh9aki5wrchcrq2wlg2xb394f8brh4-node_elm-oracle-1.1.1/bin:/nix/store/3yl8y2fkc1wsyqm008is2pdw5dja2icy-node_elm-test-0.19.1-revision2/bin:/nix/store/p60x886haaibkxg99mkaby1hyc9dal7w-cargo-1.41.0/bin:/nix/store/zgqj5vbrw9lq6dyczd5ixrvq8hcbrn6r-rust-1.50.0-nightly-2020-12-22-bb1fbbf84/bin:/nix/store/6dacwd7ldb2jazc218d11v2w2g55hba8-pkg-config-0.29.2/bin:/nix/store/cfkappcqwnk1kmnnqqwxrg73fjdsa2am-openssl-1.1.1g-bin/bin:/nix/store/397rckak3lmv21878y58r6iyjmiwsq9a-httpie-2.0.0/bin:/nix/store/wh1jpkqaj1jina7cbnl8vb3mfly5yllg-python3.7-Pygments-2.5.2/bin:/nix/store/hdi0fgnjp73hcw03fjxqjxmdx0f0792x-python3.7-docutils-0.16/bin:/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/bin:/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/bin:/nix/store/8dmmabfb8g3xcpsacnh4ipflkmai2465-python3.7-chardet-3.0.4/bin:/nix/store/lhc4xx6amd80ynbhz0a0xfz5s16dq98c-python3.7-setuptools-44.0.0/bin:/nix/store/1x1xwd4dlp6p2ddh40qnxiv22mmc8pa2-curl-7.70.0-dev/bin:/nix/store/k9f38hll2169jqqj72g7wx16nxavpw04-nghttp2-1.40.0-bin/bin:/nix/store/gnqgyxda6la4gw6hjh4gpmmlcnjbqn2a-libkrb5-1.17-dev/bin:/nix/store/bxjyac4385pw8cwrlgm7d18bmmndf4p5-libkrb5-1.17/bin:/nix/store/6vv8yimyaa41iwhwki9y79z8xrl9zwca-curl-7.70.0-bin/bin:/nix/store/cb0msm7sk8032nm850rnv4b23j50bbmx-diesel-cli-1.4.0/bin:/nix/store/3kbd6k80dqs6v01agxi0f2bgsq16hi13-mariadb-connector-c-3.1.5/bin:/nix/store/pdg3mr2vsm7g8sh0q3ysac9dw0pl3c1i-jq-1.6-bin/bin:/nix/store/x0jla3hpxrwz76hy9yckg1iyc9hns81k-coreutils-8.31/bin:/nix/store/97vambzyvpvrd9wgrrw7i7svi0s8vny5-findutils-4.7.0/bin:/nix/store/dqq1bvpi3g0h4v05111b3i0ymqj4v5x1-diffutils-3.7/bin:/nix/store/p34p7ysy84579lndk7rbrz6zsfr03y71-gnused-4.8/bin:/nix/store/b0vjq4r4sp9z4l2gbkc5dyyw5qfgyi3r-gnugrep-3.4/bin:/nix/store/c8balm59sxfkw9ik1fqbkadsvjqhmbx4-gawk-5.0.1/bin:/nix/store/g7dr83wnkx4gxa5ykcljc5jg04416z60-gnutar-1.32/bin:/nix/store/kkvgr3avpp7yd5hzmc4syh43jqj03sgb-gzip-1.10/bin:/nix/store/rw96psqzgyqrcd12qr6ivk9yiskjm3ab-bzip2-1.0.6.0.1-bin/bin:/nix/store/dp6y0n9cba79wwc54n1brg7xbjsq5hka-gnumake-4.2.1/bin:/nix/store/hrpvwkjz04s9i4nmli843hyw9z4pwhww-bash-4.4-p23/bin:/nix/store/xac1zfclx1xxgcd84vqb6hy3apl171n8-patch-2.7.6/bin:/nix/store/mm0w8jc58rn01c4kz2n9jvwd6bibcihs-xz-5.2.4-bin/bin | ||
61 | export PATH | ||
62 | PIPESTATUS=([0]="0") | ||
63 | PKG_CONFIG_PATH=/nix/store/jzfmcy71n7msc1jq9bixg7hw8dghl94b-openssl-1.1.1g-dev/lib/pkgconfig:/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/pkgconfig:/nix/store/jkdfz5x727qwbsc121xd95j01kx8c6v5-libffi-3.3-dev/lib/pkgconfig:/nix/store/1x1xwd4dlp6p2ddh40qnxiv22mmc8pa2-curl-7.70.0-dev/lib/pkgconfig:/nix/store/12xzgyza4hb47vk9gw61z90spr6712lm-nghttp2-1.40.0-dev/lib/pkgconfig:/nix/store/fkbpg2lx585gr28fmcs610zk88jl9bd7-zlib-1.2.11-dev/lib/pkgconfig:/nix/store/gnqgyxda6la4gw6hjh4gpmmlcnjbqn2a-libkrb5-1.17-dev/lib/pkgconfig:/nix/store/6wqaybiqw6hcrlxwf9jrnjlci7kq0h6i-libssh2-1.9.0-dev/lib/pkgconfig:/nix/store/3kbd6k80dqs6v01agxi0f2bgsq16hi13-mariadb-connector-c-3.1.5/lib/pkgconfig | ||
64 | export PKG_CONFIG_PATH | ||
65 | PS4='+ ' | ||
66 | PYTHONHASHSEED=0 | ||
67 | export PYTHONHASHSEED | ||
68 | PYTHONNOUSERSITE=1 | ||
69 | export PYTHONNOUSERSITE | ||
70 | PYTHONPATH=/nix/store/397rckak3lmv21878y58r6iyjmiwsq9a-httpie-2.0.0/lib/python3.7/site-packages:/nix/store/397rckak3lmv21878y58r6iyjmiwsq9a-httpie-2.0.0/lib/python3.7/site-packages:/nix/store/wh1jpkqaj1jina7cbnl8vb3mfly5yllg-python3.7-Pygments-2.5.2/lib/python3.7/site-packages:/nix/store/wh1jpkqaj1jina7cbnl8vb3mfly5yllg-python3.7-Pygments-2.5.2/lib/python3.7/site-packages:/nix/store/hdi0fgnjp73hcw03fjxqjxmdx0f0792x-python3.7-docutils-0.16/lib/python3.7/site-packages:/nix/store/hdi0fgnjp73hcw03fjxqjxmdx0f0792x-python3.7-docutils-0.16/lib/python3.7/site-packages:/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/site-packages:/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/site-packages:/nix/store/a6xvh7znlpdipwyncxz44sprfbvg15fa-python3.7-requests-2.22.0/lib/python3.7/site-packages:/nix/store/a6xvh7znlpdipwyncxz44sprfbvg15fa-python3.7-requests-2.22.0/lib/python3.7/site-packages:/nix/store/7jlkn8dz8gsv3h18sr772x3v9n9ac10i-python3.7-urllib3-1.25.8/lib/python3.7/site-packages:/nix/store/7jlkn8dz8gsv3h18sr772x3v9n9ac10i-python3.7-urllib3-1.25.8/lib/python3.7/site-packages:/nix/store/0bngdpmsypycaqcgs4jwxvnpzvgw68sn-python3.7-packaging-20.1/lib/python3.7/site-packages:/nix/store/0bngdpmsypycaqcgs4jwxvnpzvgw68sn-python3.7-packaging-20.1/lib/python3.7/site-packages:/nix/store/4cv3k9hb741kq5f161pvzlfmnx0198sx-python3.7-pyparsing-2.4.6/lib/python3.7/site-packages:/nix/store/4cv3k9hb741kq5f161pvzlfmnx0198sx-python3.7-pyparsing-2.4.6/lib/python3.7/site-packages:/nix/store/qcg29y1va5hsk882sh68w683zgm7ma00-python3.7-six-1.14.0/lib/python3.7/site-packages:/nix/store/qcg29y1va5hsk882sh68w683zgm7ma00-python3.7-six-1.14.0/lib/python3.7/site-packages:/nix/store/j35bi1s8azhbvcmalmmjfaxp1w1y3k6y-python3.7-pycparser-2.19/lib/python3.7/site-packages:/nix/store/j35bi1s8azhbvcmalmmjfaxp1w1y3k6y-python3.7-pycparser-2.19/lib/python3.7/site-packages:/nix/store/8wz0jhcc13q3j5cx54fkg0n95s4srr8q-python3.7-cffi-1.13.2/lib/python3.7/site-packages:/nix/store/8wz0jhcc13q3j5cx54fkg0n95s4srr8q-python3.7-cffi-1.13.2/lib/python3.7/site-packages:/nix/store/j120qpj9y4hnhch85mxy20hjzc4nfi33-python3.7-cryptography-2.8/lib/python3.7/site-packages:/nix/store/j120qpj9y4hnhch85mxy20hjzc4nfi33-python3.7-cryptography-2.8/lib/python3.7/site-packages:/nix/store/faga777zw6vbvm3n63c7kyvwzzlvpikn-python3.7-pyasn1-0.4.8/lib/python3.7/site-packages:/nix/store/faga777zw6vbvm3n63c7kyvwzzlvpikn-python3.7-pyasn1-0.4.8/lib/python3.7/site-packages:/nix/store/py5py6kkf8yc3284i6v1zh1lraym2nr4-python3.7-idna-2.8/lib/python3.7/site-packages:/nix/store/py5py6kkf8yc3284i6v1zh1lraym2nr4-python3.7-idna-2.8/lib/python3.7/site-packages:/nix/store/2qjbjrhx2lqh8jj2r5f40b46y54ic0zk-python3.7-pyOpenSSL-19.1.0/lib/python3.7/site-packages:/nix/store/2qjbjrhx2lqh8jj2r5f40b46y54ic0zk-python3.7-pyOpenSSL-19.1.0/lib/python3.7/site-packages:/nix/store/wmy1bka21pkcvfj24rdp883yvf12fkhs-python3.7-certifi-2019.11.28/lib/python3.7/site-packages:/nix/store/wmy1bka21pkcvfj24rdp883yvf12fkhs-python3.7-certifi-2019.11.28/lib/python3.7/site-packages:/nix/store/zalgg8wkgnsda8l88n64wzdpmgrf5sd1-python3.7-pysocks-1.7.1/lib/python3.7/site-packages:/nix/store/zalgg8wkgnsda8l88n64wzdpmgrf5sd1-python3.7-pysocks-1.7.1/lib/python3.7/site-packages:/nix/store/8dmmabfb8g3xcpsacnh4ipflkmai2465-python3.7-chardet-3.0.4/lib/python3.7/site-packages:/nix/store/8dmmabfb8g3xcpsacnh4ipflkmai2465-python3.7-chardet-3.0.4/lib/python3.7/site-packages:/nix/store/lhc4xx6amd80ynbhz0a0xfz5s16dq98c-python3.7-setuptools-44.0.0/lib/python3.7/site-packages:/nix/store/lhc4xx6amd80ynbhz0a0xfz5s16dq98c-python3.7-setuptools-44.0.0/lib/python3.7/site-packages:/nix/store/397rckak3lmv21878y58r6iyjmiwsq9a-httpie-2.0.0/lib/python3.7/site-packages:/nix/store/397rckak3lmv21878y58r6iyjmiwsq9a-httpie-2.0.0/lib/python3.7/site-packages:/nix/store/wh1jpkqaj1jina7cbnl8vb3mfly5yllg-python3.7-Pygments-2.5.2/lib/python3.7/site-packages:/nix/store/wh1jpkqaj1jina7cbnl8vb3mfly5yllg-python3.7-Pygments-2.5.2/lib/python3.7/site-packages:/nix/store/hdi0fgnjp73hcw03fjxqjxmdx0f0792x-python3.7-docutils-0.16/lib/python3.7/site-packages:/nix/store/hdi0fgnjp73hcw03fjxqjxmdx0f0792x-python3.7-docutils-0.16/lib/python3.7/site-packages:/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/site-packages:/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6/lib/python3.7/site-packages:/nix/store/a6xvh7znlpdipwyncxz44sprfbvg15fa-python3.7-requests-2.22.0/lib/python3.7/site-packages:/nix/store/a6xvh7znlpdipwyncxz44sprfbvg15fa-python3.7-requests-2.22.0/lib/python3.7/site-packages:/nix/store/7jlkn8dz8gsv3h18sr772x3v9n9ac10i-python3.7-urllib3-1.25.8/lib/python3.7/site-packages:/nix/store/7jlkn8dz8gsv3h18sr772x3v9n9ac10i-python3.7-urllib3-1.25.8/lib/python3.7/site-packages:/nix/store/0bngdpmsypycaqcgs4jwxvnpzvgw68sn-python3.7-packaging-20.1/lib/python3.7/site-packages:/nix/store/0bngdpmsypycaqcgs4jwxvnpzvgw68sn-python3.7-packaging-20.1/lib/python3.7/site-packages:/nix/store/4cv3k9hb741kq5f161pvzlfmnx0198sx-python3.7-pyparsing-2.4.6/lib/python3.7/site-packages:/nix/store/4cv3k9hb741kq5f161pvzlfmnx0198sx-python3.7-pyparsing-2.4.6/lib/python3.7/site-packages:/nix/store/qcg29y1va5hsk882sh68w683zgm7ma00-python3.7-six-1.14.0/lib/python3.7/site-packages:/nix/store/qcg29y1va5hsk882sh68w683zgm7ma00-python3.7-six-1.14.0/lib/python3.7/site-packages:/nix/store/j35bi1s8azhbvcmalmmjfaxp1w1y3k6y-python3.7-pycparser-2.19/lib/python3.7/site-packages:/nix/store/j35bi1s8azhbvcmalmmjfaxp1w1y3k6y-python3.7-pycparser-2.19/lib/python3.7/site-packages:/nix/store/8wz0jhcc13q3j5cx54fkg0n95s4srr8q-python3.7-cffi-1.13.2/lib/python3.7/site-packages:/nix/store/8wz0jhcc13q3j5cx54fkg0n95s4srr8q-python3.7-cffi-1.13.2/lib/python3.7/site-packages:/nix/store/j120qpj9y4hnhch85mxy20hjzc4nfi33-python3.7-cryptography-2.8/lib/python3.7/site-packages:/nix/store/j120qpj9y4hnhch85mxy20hjzc4nfi33-python3.7-cryptography-2.8/lib/python3.7/site-packages:/nix/store/faga777zw6vbvm3n63c7kyvwzzlvpikn-python3.7-pyasn1-0.4.8/lib/python3.7/site-packages:/nix/store/faga777zw6vbvm3n63c7kyvwzzlvpikn-python3.7-pyasn1-0.4.8/lib/python3.7/site-packages:/nix/store/py5py6kkf8yc3284i6v1zh1lraym2nr4-python3.7-idna-2.8/lib/python3.7/site-packages:/nix/store/py5py6kkf8yc3284i6v1zh1lraym2nr4-python3.7-idna-2.8/lib/python3.7/site-packages:/nix/store/2qjbjrhx2lqh8jj2r5f40b46y54ic0zk-python3.7-pyOpenSSL-19.1.0/lib/python3.7/site-packages:/nix/store/2qjbjrhx2lqh8jj2r5f40b46y54ic0zk-python3.7-pyOpenSSL-19.1.0/lib/python3.7/site-packages:/nix/store/wmy1bka21pkcvfj24rdp883yvf12fkhs-python3.7-certifi-2019.11.28/lib/python3.7/site-packages:/nix/store/wmy1bka21pkcvfj24rdp883yvf12fkhs-python3.7-certifi-2019.11.28/lib/python3.7/site-packages:/nix/store/zalgg8wkgnsda8l88n64wzdpmgrf5sd1-python3.7-pysocks-1.7.1/lib/python3.7/site-packages:/nix/store/zalgg8wkgnsda8l88n64wzdpmgrf5sd1-python3.7-pysocks-1.7.1/lib/python3.7/site-packages:/nix/store/8dmmabfb8g3xcpsacnh4ipflkmai2465-python3.7-chardet-3.0.4/lib/python3.7/site-packages:/nix/store/8dmmabfb8g3xcpsacnh4ipflkmai2465-python3.7-chardet-3.0.4/lib/python3.7/site-packages:/nix/store/lhc4xx6amd80ynbhz0a0xfz5s16dq98c-python3.7-setuptools-44.0.0/lib/python3.7/site-packages:/nix/store/lhc4xx6amd80ynbhz0a0xfz5s16dq98c-python3.7-setuptools-44.0.0/lib/python3.7/site-packages | ||
71 | export PYTHONPATH | ||
72 | RANLIB=ranlib | ||
73 | export RANLIB | ||
74 | READELF=readelf | ||
75 | export READELF | ||
76 | SHELL=/nix/store/hrpvwkjz04s9i4nmli843hyw9z4pwhww-bash-4.4-p23/bin/bash | ||
77 | export SHELL | ||
78 | SIZE=size | ||
79 | export SIZE | ||
80 | SOURCE_DATE_EPOCH=1 | ||
81 | export SOURCE_DATE_EPOCH | ||
82 | STRINGS=strings | ||
83 | export STRINGS | ||
84 | STRIP=strip | ||
85 | export STRIP | ||
86 | _=export | ||
87 | buildInputs='/nix/store/603kisq28l3prqr92z5hffh7fmwwsc9f-elm-0.19.1 /nix/store/amj35xgl7bhifnih0mh39j8kbvsvg2xn-node__at_elm-tooling_slash_elm-language-server-1.6.3 /nix/store/hzxpv4ha44w9pg8ynkfsgjhi3kb13h27-elm-format-0.8.3 /nix/store/w3sh9aki5wrchcrq2wlg2xb394f8brh4-node_elm-oracle-1.1.1 /nix/store/3yl8y2fkc1wsyqm008is2pdw5dja2icy-node_elm-test-0.19.1-revision2 /nix/store/p60x886haaibkxg99mkaby1hyc9dal7w-cargo-1.41.0 /nix/store/zgqj5vbrw9lq6dyczd5ixrvq8hcbrn6r-rust-1.50.0-nightly-2020-12-22-bb1fbbf84 /nix/store/6dacwd7ldb2jazc218d11v2w2g55hba8-pkg-config-0.29.2 /nix/store/jzfmcy71n7msc1jq9bixg7hw8dghl94b-openssl-1.1.1g-dev /nix/store/397rckak3lmv21878y58r6iyjmiwsq9a-httpie-2.0.0 /nix/store/1x1xwd4dlp6p2ddh40qnxiv22mmc8pa2-curl-7.70.0-dev /nix/store/cb0msm7sk8032nm850rnv4b23j50bbmx-diesel-cli-1.4.0 /nix/store/3kbd6k80dqs6v01agxi0f2bgsq16hi13-mariadb-connector-c-3.1.5 /nix/store/88lhpbmlgpan34a8j5kgzb07sc0zlb5y-jq-1.6-dev /nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6' | ||
88 | export buildInputs | ||
89 | builder=/nix/store/hrpvwkjz04s9i4nmli843hyw9z4pwhww-bash-4.4-p23/bin/bash | ||
90 | export builder | ||
91 | commonStripFlags=--enable-deterministic-archives | ||
92 | configureFlags= | ||
93 | export configureFlags | ||
94 | defaultBuildInputs= | ||
95 | defaultNativeBuildInputs='/nix/store/71n1xcigc00w3z7yc836jqcx9cb2dys8-patchelf-0.9 /nix/store/mjjy30kxz775bhhi6j9phw81qh6dsbrf-move-docs.sh /nix/store/kxw6q8v6isaqjm702d71n2421cxamq68-make-symlinks-relative.sh /nix/store/rvg5a5nwa7cihpmbzlwzh931w3g4q108-compress-man-pages.sh /nix/store/4ygqr4w06zwcd2kcxa6w3441jijv0pvx-strip.sh /nix/store/g6hzqyjd3ricwbs0bbx4806fiwg15vnc-patch-shebangs.sh /nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh /nix/store/8zxndz5ag0p6s526c2xyllhk1nrn4c3i-audit-tmpdir.sh /nix/store/aknix5zw9cj7hd1m3h1d6nnmncl1vkvn-multiple-outputs.sh /nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh /nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh /nix/store/ngg1cv31c8c7bcm2n8ww4g06nq7s4zhm-set-source-date-epoch-to-latest.sh /nix/store/m6h7zh8w6s52clnyskffj5lbkakqgywn-gcc-wrapper-9.2.0' | ||
96 | depsBuildBuild= | ||
97 | export depsBuildBuild | ||
98 | depsBuildBuildPropagated= | ||
99 | export depsBuildBuildPropagated | ||
100 | depsBuildTarget= | ||
101 | export depsBuildTarget | ||
102 | depsBuildTargetPropagated= | ||
103 | export depsBuildTargetPropagated | ||
104 | depsHostHost= | ||
105 | export depsHostHost | ||
106 | depsHostHostPropagated= | ||
107 | export depsHostHostPropagated | ||
108 | depsTargetTarget= | ||
109 | export depsTargetTarget | ||
110 | depsTargetTargetPropagated= | ||
111 | export depsTargetTargetPropagated | ||
112 | doCheck= | ||
113 | export doCheck | ||
114 | doInstallCheck= | ||
115 | export doInstallCheck | ||
116 | dontAddDisableDepTrack=1 | ||
117 | export dontAddDisableDepTrack | ||
118 | envHostHostHooks=([0]="ccWrapper_addCVars" [1]="bintoolsWrapper_addLDVars" [2]="addPythonPath" [3]="addPythonPath") | ||
119 | envHostTargetHooks=([0]="ccWrapper_addCVars" [1]="bintoolsWrapper_addLDVars" [2]="addPythonPath" [3]="addPythonPath") | ||
120 | envTargetTargetHooks=([0]="addPkgConfigPath") | ||
121 | fixupOutputHooks=([0]="if [ -z \"\${dontPatchELF-}\" ]; then patchELF \"\$prefix\"; fi" [1]="_makeSymlinksRelative" [2]="if [ -z \"\${dontGzipMan-}\" ]; then compressManPages \"\$prefix\"; fi" [3]="_doStrip" [4]="patchShebangsAuto" [5]="_pruneLibtoolFiles" [6]="if [[ -z \"\${noAuditTmpdir-}\" && -e \"\$prefix\" ]]; then auditTmpdir \"\$prefix\"; fi" [7]="_moveSbin" [8]="_moveLib64") | ||
122 | initialPath='/nix/store/x0jla3hpxrwz76hy9yckg1iyc9hns81k-coreutils-8.31 /nix/store/97vambzyvpvrd9wgrrw7i7svi0s8vny5-findutils-4.7.0 /nix/store/dqq1bvpi3g0h4v05111b3i0ymqj4v5x1-diffutils-3.7 /nix/store/p34p7ysy84579lndk7rbrz6zsfr03y71-gnused-4.8 /nix/store/b0vjq4r4sp9z4l2gbkc5dyyw5qfgyi3r-gnugrep-3.4 /nix/store/c8balm59sxfkw9ik1fqbkadsvjqhmbx4-gawk-5.0.1 /nix/store/g7dr83wnkx4gxa5ykcljc5jg04416z60-gnutar-1.32 /nix/store/kkvgr3avpp7yd5hzmc4syh43jqj03sgb-gzip-1.10 /nix/store/rw96psqzgyqrcd12qr6ivk9yiskjm3ab-bzip2-1.0.6.0.1-bin /nix/store/dp6y0n9cba79wwc54n1brg7xbjsq5hka-gnumake-4.2.1 /nix/store/hrpvwkjz04s9i4nmli843hyw9z4pwhww-bash-4.4-p23 /nix/store/xac1zfclx1xxgcd84vqb6hy3apl171n8-patch-2.7.6 /nix/store/mm0w8jc58rn01c4kz2n9jvwd6bibcihs-xz-5.2.4-bin' | ||
123 | name=furby | ||
124 | export name | ||
125 | nativeBuildInputs= | ||
126 | export nativeBuildInputs | ||
127 | out=/home/np/code/rust/furby/outputs/out | ||
128 | export out | ||
129 | outputBin=out | ||
130 | outputDev=out | ||
131 | outputDevdoc=REMOVE | ||
132 | outputDevman=out | ||
133 | outputDoc=out | ||
134 | outputInclude=out | ||
135 | outputInfo=out | ||
136 | outputLib=out | ||
137 | outputMan=out | ||
138 | outputs=out | ||
139 | export outputs | ||
140 | patches= | ||
141 | export patches | ||
142 | pkg=/nix/store/m6h7zh8w6s52clnyskffj5lbkakqgywn-gcc-wrapper-9.2.0 | ||
143 | pkgsBuildHost=([0]="/nix/store/71n1xcigc00w3z7yc836jqcx9cb2dys8-patchelf-0.9" [1]="/nix/store/mjjy30kxz775bhhi6j9phw81qh6dsbrf-move-docs.sh" [2]="/nix/store/kxw6q8v6isaqjm702d71n2421cxamq68-make-symlinks-relative.sh" [3]="/nix/store/rvg5a5nwa7cihpmbzlwzh931w3g4q108-compress-man-pages.sh" [4]="/nix/store/4ygqr4w06zwcd2kcxa6w3441jijv0pvx-strip.sh" [5]="/nix/store/g6hzqyjd3ricwbs0bbx4806fiwg15vnc-patch-shebangs.sh" [6]="/nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh" [7]="/nix/store/8zxndz5ag0p6s526c2xyllhk1nrn4c3i-audit-tmpdir.sh" [8]="/nix/store/aknix5zw9cj7hd1m3h1d6nnmncl1vkvn-multiple-outputs.sh" [9]="/nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh" [10]="/nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh" [11]="/nix/store/ngg1cv31c8c7bcm2n8ww4g06nq7s4zhm-set-source-date-epoch-to-latest.sh" [12]="/nix/store/m6h7zh8w6s52clnyskffj5lbkakqgywn-gcc-wrapper-9.2.0" [13]="/nix/store/n48b8n251dwwb04q7f3fwxdmirsakllz-binutils-wrapper-2.31.1") | ||
144 | pkgsHostTarget=([0]="/nix/store/603kisq28l3prqr92z5hffh7fmwwsc9f-elm-0.19.1" [1]="/nix/store/amj35xgl7bhifnih0mh39j8kbvsvg2xn-node__at_elm-tooling_slash_elm-language-server-1.6.3" [2]="/nix/store/hzxpv4ha44w9pg8ynkfsgjhi3kb13h27-elm-format-0.8.3" [3]="/nix/store/w3sh9aki5wrchcrq2wlg2xb394f8brh4-node_elm-oracle-1.1.1" [4]="/nix/store/3yl8y2fkc1wsyqm008is2pdw5dja2icy-node_elm-test-0.19.1-revision2" [5]="/nix/store/p60x886haaibkxg99mkaby1hyc9dal7w-cargo-1.41.0" [6]="/nix/store/zgqj5vbrw9lq6dyczd5ixrvq8hcbrn6r-rust-1.50.0-nightly-2020-12-22-bb1fbbf84" [7]="/nix/store/6dacwd7ldb2jazc218d11v2w2g55hba8-pkg-config-0.29.2" [8]="/nix/store/jzfmcy71n7msc1jq9bixg7hw8dghl94b-openssl-1.1.1g-dev" [9]="/nix/store/cfkappcqwnk1kmnnqqwxrg73fjdsa2am-openssl-1.1.1g-bin" [10]="/nix/store/0x3bf23q5lmdq77x5icr7c0ngvz25ms3-openssl-1.1.1g" [11]="/nix/store/397rckak3lmv21878y58r6iyjmiwsq9a-httpie-2.0.0" [12]="/nix/store/wh1jpkqaj1jina7cbnl8vb3mfly5yllg-python3.7-Pygments-2.5.2" [13]="/nix/store/hdi0fgnjp73hcw03fjxqjxmdx0f0792x-python3.7-docutils-0.16" [14]="/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6" [15]="/nix/store/r94aa2gj4drkhfvkm2p4ab6cblb6kxlq-python3-3.7.6" [16]="/nix/store/a6xvh7znlpdipwyncxz44sprfbvg15fa-python3.7-requests-2.22.0" [17]="/nix/store/7jlkn8dz8gsv3h18sr772x3v9n9ac10i-python3.7-urllib3-1.25.8" [18]="/nix/store/qyp3bcn7qq5lryqimd1ddlbbmd6r57zr-python3.7-pyOpenSSL-19.1.0-dev" [19]="/nix/store/pb90x5cn1znp2hpb8jdgnlamv9qwg7za-python3.7-cryptography-2.8-dev" [20]="/nix/store/0bngdpmsypycaqcgs4jwxvnpzvgw68sn-python3.7-packaging-20.1" [21]="/nix/store/4cv3k9hb741kq5f161pvzlfmnx0198sx-python3.7-pyparsing-2.4.6" [22]="/nix/store/qcg29y1va5hsk882sh68w683zgm7ma00-python3.7-six-1.14.0" [23]="/nix/store/qcg29y1va5hsk882sh68w683zgm7ma00-python3.7-six-1.14.0" [24]="/nix/store/awck465fagj1rl9xgvfg9dnclw8i4w04-python3.7-cffi-1.13.2-dev" [25]="/nix/store/jkdfz5x727qwbsc121xd95j01kx8c6v5-libffi-3.3-dev" [26]="/nix/store/j2fdy70n25zaws892dc95yhj0gfhdxg6-libffi-3.3" [27]="/nix/store/j35bi1s8azhbvcmalmmjfaxp1w1y3k6y-python3.7-pycparser-2.19" [28]="/nix/store/8wz0jhcc13q3j5cx54fkg0n95s4srr8q-python3.7-cffi-1.13.2" [29]="/nix/store/j120qpj9y4hnhch85mxy20hjzc4nfi33-python3.7-cryptography-2.8" [30]="/nix/store/faga777zw6vbvm3n63c7kyvwzzlvpikn-python3.7-pyasn1-0.4.8" [31]="/nix/store/py5py6kkf8yc3284i6v1zh1lraym2nr4-python3.7-idna-2.8" [32]="/nix/store/2qjbjrhx2lqh8jj2r5f40b46y54ic0zk-python3.7-pyOpenSSL-19.1.0" [33]="/nix/store/wmy1bka21pkcvfj24rdp883yvf12fkhs-python3.7-certifi-2019.11.28" [34]="/nix/store/zalgg8wkgnsda8l88n64wzdpmgrf5sd1-python3.7-pysocks-1.7.1" [35]="/nix/store/8dmmabfb8g3xcpsacnh4ipflkmai2465-python3.7-chardet-3.0.4" [36]="/nix/store/lhc4xx6amd80ynbhz0a0xfz5s16dq98c-python3.7-setuptools-44.0.0" [37]="/nix/store/1x1xwd4dlp6p2ddh40qnxiv22mmc8pa2-curl-7.70.0-dev" [38]="/nix/store/12xzgyza4hb47vk9gw61z90spr6712lm-nghttp2-1.40.0-dev" [39]="/nix/store/k9f38hll2169jqqj72g7wx16nxavpw04-nghttp2-1.40.0-bin" [40]="/nix/store/qkpfyg67ff3c0wjsy68a61rx01f1cc31-nghttp2-1.40.0-lib" [41]="/nix/store/fkbpg2lx585gr28fmcs610zk88jl9bd7-zlib-1.2.11-dev" [42]="/nix/store/msp4hm62a75pdidlc3s2ymma2g5hsjjk-zlib-1.2.11" [43]="/nix/store/gnqgyxda6la4gw6hjh4gpmmlcnjbqn2a-libkrb5-1.17-dev" [44]="/nix/store/bxjyac4385pw8cwrlgm7d18bmmndf4p5-libkrb5-1.17" [45]="/nix/store/6wqaybiqw6hcrlxwf9jrnjlci7kq0h6i-libssh2-1.9.0-dev" [46]="/nix/store/fnn6zvyds5sy7mgvl4h2qslmlsaf0dc8-libssh2-1.9.0" [47]="/nix/store/6vv8yimyaa41iwhwki9y79z8xrl9zwca-curl-7.70.0-bin" [48]="/nix/store/bcqgqdzmhd9smr51snjcy2q2cbrwy47j-curl-7.70.0" [49]="/nix/store/cb0msm7sk8032nm850rnv4b23j50bbmx-diesel-cli-1.4.0" [50]="/nix/store/3kbd6k80dqs6v01agxi0f2bgsq16hi13-mariadb-connector-c-3.1.5" [51]="/nix/store/88lhpbmlgpan34a8j5kgzb07sc0zlb5y-jq-1.6-dev" [52]="/nix/store/pdg3mr2vsm7g8sh0q3ysac9dw0pl3c1i-jq-1.6-bin" [53]="/nix/store/7cj4dviicvhga78l899arar4q5kggbc5-jq-1.6-lib") | ||
145 | postFixupHooks=([0]="_multioutPropagateDev") | ||
146 | postUnpackHooks=([0]="_updateSourceDateEpochFromSourceRoot") | ||
147 | preConfigureHooks=([0]="_multioutConfig") | ||
148 | preFixupHooks=([0]="_moveToShare" [1]="_multioutDocs" [2]="_multioutDevs") | ||
149 | prefix=/home/np/code/rust/furby/outputs/out | ||
150 | propagatedBuildDepFiles=([0]="propagated-build-build-deps" [1]="propagated-native-build-inputs" [2]="propagated-build-target-deps") | ||
151 | propagatedBuildInputs= | ||
152 | export propagatedBuildInputs | ||
153 | propagatedHostDepFiles=([0]="propagated-host-host-deps" [1]="propagated-build-inputs") | ||
154 | propagatedNativeBuildInputs= | ||
155 | export propagatedNativeBuildInputs | ||
156 | propagatedTargetDepFiles=([0]="propagated-target-target-deps") | ||
157 | shell=/nix/store/hrpvwkjz04s9i4nmli843hyw9z4pwhww-bash-4.4-p23/bin/bash | ||
158 | export shell | ||
159 | src=./. | ||
160 | export src | ||
161 | stdenv=/nix/store/sm7kk5n84vaisqvhk1yfsjqls50j8s0m-stdenv-linux | ||
162 | export stdenv | ||
163 | strictDeps= | ||
164 | export strictDeps | ||
165 | system=x86_64-linux | ||
166 | export system | ||
167 | unpackCmdHooks=([0]="_defaultUnpack") | ||
168 | PATH="$PATH:$nix_saved_PATH" | ||
169 | _activatePkgs () | ||
170 | { | ||
171 | local -i hostOffset targetOffset; | ||
172 | local pkg; | ||
173 | for hostOffset in "${allPlatOffsets[@]}"; | ||
174 | do | ||
175 | local pkgsVar="${pkgAccumVarVars[$hostOffset + 1]}"; | ||
176 | for targetOffset in "${allPlatOffsets[@]}"; | ||
177 | do | ||
178 | (( "$hostOffset" <= "$targetOffset" )) || continue; | ||
179 | local pkgsRef="${pkgsVar}[$targetOffset - $hostOffset]"; | ||
180 | local pkgsSlice="${!pkgsRef}[@]"; | ||
181 | for pkg in ${!pkgsSlice+"${!pkgsSlice}"}; | ||
182 | do | ||
183 | activatePackage "$pkg" "$hostOffset" "$targetOffset"; | ||
184 | done; | ||
185 | done; | ||
186 | done | ||
187 | } | ||
188 | _addRpathPrefix () | ||
189 | { | ||
190 | if [ "${NIX_NO_SELF_RPATH:-0}" != 1 ]; then | ||
191 | export NIX_LDFLAGS="-rpath $1/lib ${NIX_LDFLAGS-}"; | ||
192 | if [ -n "${NIX_LIB64_IN_SELF_RPATH:-}" ]; then | ||
193 | export NIX_LDFLAGS="-rpath $1/lib64 ${NIX_LDFLAGS-}"; | ||
194 | fi; | ||
195 | if [ -n "${NIX_LIB32_IN_SELF_RPATH:-}" ]; then | ||
196 | export NIX_LDFLAGS="-rpath $1/lib32 ${NIX_LDFLAGS-}"; | ||
197 | fi; | ||
198 | fi | ||
199 | } | ||
200 | _addToEnv () | ||
201 | { | ||
202 | local -i depHostOffset depTargetOffset; | ||
203 | local pkg; | ||
204 | for depHostOffset in "${allPlatOffsets[@]}"; | ||
205 | do | ||
206 | local hookVar="${pkgHookVarVars[$depHostOffset + 1]}"; | ||
207 | local pkgsVar="${pkgAccumVarVars[$depHostOffset + 1]}"; | ||
208 | for depTargetOffset in "${allPlatOffsets[@]}"; | ||
209 | do | ||
210 | (( "$depHostOffset" <= "$depTargetOffset" )) || continue; | ||
211 | local hookRef="${hookVar}[$depTargetOffset - $depHostOffset]"; | ||
212 | if [[ -z "${strictDeps-}" ]]; then | ||
213 | local visitedPkgs=""; | ||
214 | for pkg in ${pkgsBuildBuild+"${pkgsBuildBuild[@]}"} ${pkgsBuildHost+"${pkgsBuildHost[@]}"} ${pkgsBuildTarget+"${pkgsBuildTarget[@]}"} ${pkgsHostHost+"${pkgsHostHost[@]}"} ${pkgsHostTarget+"${pkgsHostTarget[@]}"} ${pkgsTargetTarget+"${pkgsTargetTarget[@]}"}; | ||
215 | do | ||
216 | if [[ "$visitedPkgs" = *"$pkg"* ]]; then | ||
217 | continue; | ||
218 | fi; | ||
219 | runHook "${!hookRef}" "$pkg"; | ||
220 | visitedPkgs+=" $pkg"; | ||
221 | done; | ||
222 | else | ||
223 | local pkgsRef="${pkgsVar}[$depTargetOffset - $depHostOffset]"; | ||
224 | local pkgsSlice="${!pkgsRef}[@]"; | ||
225 | for pkg in ${!pkgsSlice+"${!pkgsSlice}"}; | ||
226 | do | ||
227 | runHook "${!hookRef}" "$pkg"; | ||
228 | done; | ||
229 | fi; | ||
230 | done; | ||
231 | done | ||
232 | } | ||
233 | _allFlags () | ||
234 | { | ||
235 | for varName in $(awk 'BEGIN { for (v in ENVIRON) if (v ~ /^[a-z][a-zA-Z0-9_]*$/) print v }'); | ||
236 | do | ||
237 | if (( "${NIX_DEBUG:-0}" >= 1 )); then | ||
238 | printf "@%s@ -> %q\n" "${varName}" "${!varName}"; | ||
239 | fi; | ||
240 | args+=("--subst-var" "$varName"); | ||
241 | done | ||
242 | } | ||
243 | _assignFirst () | ||
244 | { | ||
245 | local varName="$1"; | ||
246 | local REMOVE=REMOVE; | ||
247 | shift; | ||
248 | while (( $# )); do | ||
249 | if [ -n "${!1-}" ]; then | ||
250 | eval "${varName}"="$1"; | ||
251 | return; | ||
252 | fi; | ||
253 | shift; | ||
254 | done; | ||
255 | echo "Error: _assignFirst found no valid variant!"; | ||
256 | return 1 | ||
257 | } | ||
258 | _callImplicitHook () | ||
259 | { | ||
260 | local def="$1"; | ||
261 | local hookName="$2"; | ||
262 | if declare -F "$hookName" > /dev/null; then | ||
263 | "$hookName"; | ||
264 | else | ||
265 | if type -p "$hookName" > /dev/null; then | ||
266 | source "$hookName"; | ||
267 | else | ||
268 | if [ -n "${!hookName:-}" ]; then | ||
269 | eval "${!hookName}"; | ||
270 | else | ||
271 | return "$def"; | ||
272 | fi; | ||
273 | fi; | ||
274 | fi | ||
275 | } | ||
276 | _defaultUnpack () | ||
277 | { | ||
278 | local fn="$1"; | ||
279 | if [ -d "$fn" ]; then | ||
280 | cp -pr --reflink=auto -- "$fn" "$(stripHash "$fn")"; | ||
281 | else | ||
282 | case "$fn" in | ||
283 | *.tar.xz | *.tar.lzma | *.txz) | ||
284 | xz -d < "$fn" | tar xf - | ||
285 | ;; | ||
286 | *.tar | *.tar.* | *.tgz | *.tbz2 | *.tbz) | ||
287 | tar xf "$fn" | ||
288 | ;; | ||
289 | *) | ||
290 | return 1 | ||
291 | ;; | ||
292 | esac; | ||
293 | fi | ||
294 | } | ||
295 | _doStrip () | ||
296 | { | ||
297 | local -ra flags=(dontStripHost dontStripTarget); | ||
298 | local -ra stripCmds=(STRIP TARGET_STRIP); | ||
299 | if [[ "${STRIP-}" == "${TARGET_STRIP-}" ]]; then | ||
300 | dontStripTarget+=1; | ||
301 | fi; | ||
302 | local i; | ||
303 | for i in ${!stripCmds[@]}; | ||
304 | do | ||
305 | local -n flag="${flags[$i]}"; | ||
306 | local -n stripCmd="${stripCmds[$i]}"; | ||
307 | if [[ -n "${dontStrip-}" || -n "${flag-}" ]] || ! type -f "${stripCmd-}" 2> /dev/null; then | ||
308 | continue; | ||
309 | fi; | ||
310 | stripDebugList=${stripDebugList:-lib lib32 lib64 libexec bin sbin}; | ||
311 | if [ -n "$stripDebugList" ]; then | ||
312 | stripDirs "$stripCmd" "$stripDebugList" "${stripDebugFlags:--S}"; | ||
313 | fi; | ||
314 | stripAllList=${stripAllList:-}; | ||
315 | if [ -n "$stripAllList" ]; then | ||
316 | stripDirs "$stripCmd" "$stripAllList" "${stripAllFlags:--s}"; | ||
317 | fi; | ||
318 | done | ||
319 | } | ||
320 | _eval () | ||
321 | { | ||
322 | if declare -F "$1" > /dev/null 2>&1; then | ||
323 | "$@"; | ||
324 | else | ||
325 | eval "$1"; | ||
326 | fi | ||
327 | } | ||
328 | _makeSymlinksRelative () | ||
329 | { | ||
330 | local symlinkTarget; | ||
331 | if [ -n "${dontRewriteSymlinks-}" ]; then | ||
332 | return 0; | ||
333 | fi; | ||
334 | while IFS= read -r -d '' f; do | ||
335 | symlinkTarget=$(readlink "$f"); | ||
336 | if [[ "$symlinkTarget"/ != "$prefix"/* ]]; then | ||
337 | continue; | ||
338 | fi; | ||
339 | if [ ! -e "$symlinkTarget" ]; then | ||
340 | echo "the symlink $f is broken, it points to $symlinkTarget (which is missing)"; | ||
341 | fi; | ||
342 | echo "rewriting symlink $f to be relative to $prefix"; | ||
343 | ln -snrf "$symlinkTarget" "$f"; | ||
344 | done < <(find $prefix -type l -print0) | ||
345 | } | ||
346 | _moveLib64 () | ||
347 | { | ||
348 | if [ "${dontMoveLib64-}" = 1 ]; then | ||
349 | return; | ||
350 | fi; | ||
351 | if [ ! -e "$prefix/lib64" -o -L "$prefix/lib64" ]; then | ||
352 | return; | ||
353 | fi; | ||
354 | echo "moving $prefix/lib64/* to $prefix/lib"; | ||
355 | mkdir -p $prefix/lib; | ||
356 | shopt -s dotglob; | ||
357 | for i in $prefix/lib64/*; | ||
358 | do | ||
359 | mv --no-clobber "$i" $prefix/lib; | ||
360 | done; | ||
361 | shopt -u dotglob; | ||
362 | rmdir $prefix/lib64; | ||
363 | ln -s lib $prefix/lib64 | ||
364 | } | ||
365 | _moveSbin () | ||
366 | { | ||
367 | if [ "${dontMoveSbin-}" = 1 ]; then | ||
368 | return; | ||
369 | fi; | ||
370 | if [ ! -e "$prefix/sbin" -o -L "$prefix/sbin" ]; then | ||
371 | return; | ||
372 | fi; | ||
373 | echo "moving $prefix/sbin/* to $prefix/bin"; | ||
374 | mkdir -p $prefix/bin; | ||
375 | shopt -s dotglob; | ||
376 | for i in $prefix/sbin/*; | ||
377 | do | ||
378 | mv "$i" $prefix/bin; | ||
379 | done; | ||
380 | shopt -u dotglob; | ||
381 | rmdir $prefix/sbin; | ||
382 | ln -s bin $prefix/sbin | ||
383 | } | ||
384 | _moveToShare () | ||
385 | { | ||
386 | forceShare=${forceShare:=man doc info}; | ||
387 | if [ -z "$forceShare" -o -z "$out" ]; then | ||
388 | return; | ||
389 | fi; | ||
390 | for d in $forceShare; | ||
391 | do | ||
392 | if [ -d "$out/$d" ]; then | ||
393 | if [ -d "$out/share/$d" ]; then | ||
394 | echo "both $d/ and share/$d/ exist!"; | ||
395 | else | ||
396 | echo "moving $out/$d to $out/share/$d"; | ||
397 | mkdir -p $out/share; | ||
398 | mv $out/$d $out/share/; | ||
399 | fi; | ||
400 | fi; | ||
401 | done | ||
402 | } | ||
403 | _multioutConfig () | ||
404 | { | ||
405 | if [ "$outputs" = "out" ] || [ -z "${setOutputFlags-1}" ]; then | ||
406 | return; | ||
407 | fi; | ||
408 | if [ -z "$shareDocName" ]; then | ||
409 | local confScript="$configureScript"; | ||
410 | if [ -z "$confScript" ] && [ -x ./configure ]; then | ||
411 | confScript=./configure; | ||
412 | fi; | ||
413 | if [ -f "$confScript" ]; then | ||
414 | local shareDocName="$(sed -n "s/^PACKAGE_TARNAME='\(.*\)'$/\1/p" < "$confScript")"; | ||
415 | fi; | ||
416 | if [ -n "$shareDocName" ] || echo "$shareDocName" | grep -q '[^a-zA-Z0-9_-]'; then | ||
417 | shareDocName="$(echo "$name" | sed 's/-[^a-zA-Z].*//')"; | ||
418 | fi; | ||
419 | fi; | ||
420 | 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 $configureFlags"; | ||
421 | installFlags=" pkgconfigdir=${!outputDev}/lib/pkgconfig m4datadir=${!outputDev}/share/aclocal aclocaldir=${!outputDev}/share/aclocal $installFlags" | ||
422 | } | ||
423 | _multioutDevs () | ||
424 | { | ||
425 | if [ "$outputs" = "out" ] || [ -z "${moveToDev-1}" ]; then | ||
426 | return; | ||
427 | fi; | ||
428 | moveToOutput include "${!outputInclude}"; | ||
429 | moveToOutput lib/pkgconfig "${!outputDev}"; | ||
430 | moveToOutput share/pkgconfig "${!outputDev}"; | ||
431 | moveToOutput lib/cmake "${!outputDev}"; | ||
432 | moveToOutput share/aclocal "${!outputDev}"; | ||
433 | for f in "${!outputDev}"/{lib,share}/pkgconfig/*.pc; | ||
434 | do | ||
435 | echo "Patching '$f' includedir to output ${!outputInclude}"; | ||
436 | sed -i "/^includedir=/s,=\${prefix},=${!outputInclude}," "$f"; | ||
437 | done | ||
438 | } | ||
439 | _multioutDocs () | ||
440 | { | ||
441 | local REMOVE=REMOVE; | ||
442 | moveToOutput share/info "${!outputInfo}"; | ||
443 | moveToOutput share/doc "${!outputDoc}"; | ||
444 | moveToOutput share/gtk-doc "${!outputDevdoc}"; | ||
445 | moveToOutput share/devhelp/books "${!outputDevdoc}"; | ||
446 | moveToOutput share/man "${!outputMan}"; | ||
447 | moveToOutput share/man/man3 "${!outputDevman}" | ||
448 | } | ||
449 | _multioutPropagateDev () | ||
450 | { | ||
451 | if [ "$outputs" = "out" ]; then | ||
452 | return; | ||
453 | fi; | ||
454 | local outputFirst; | ||
455 | for outputFirst in $outputs; | ||
456 | do | ||
457 | break; | ||
458 | done; | ||
459 | local propagaterOutput="$outputDev"; | ||
460 | if [ -z "$propagaterOutput" ]; then | ||
461 | propagaterOutput="$outputFirst"; | ||
462 | fi; | ||
463 | if [ -z "${propagatedBuildOutputs+1}" ]; then | ||
464 | local po_dirty="$outputBin $outputInclude $outputLib"; | ||
465 | set +o pipefail; | ||
466 | propagatedBuildOutputs=`echo "$po_dirty" | tr -s ' ' '\n' | grep -v -F "$propagaterOutput" | sort -u | tr '\n' ' ' `; | ||
467 | set -o pipefail; | ||
468 | fi; | ||
469 | if [ -z "$propagatedBuildOutputs" ]; then | ||
470 | return; | ||
471 | fi; | ||
472 | mkdir -p "${!propagaterOutput}"/nix-support; | ||
473 | for output in $propagatedBuildOutputs; | ||
474 | do | ||
475 | echo -n " ${!output}" >> "${!propagaterOutput}"/nix-support/propagated-build-inputs; | ||
476 | done | ||
477 | } | ||
478 | _overrideFirst () | ||
479 | { | ||
480 | if [ -z "${!1-}" ]; then | ||
481 | _assignFirst "$@"; | ||
482 | fi | ||
483 | } | ||
484 | _pruneLibtoolFiles () | ||
485 | { | ||
486 | if [ "${dontPruneLibtoolFiles-}" ] || [ ! -e "$prefix" ]; then | ||
487 | return; | ||
488 | fi; | ||
489 | 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" \; | ||
490 | } | ||
491 | _updateSourceDateEpochFromSourceRoot () | ||
492 | { | ||
493 | if [ -n "$sourceRoot" ]; then | ||
494 | updateSourceDateEpoch "$sourceRoot"; | ||
495 | fi | ||
496 | } | ||
497 | activatePackage () | ||
498 | { | ||
499 | local pkg="$1"; | ||
500 | local -ri hostOffset="$2"; | ||
501 | local -ri targetOffset="$3"; | ||
502 | (( "$hostOffset" <= "$targetOffset" )) || exit -1; | ||
503 | if [ -f "$pkg" ]; then | ||
504 | source "$pkg"; | ||
505 | fi; | ||
506 | if [[ ( -z "${strictDeps-}" || "$hostOffset" -le -1 ) && -d "$pkg/bin" ]]; then | ||
507 | addToSearchPath _PATH "$pkg/bin"; | ||
508 | fi; | ||
509 | if [[ "$hostOffset" -eq 0 && -d "$pkg/bin" ]]; then | ||
510 | addToSearchPath _HOST_PATH "$pkg/bin"; | ||
511 | fi; | ||
512 | if [[ -f "$pkg/nix-support/setup-hook" ]]; then | ||
513 | source "$pkg/nix-support/setup-hook"; | ||
514 | fi | ||
515 | } | ||
516 | addEnvHooks () | ||
517 | { | ||
518 | local depHostOffset="$1"; | ||
519 | shift; | ||
520 | local pkgHookVarsSlice="${pkgHookVarVars[$depHostOffset + 1]}[@]"; | ||
521 | local pkgHookVar; | ||
522 | for pkgHookVar in "${!pkgHookVarsSlice}"; | ||
523 | do | ||
524 | eval "${pkgHookVar}s"'+=("$@")'; | ||
525 | done | ||
526 | } | ||
527 | addPkgConfigPath () | ||
528 | { | ||
529 | addToSearchPath PKG_CONFIG_PATH $1/lib/pkgconfig; | ||
530 | addToSearchPath PKG_CONFIG_PATH $1/share/pkgconfig | ||
531 | } | ||
532 | addPythonPath () | ||
533 | { | ||
534 | addToSearchPathWithCustomDelimiter : PYTHONPATH $1/lib/python3.7/site-packages | ||
535 | } | ||
536 | addToSearchPath () | ||
537 | { | ||
538 | addToSearchPathWithCustomDelimiter ":" "$@" | ||
539 | } | ||
540 | addToSearchPathWithCustomDelimiter () | ||
541 | { | ||
542 | local delimiter="$1"; | ||
543 | local varName="$2"; | ||
544 | local dir="$3"; | ||
545 | if [ -d "$dir" ]; then | ||
546 | export "${varName}=${!varName:+${!varName}${delimiter}}${dir}"; | ||
547 | fi | ||
548 | } | ||
549 | auditTmpdir () | ||
550 | { | ||
551 | local dir="$1"; | ||
552 | [ -e "$dir" ] || return 0; | ||
553 | header "checking for references to $TMPDIR/ in $dir..."; | ||
554 | local i; | ||
555 | while IFS= read -r -d '' i; do | ||
556 | if [[ "$i" =~ .build-id ]]; then | ||
557 | continue; | ||
558 | fi; | ||
559 | if isELF "$i"; then | ||
560 | if { | ||
561 | printf :; | ||
562 | patchelf --print-rpath "$i" | ||
563 | } | grep -q -F ":$TMPDIR/"; then | ||
564 | echo "RPATH of binary $i contains a forbidden reference to $TMPDIR/"; | ||
565 | exit 1; | ||
566 | fi; | ||
567 | fi; | ||
568 | if isScript "$i"; then | ||
569 | if [ -e "$(dirname "$i")/.$(basename "$i")-wrapped" ]; then | ||
570 | if grep -q -F "$TMPDIR/" "$i"; then | ||
571 | echo "wrapper script $i contains a forbidden reference to $TMPDIR/"; | ||
572 | exit 1; | ||
573 | fi; | ||
574 | fi; | ||
575 | fi; | ||
576 | done < <(find "$dir" -type f -print0); | ||
577 | stopNest | ||
578 | } | ||
579 | bintoolsWrapper_addLDVars () | ||
580 | { | ||
581 | local role_post role_pre; | ||
582 | getHostRoleEnvHook; | ||
583 | if [[ -d "$1/lib64" && ! -L "$1/lib64" ]]; then | ||
584 | export NIX_${role_pre}LDFLAGS+=" -L$1/lib64"; | ||
585 | fi; | ||
586 | if [[ -d "$1/lib" ]]; then | ||
587 | local -a glob=($1/lib/lib*); | ||
588 | if [ "${#glob[*]}" -gt 0 ]; then | ||
589 | export NIX_${role_pre}LDFLAGS+=" -L$1/lib"; | ||
590 | fi; | ||
591 | fi | ||
592 | } | ||
593 | buildPhase () | ||
594 | { | ||
595 | runHook preBuild; | ||
596 | : ${makeFlags=}; | ||
597 | if [[ -z "$makeFlags" && -z "${makefile:-}" && ! ( -e Makefile || -e makefile || -e GNUmakefile ) ]]; then | ||
598 | echo "no Makefile, doing nothing"; | ||
599 | else | ||
600 | foundMakefile=1; | ||
601 | local flagsArray=(${enableParallelBuilding:+-j${NIX_BUILD_CORES} -l${NIX_BUILD_CORES}} SHELL=$SHELL $makeFlags ${makeFlagsArray+"${makeFlagsArray[@]}"} $buildFlags ${buildFlagsArray+"${buildFlagsArray[@]}"}); | ||
602 | echoCmd 'build flags' "${flagsArray[@]}"; | ||
603 | make ${makefile:+-f $makefile} "${flagsArray[@]}"; | ||
604 | unset flagsArray; | ||
605 | fi; | ||
606 | runHook postBuild | ||
607 | } | ||
608 | ccWrapper_addCVars () | ||
609 | { | ||
610 | local role_post role_pre; | ||
611 | getHostRoleEnvHook; | ||
612 | if [ -d "$1/include" ]; then | ||
613 | export NIX_${role_pre}CFLAGS_COMPILE+=" -isystem $1/include"; | ||
614 | fi; | ||
615 | if [ -d "$1/Library/Frameworks" ]; then | ||
616 | export NIX_${role_pre}CFLAGS_COMPILE+=" -iframework $1/Library/Frameworks"; | ||
617 | fi | ||
618 | } | ||
619 | checkPhase () | ||
620 | { | ||
621 | runHook preCheck; | ||
622 | if [[ -z "${foundMakefile:-}" ]]; then | ||
623 | echo "no Makefile or custom buildPhase, doing nothing"; | ||
624 | runHook postCheck; | ||
625 | return; | ||
626 | fi; | ||
627 | if [[ -z "${checkTarget:-}" ]]; then | ||
628 | if make -n ${makefile:+-f $makefile} check > /dev/null 2>&1; then | ||
629 | checkTarget=check; | ||
630 | else | ||
631 | if make -n ${makefile:+-f $makefile} test > /dev/null 2>&1; then | ||
632 | checkTarget=test; | ||
633 | fi; | ||
634 | fi; | ||
635 | fi; | ||
636 | if [[ -z "${checkTarget:-}" ]]; then | ||
637 | echo "no check/test target in ${makefile:-Makefile}, doing nothing"; | ||
638 | else | ||
639 | local flagsArray=(${enableParallelChecking:+-j${NIX_BUILD_CORES} -l${NIX_BUILD_CORES}} SHELL=$SHELL $makeFlags ${makeFlagsArray+"${makeFlagsArray[@]}"} ${checkFlags:-VERBOSE=y} ${checkFlagsArray+"${checkFlagsArray[@]}"} ${checkTarget}); | ||
640 | echoCmd 'check flags' "${flagsArray[@]}"; | ||
641 | make ${makefile:+-f $makefile} "${flagsArray[@]}"; | ||
642 | unset flagsArray; | ||
643 | fi; | ||
644 | runHook postCheck | ||
645 | } | ||
646 | closeNest () | ||
647 | { | ||
648 | true | ||
649 | } | ||
650 | compressManPages () | ||
651 | { | ||
652 | local dir="$1"; | ||
653 | if [ -L "$dir"/share ] || [ -L "$dir"/share/man ] || [ ! -d "$dir/share/man" ]; then | ||
654 | return; | ||
655 | fi; | ||
656 | echo "gzipping man pages under $dir/share/man/"; | ||
657 | find "$dir"/share/man/ -type f -a '!' -regex '.*\.\(bz2\|gz\)$' -print0 | while IFS= read -r -d '' f; do | ||
658 | if gzip -c -n "$f" > "$f".gz; then | ||
659 | rm "$f"; | ||
660 | else | ||
661 | rm "$f".gz; | ||
662 | fi; | ||
663 | done; | ||
664 | find "$dir"/share/man/ -type l -a '!' -regex '.*\.\(bz2\|gz\)$' -print0 | while IFS= read -r -d '' f; do | ||
665 | local target; | ||
666 | target="$(readlink -f "$f")"; | ||
667 | if [ -f "$target".gz ]; then | ||
668 | ln -sf "$target".gz "$f".gz && rm "$f"; | ||
669 | fi; | ||
670 | done | ||
671 | } | ||
672 | configurePhase () | ||
673 | { | ||
674 | runHook preConfigure; | ||
675 | : ${configureScript=}; | ||
676 | : ${configureFlags=}; | ||
677 | if [[ -z "$configureScript" && -x ./configure ]]; then | ||
678 | configureScript=./configure; | ||
679 | fi; | ||
680 | if [ -z "${dontFixLibtool:-}" ]; then | ||
681 | local i; | ||
682 | find . -iname "ltmain.sh" -print0 | while IFS='' read -r -d '' i; do | ||
683 | echo "fixing libtool script $i"; | ||
684 | fixLibtool "$i"; | ||
685 | done; | ||
686 | fi; | ||
687 | if [[ -z "${dontAddPrefix:-}" && -n "$prefix" ]]; then | ||
688 | configureFlags="${prefixKey:---prefix=}$prefix $configureFlags"; | ||
689 | fi; | ||
690 | if [ -z "${dontAddDisableDepTrack:-}" ]; then | ||
691 | if [ -f "$configureScript" ] && grep -q dependency-tracking "$configureScript"; then | ||
692 | configureFlags="--disable-dependency-tracking $configureFlags"; | ||
693 | fi; | ||
694 | fi; | ||
695 | if [ -z "${dontDisableStatic:-}" ]; then | ||
696 | if [ -f "$configureScript" ] && grep -q enable-static "$configureScript"; then | ||
697 | configureFlags="--disable-static $configureFlags"; | ||
698 | fi; | ||
699 | fi; | ||
700 | if [ -n "$configureScript" ]; then | ||
701 | local flagsArray=($configureFlags ${configureFlagsArray+"${configureFlagsArray[@]}"}); | ||
702 | echoCmd 'configure flags' "${flagsArray[@]}"; | ||
703 | $configureScript "${flagsArray[@]}"; | ||
704 | unset flagsArray; | ||
705 | else | ||
706 | echo "no configure script, doing nothing"; | ||
707 | fi; | ||
708 | runHook postConfigure | ||
709 | } | ||
710 | consumeEntire () | ||
711 | { | ||
712 | if IFS='' read -r -N 0 $1; then | ||
713 | echo "consumeEntire(): ERROR: Input null bytes, won't process" 1>&2; | ||
714 | return 1; | ||
715 | fi | ||
716 | } | ||
717 | distPhase () | ||
718 | { | ||
719 | runHook preDist; | ||
720 | local flagsArray=($distFlags ${distFlagsArray+"${distFlagsArray[@]}"} ${distTarget:-dist}); | ||
721 | echo 'dist flags: %q' "${flagsArray[@]}"; | ||
722 | make ${makefile:+-f $makefile} "${flagsArray[@]}"; | ||
723 | if [ "${dontCopyDist:-0}" != 1 ]; then | ||
724 | mkdir -p "$out/tarballs"; | ||
725 | cp -pvd ${tarballs:-*.tar.gz} "$out/tarballs"; | ||
726 | fi; | ||
727 | runHook postDist | ||
728 | } | ||
729 | dumpVars () | ||
730 | { | ||
731 | if [ "${noDumpEnvVars:-0}" != 1 ]; then | ||
732 | export > "$NIX_BUILD_TOP/env-vars" || true; | ||
733 | fi | ||
734 | } | ||
735 | echoCmd () | ||
736 | { | ||
737 | printf "%s:" "$1"; | ||
738 | shift; | ||
739 | printf ' %q' "$@"; | ||
740 | echo | ||
741 | } | ||
742 | exitHandler () | ||
743 | { | ||
744 | exitCode="$?"; | ||
745 | set +e; | ||
746 | if [ -n "${showBuildStats:-}" ]; then | ||
747 | times > "$NIX_BUILD_TOP/.times"; | ||
748 | local -a times=($(cat "$NIX_BUILD_TOP/.times")); | ||
749 | echo "build time elapsed: " "${times[@]}"; | ||
750 | fi; | ||
751 | if (( "$exitCode" != 0 )); then | ||
752 | runHook failureHook; | ||
753 | if [ -n "${succeedOnFailure:-}" ]; then | ||
754 | echo "build failed with exit code $exitCode (ignored)"; | ||
755 | mkdir -p "$out/nix-support"; | ||
756 | printf "%s" "$exitCode" > "$out/nix-support/failed"; | ||
757 | exit 0; | ||
758 | fi; | ||
759 | else | ||
760 | runHook exitHook; | ||
761 | fi; | ||
762 | exit "$exitCode" | ||
763 | } | ||
764 | findInputs () | ||
765 | { | ||
766 | local -r pkg="$1"; | ||
767 | local -ri hostOffset="$2"; | ||
768 | local -ri targetOffset="$3"; | ||
769 | (( "$hostOffset" <= "$targetOffset" )) || exit -1; | ||
770 | local varVar="${pkgAccumVarVars[$hostOffset + 1]}"; | ||
771 | local varRef="$varVar[\$targetOffset - \$hostOffset]"; | ||
772 | local var="${!varRef}"; | ||
773 | unset -v varVar varRef; | ||
774 | local varSlice="$var[*]"; | ||
775 | case "${!varSlice-}" in | ||
776 | *" $pkg "*) | ||
777 | return 0 | ||
778 | ;; | ||
779 | esac; | ||
780 | unset -v varSlice; | ||
781 | eval "$var"'+=("$pkg")'; | ||
782 | if ! [ -e "$pkg" ]; then | ||
783 | echo "build input $pkg does not exist" 1>&2; | ||
784 | exit 1; | ||
785 | fi; | ||
786 | local -i mapOffsetResult; | ||
787 | function mapOffset () | ||
788 | { | ||
789 | local -ri inputOffset="$1"; | ||
790 | if (( "$inputOffset" <= 0 )); then | ||
791 | local -ri outputOffset="$inputOffset + $hostOffset"; | ||
792 | else | ||
793 | local -ri outputOffset="$inputOffset - 1 + $targetOffset"; | ||
794 | fi; | ||
795 | mapOffsetResult="$outputOffset" | ||
796 | }; | ||
797 | local -i relHostOffset; | ||
798 | for relHostOffset in "${allPlatOffsets[@]}"; | ||
799 | do | ||
800 | local files="${propagatedDepFilesVars[$relHostOffset + 1]}"; | ||
801 | mapOffset relHostOffset; | ||
802 | local -i hostOffsetNext="$mapOffsetResult"; | ||
803 | [[ "${allPlatOffsets[*]}" = *"$hostOffsetNext"* ]] || continue; | ||
804 | local -i relTargetOffset; | ||
805 | for relTargetOffset in "${allPlatOffsets[@]}"; | ||
806 | do | ||
807 | (( "$relHostOffset" <= "$relTargetOffset" )) || continue; | ||
808 | local fileRef="${files}[$relTargetOffset - $relHostOffset]"; | ||
809 | local file="${!fileRef}"; | ||
810 | unset -v fileRef; | ||
811 | mapOffset relTargetOffset; | ||
812 | local -i targetOffsetNext="$mapOffsetResult"; | ||
813 | [[ "${allPlatOffsets[*]}" = *"$targetOffsetNext"* ]] || continue; | ||
814 | [[ -f "$pkg/nix-support/$file" ]] || continue; | ||
815 | local pkgNext; | ||
816 | read -r -d '' pkgNext < "$pkg/nix-support/$file" || true; | ||
817 | for pkgNext in $pkgNext; | ||
818 | do | ||
819 | findInputs "$pkgNext" "$hostOffsetNext" "$targetOffsetNext"; | ||
820 | done; | ||
821 | done; | ||
822 | done | ||
823 | } | ||
824 | fixLibtool () | ||
825 | { | ||
826 | sed -i -e 's^eval sys_lib_.*search_path=.*^^' "$1" | ||
827 | } | ||
828 | fixupPhase () | ||
829 | { | ||
830 | local output; | ||
831 | for output in $outputs; | ||
832 | do | ||
833 | if [ -e "${!output}" ]; then | ||
834 | chmod -R u+w "${!output}"; | ||
835 | fi; | ||
836 | done; | ||
837 | runHook preFixup; | ||
838 | local output; | ||
839 | for output in $outputs; | ||
840 | do | ||
841 | prefix="${!output}" runHook fixupOutput; | ||
842 | done; | ||
843 | declare -ra flatVars=(depsBuildBuildPropagated propagatedNativeBuildInputs depsBuildTargetPropagated depsHostHostPropagated propagatedBuildInputs depsTargetTargetPropagated); | ||
844 | declare -ra flatFiles=("${propagatedBuildDepFiles[@]}" "${propagatedHostDepFiles[@]}" "${propagatedTargetDepFiles[@]}"); | ||
845 | local propagatedInputsIndex; | ||
846 | for propagatedInputsIndex in "${!flatVars[@]}"; | ||
847 | do | ||
848 | local propagatedInputsSlice="${flatVars[$propagatedInputsIndex]}[@]"; | ||
849 | local propagatedInputsFile="${flatFiles[$propagatedInputsIndex]}"; | ||
850 | [[ -n "${!propagatedInputsSlice}" ]] || continue; | ||
851 | mkdir -p "${!outputDev}/nix-support"; | ||
852 | printWords ${!propagatedInputsSlice} > "${!outputDev}/nix-support/$propagatedInputsFile"; | ||
853 | done; | ||
854 | if [ -n "${setupHook:-}" ]; then | ||
855 | mkdir -p "${!outputDev}/nix-support"; | ||
856 | substituteAll "$setupHook" "${!outputDev}/nix-support/setup-hook"; | ||
857 | fi; | ||
858 | if [ -n "${setupHooks:-}" ]; then | ||
859 | mkdir -p "${!outputDev}/nix-support"; | ||
860 | local hook; | ||
861 | for hook in $setupHooks; | ||
862 | do | ||
863 | local content; | ||
864 | consumeEntire content < "$hook"; | ||
865 | substituteAllStream content "file '$hook'" >> "${!outputDev}/nix-support/setup-hook"; | ||
866 | unset -v content; | ||
867 | done; | ||
868 | unset -v hook; | ||
869 | fi; | ||
870 | if [ -n "${propagatedUserEnvPkgs:-}" ]; then | ||
871 | mkdir -p "${!outputBin}/nix-support"; | ||
872 | printWords $propagatedUserEnvPkgs > "${!outputBin}/nix-support/propagated-user-env-packages"; | ||
873 | fi; | ||
874 | runHook postFixup | ||
875 | } | ||
876 | genericBuild () | ||
877 | { | ||
878 | if [ -f "${buildCommandPath:-}" ]; then | ||
879 | source "$buildCommandPath"; | ||
880 | return; | ||
881 | fi; | ||
882 | if [ -n "${buildCommand:-}" ]; then | ||
883 | eval "$buildCommand"; | ||
884 | return; | ||
885 | fi; | ||
886 | if [ -z "${phases:-}" ]; then | ||
887 | phases="${prePhases:-} unpackPhase patchPhase ${preConfigurePhases:-} configurePhase ${preBuildPhases:-} buildPhase checkPhase ${preInstallPhases:-} installPhase ${preFixupPhases:-} fixupPhase installCheckPhase ${preDistPhases:-} distPhase ${postPhases:-}"; | ||
888 | fi; | ||
889 | for curPhase in $phases; | ||
890 | do | ||
891 | if [[ "$curPhase" = unpackPhase && -n "${dontUnpack:-}" ]]; then | ||
892 | continue; | ||
893 | fi; | ||
894 | if [[ "$curPhase" = configurePhase && -n "${dontConfigure:-}" ]]; then | ||
895 | continue; | ||
896 | fi; | ||
897 | if [[ "$curPhase" = buildPhase && -n "${dontBuild:-}" ]]; then | ||
898 | continue; | ||
899 | fi; | ||
900 | if [[ "$curPhase" = checkPhase && -z "${doCheck:-}" ]]; then | ||
901 | continue; | ||
902 | fi; | ||
903 | if [[ "$curPhase" = installPhase && -n "${dontInstall:-}" ]]; then | ||
904 | continue; | ||
905 | fi; | ||
906 | if [[ "$curPhase" = fixupPhase && -n "${dontFixup:-}" ]]; then | ||
907 | continue; | ||
908 | fi; | ||
909 | if [[ "$curPhase" = installCheckPhase && -z "${doInstallCheck:-}" ]]; then | ||
910 | continue; | ||
911 | fi; | ||
912 | if [[ "$curPhase" = distPhase && -z "${doDist:-}" ]]; then | ||
913 | continue; | ||
914 | fi; | ||
915 | if [[ -n $NIX_LOG_FD ]]; then | ||
916 | echo "@nix { \"action\": \"setPhase\", \"phase\": \"$curPhase\" }" 1>&$NIX_LOG_FD; | ||
917 | fi; | ||
918 | showPhaseHeader "$curPhase"; | ||
919 | dumpVars; | ||
920 | eval "${!curPhase:-$curPhase}"; | ||
921 | if [ "$curPhase" = unpackPhase ]; then | ||
922 | cd "${sourceRoot:-.}"; | ||
923 | fi; | ||
924 | done | ||
925 | } | ||
926 | getHostRole () | ||
927 | { | ||
928 | getRole "$hostOffset" | ||
929 | } | ||
930 | getHostRoleEnvHook () | ||
931 | { | ||
932 | getRole "$depHostOffset" | ||
933 | } | ||
934 | getRole () | ||
935 | { | ||
936 | case $1 in | ||
937 | -1) | ||
938 | role_pre='BUILD_'; | ||
939 | role_post='_FOR_BUILD' | ||
940 | ;; | ||
941 | 0) | ||
942 | role_pre=''; | ||
943 | role_post='' | ||
944 | ;; | ||
945 | 1) | ||
946 | role_pre='TARGET_'; | ||
947 | role_post='_FOR_TARGET' | ||
948 | ;; | ||
949 | *) | ||
950 | echo "binutils-wrapper-2.31.1: used as improper sort of dependency" > 2; | ||
951 | return 1 | ||
952 | ;; | ||
953 | esac | ||
954 | } | ||
955 | getTargetRole () | ||
956 | { | ||
957 | getRole "$targetOffset" | ||
958 | } | ||
959 | getTargetRoleEnvHook () | ||
960 | { | ||
961 | getRole "$depTargetOffset" | ||
962 | } | ||
963 | getTargetRoleWrapper () | ||
964 | { | ||
965 | case $targetOffset in | ||
966 | -1) | ||
967 | export NIX_BINTOOLS_WRAPPER_x86_64_unknown_linux_gnu_TARGET_BUILD=1 | ||
968 | ;; | ||
969 | 0) | ||
970 | export NIX_BINTOOLS_WRAPPER_x86_64_unknown_linux_gnu_TARGET_HOST=1 | ||
971 | ;; | ||
972 | 1) | ||
973 | export NIX_BINTOOLS_WRAPPER_x86_64_unknown_linux_gnu_TARGET_TARGET=1 | ||
974 | ;; | ||
975 | *) | ||
976 | echo "binutils-wrapper-2.31.1: used as improper sort of dependency" > 2; | ||
977 | return 1 | ||
978 | ;; | ||
979 | esac | ||
980 | } | ||
981 | header () | ||
982 | { | ||
983 | echo "$1" | ||
984 | } | ||
985 | installCheckPhase () | ||
986 | { | ||
987 | runHook preInstallCheck; | ||
988 | if [[ -z "${foundMakefile:-}" ]]; then | ||
989 | echo "no Makefile or custom buildPhase, doing nothing"; | ||
990 | else | ||
991 | if [[ -z "${installCheckTarget:-}" ]] && ! make -n ${makefile:+-f $makefile} ${installCheckTarget:-installcheck} > /dev/null 2>&1; then | ||
992 | echo "no installcheck target in ${makefile:-Makefile}, doing nothing"; | ||
993 | else | ||
994 | local flagsArray=(${enableParallelChecking:+-j${NIX_BUILD_CORES} -l${NIX_BUILD_CORES}} SHELL=$SHELL $makeFlags ${makeFlagsArray+"${makeFlagsArray[@]}"} $installCheckFlags ${installCheckFlagsArray+"${installCheckFlagsArray[@]}"} ${installCheckTarget:-installcheck}); | ||
995 | echoCmd 'installcheck flags' "${flagsArray[@]}"; | ||
996 | make ${makefile:+-f $makefile} "${flagsArray[@]}"; | ||
997 | unset flagsArray; | ||
998 | fi; | ||
999 | fi; | ||
1000 | runHook postInstallCheck | ||
1001 | } | ||
1002 | installPhase () | ||
1003 | { | ||
1004 | runHook preInstall; | ||
1005 | if [ -n "$prefix" ]; then | ||
1006 | mkdir -p "$prefix"; | ||
1007 | fi; | ||
1008 | local flagsArray=(SHELL=$SHELL $makeFlags ${makeFlagsArray+"${makeFlagsArray[@]}"} $installFlags ${installFlagsArray+"${installFlagsArray[@]}"} ${installTargets:-install}); | ||
1009 | echoCmd 'install flags' "${flagsArray[@]}"; | ||
1010 | make ${makefile:+-f $makefile} "${flagsArray[@]}"; | ||
1011 | unset flagsArray; | ||
1012 | runHook postInstall | ||
1013 | } | ||
1014 | isELF () | ||
1015 | { | ||
1016 | local fn="$1"; | ||
1017 | local fd; | ||
1018 | local magic; | ||
1019 | exec {fd}< "$fn"; | ||
1020 | read -r -n 4 -u "$fd" magic; | ||
1021 | exec {fd}>&-; | ||
1022 | if [ "$magic" = 'ELF' ]; then | ||
1023 | return 0; | ||
1024 | else | ||
1025 | return 1; | ||
1026 | fi | ||
1027 | } | ||
1028 | isScript () | ||
1029 | { | ||
1030 | local fn="$1"; | ||
1031 | local fd; | ||
1032 | local magic; | ||
1033 | exec {fd}< "$fn"; | ||
1034 | read -r -n 2 -u "$fd" magic; | ||
1035 | exec {fd}>&-; | ||
1036 | if [[ "$magic" =~ \#! ]]; then | ||
1037 | return 0; | ||
1038 | else | ||
1039 | return 1; | ||
1040 | fi | ||
1041 | } | ||
1042 | mapOffset () | ||
1043 | { | ||
1044 | local -ri inputOffset="$1"; | ||
1045 | if (( "$inputOffset" <= 0 )); then | ||
1046 | local -ri outputOffset="$inputOffset + $hostOffset"; | ||
1047 | else | ||
1048 | local -ri outputOffset="$inputOffset - 1 + $targetOffset"; | ||
1049 | fi; | ||
1050 | mapOffsetResult="$outputOffset" | ||
1051 | } | ||
1052 | moveToOutput () | ||
1053 | { | ||
1054 | local patt="$1"; | ||
1055 | local dstOut="$2"; | ||
1056 | local output; | ||
1057 | for output in $outputs; | ||
1058 | do | ||
1059 | if [ "${!output}" = "$dstOut" ]; then | ||
1060 | continue; | ||
1061 | fi; | ||
1062 | local srcPath; | ||
1063 | for srcPath in "${!output}"/$patt; | ||
1064 | do | ||
1065 | if [ ! -e "$srcPath" ] && [ ! -L "$srcPath" ]; then | ||
1066 | continue; | ||
1067 | fi; | ||
1068 | if [ "$dstOut" = REMOVE ]; then | ||
1069 | echo "Removing $srcPath"; | ||
1070 | rm -r "$srcPath"; | ||
1071 | else | ||
1072 | local dstPath="$dstOut${srcPath#${!output}}"; | ||
1073 | echo "Moving $srcPath to $dstPath"; | ||
1074 | if [ -d "$dstPath" ] && [ -d "$srcPath" ]; then | ||
1075 | rmdir "$srcPath" --ignore-fail-on-non-empty; | ||
1076 | if [ -d "$srcPath" ]; then | ||
1077 | mv -t "$dstPath" "$srcPath"/*; | ||
1078 | rmdir "$srcPath"; | ||
1079 | fi; | ||
1080 | else | ||
1081 | mkdir -p "$(readlink -m "$dstPath/..")"; | ||
1082 | mv "$srcPath" "$dstPath"; | ||
1083 | fi; | ||
1084 | fi; | ||
1085 | local srcParent="$(readlink -m "$srcPath/..")"; | ||
1086 | if rmdir "$srcParent"; then | ||
1087 | echo "Removing empty $srcParent/ and (possibly) its parents"; | ||
1088 | rmdir -p --ignore-fail-on-non-empty "$(readlink -m "$srcParent/..")" 2> /dev/null || true; | ||
1089 | fi; | ||
1090 | done; | ||
1091 | done | ||
1092 | } | ||
1093 | patchELF () | ||
1094 | { | ||
1095 | local dir="$1"; | ||
1096 | [ -e "$dir" ] || return 0; | ||
1097 | header "shrinking RPATHs of ELF executables and libraries in $dir"; | ||
1098 | local i; | ||
1099 | while IFS= read -r -d '' i; do | ||
1100 | if [[ "$i" =~ .build-id ]]; then | ||
1101 | continue; | ||
1102 | fi; | ||
1103 | if ! isELF "$i"; then | ||
1104 | continue; | ||
1105 | fi; | ||
1106 | echo "shrinking $i"; | ||
1107 | patchelf --shrink-rpath "$i" || true; | ||
1108 | done < <(find "$dir" -type f -print0); | ||
1109 | stopNest | ||
1110 | } | ||
1111 | patchPhase () | ||
1112 | { | ||
1113 | runHook prePatch; | ||
1114 | for i in ${patches:-}; | ||
1115 | do | ||
1116 | header "applying patch $i" 3; | ||
1117 | local uncompress=cat; | ||
1118 | case "$i" in | ||
1119 | *.gz) | ||
1120 | uncompress="gzip -d" | ||
1121 | ;; | ||
1122 | *.bz2) | ||
1123 | uncompress="bzip2 -d" | ||
1124 | ;; | ||
1125 | *.xz) | ||
1126 | uncompress="xz -d" | ||
1127 | ;; | ||
1128 | *.lzma) | ||
1129 | uncompress="lzma -d" | ||
1130 | ;; | ||
1131 | esac; | ||
1132 | $uncompress < "$i" 2>&1 | patch ${patchFlags:--p1}; | ||
1133 | done; | ||
1134 | runHook postPatch | ||
1135 | } | ||
1136 | patchShebangs () | ||
1137 | { | ||
1138 | local pathName; | ||
1139 | if [ "$1" = "--host" ]; then | ||
1140 | pathName=HOST_PATH; | ||
1141 | shift; | ||
1142 | else | ||
1143 | if [ "$1" = "--build" ]; then | ||
1144 | pathName=PATH; | ||
1145 | shift; | ||
1146 | fi; | ||
1147 | fi; | ||
1148 | echo "patching script interpreter paths in $@"; | ||
1149 | local f; | ||
1150 | local oldPath; | ||
1151 | local newPath; | ||
1152 | local arg0; | ||
1153 | local args; | ||
1154 | local oldInterpreterLine; | ||
1155 | local newInterpreterLine; | ||
1156 | if [ $# -eq 0 ]; then | ||
1157 | echo "No arguments supplied to patchShebangs" > 0; | ||
1158 | return 0; | ||
1159 | fi; | ||
1160 | local f; | ||
1161 | while IFS= read -r -d '' f; do | ||
1162 | isScript "$f" || continue; | ||
1163 | oldInterpreterLine=$(head -1 "$f" | tail -c+3); | ||
1164 | read -r oldPath arg0 args <<< "$oldInterpreterLine"; | ||
1165 | if [ -z "$pathName" ]; then | ||
1166 | if [ -n "$strictDeps" ] && [[ "$f" = "$NIX_STORE"* ]]; then | ||
1167 | pathName=HOST_PATH; | ||
1168 | else | ||
1169 | pathName=PATH; | ||
1170 | fi; | ||
1171 | fi; | ||
1172 | if $(echo "$oldPath" | grep -q "/bin/env$"); then | ||
1173 | if $(echo "$arg0" | grep -q -- "^-.*\|.*=.*"); then | ||
1174 | echo "$f: unsupported interpreter directive \"$oldInterpreterLine\" (set dontPatchShebangs=1 and handle shebang patching yourself)" > 0; | ||
1175 | exit 1; | ||
1176 | fi; | ||
1177 | newPath="$(PATH="${!pathName}" command -v "$arg0" || true)"; | ||
1178 | else | ||
1179 | if [ "$oldPath" = "" ]; then | ||
1180 | oldPath="/bin/sh"; | ||
1181 | fi; | ||
1182 | newPath="$(PATH="${!pathName}" command -v "$(basename "$oldPath")" || true)"; | ||
1183 | args="$arg0 $args"; | ||
1184 | fi; | ||
1185 | newInterpreterLine="$(echo "$newPath $args" | sed 's/[[:space:]]*$//')"; | ||
1186 | if [ -n "$oldPath" -a "${oldPath:0:${#NIX_STORE}}" != "$NIX_STORE" ]; then | ||
1187 | if [ -n "$newPath" -a "$newPath" != "$oldPath" ]; then | ||
1188 | echo "$f: interpreter directive changed from \"$oldInterpreterLine\" to \"$newInterpreterLine\""; | ||
1189 | escapedInterpreterLine=$(echo "$newInterpreterLine" | sed 's|\\|\\\\|g'); | ||
1190 | timestamp=$(mktemp); | ||
1191 | touch -r "$f" "$timestamp"; | ||
1192 | sed -i -e "1 s|.*|#\!$escapedInterpreterLine|" "$f"; | ||
1193 | touch -r "$timestamp" "$f"; | ||
1194 | rm "$timestamp"; | ||
1195 | fi; | ||
1196 | fi; | ||
1197 | done < <(find "$@" -type f -perm -0100 -print0); | ||
1198 | stopNest | ||
1199 | } | ||
1200 | patchShebangsAuto () | ||
1201 | { | ||
1202 | if [ -z "${dontPatchShebangs-}" -a -e "$prefix" ]; then | ||
1203 | if [ "$output" != out ] && [ "$output" = "$outputDev" ]; then | ||
1204 | patchShebangs --build "$prefix"; | ||
1205 | else | ||
1206 | patchShebangs --host "$prefix"; | ||
1207 | fi; | ||
1208 | fi | ||
1209 | } | ||
1210 | printLines () | ||
1211 | { | ||
1212 | (( "$#" > 0 )) || return 0; | ||
1213 | printf '%s\n' "$@" | ||
1214 | } | ||
1215 | printWords () | ||
1216 | { | ||
1217 | (( "$#" > 0 )) || return 0; | ||
1218 | printf '%s ' "$@" | ||
1219 | } | ||
1220 | runHook () | ||
1221 | { | ||
1222 | local hookName="$1"; | ||
1223 | shift; | ||
1224 | local hooksSlice="${hookName%Hook}Hooks[@]"; | ||
1225 | local hook; | ||
1226 | for hook in "_callImplicitHook 0 $hookName" ${!hooksSlice+"${!hooksSlice}"}; | ||
1227 | do | ||
1228 | _eval "$hook" "$@"; | ||
1229 | done; | ||
1230 | return 0 | ||
1231 | } | ||
1232 | runOneHook () | ||
1233 | { | ||
1234 | local hookName="$1"; | ||
1235 | shift; | ||
1236 | local hooksSlice="${hookName%Hook}Hooks[@]"; | ||
1237 | local hook ret=1; | ||
1238 | for hook in "_callImplicitHook 1 $hookName" ${!hooksSlice+"${!hooksSlice}"}; | ||
1239 | do | ||
1240 | if _eval "$hook" "$@"; then | ||
1241 | ret=0; | ||
1242 | break; | ||
1243 | fi; | ||
1244 | done; | ||
1245 | return "$ret" | ||
1246 | } | ||
1247 | showPhaseHeader () | ||
1248 | { | ||
1249 | local phase="$1"; | ||
1250 | case "$phase" in | ||
1251 | unpackPhase) | ||
1252 | header "unpacking sources" | ||
1253 | ;; | ||
1254 | patchPhase) | ||
1255 | header "patching sources" | ||
1256 | ;; | ||
1257 | configurePhase) | ||
1258 | header "configuring" | ||
1259 | ;; | ||
1260 | buildPhase) | ||
1261 | header "building" | ||
1262 | ;; | ||
1263 | checkPhase) | ||
1264 | header "running tests" | ||
1265 | ;; | ||
1266 | installPhase) | ||
1267 | header "installing" | ||
1268 | ;; | ||
1269 | fixupPhase) | ||
1270 | header "post-installation fixup" | ||
1271 | ;; | ||
1272 | installCheckPhase) | ||
1273 | header "running install tests" | ||
1274 | ;; | ||
1275 | *) | ||
1276 | header "$phase" | ||
1277 | ;; | ||
1278 | esac | ||
1279 | } | ||
1280 | stopNest () | ||
1281 | { | ||
1282 | true | ||
1283 | } | ||
1284 | stripDirs () | ||
1285 | { | ||
1286 | local cmd="$1"; | ||
1287 | local dirs="$2"; | ||
1288 | local stripFlags="$3"; | ||
1289 | local dirsNew=; | ||
1290 | local d; | ||
1291 | for d in ${dirs}; | ||
1292 | do | ||
1293 | if [ -d "$prefix/$d" ]; then | ||
1294 | dirsNew="${dirsNew} $prefix/$d "; | ||
1295 | fi; | ||
1296 | done; | ||
1297 | dirs=${dirsNew}; | ||
1298 | if [ -n "${dirs}" ]; then | ||
1299 | header "stripping (with command $cmd and flags $stripFlags) in$dirs"; | ||
1300 | find $dirs -type f -print0 | xargs -0 ${xargsFlags:--r} $cmd $commonStripFlags $stripFlags 2> /dev/null || true; | ||
1301 | stopNest; | ||
1302 | fi | ||
1303 | } | ||
1304 | stripHash () | ||
1305 | { | ||
1306 | local strippedName casematchOpt=0; | ||
1307 | strippedName="$(basename -- "$1")"; | ||
1308 | shopt -q nocasematch && casematchOpt=1; | ||
1309 | shopt -u nocasematch; | ||
1310 | if [[ "$strippedName" =~ ^[a-z0-9]{32}- ]]; then | ||
1311 | echo "${strippedName:33}"; | ||
1312 | else | ||
1313 | echo "$strippedName"; | ||
1314 | fi; | ||
1315 | if (( casematchOpt )); then | ||
1316 | shopt -s nocasematch; | ||
1317 | fi | ||
1318 | } | ||
1319 | substitute () | ||
1320 | { | ||
1321 | local input="$1"; | ||
1322 | local output="$2"; | ||
1323 | shift 2; | ||
1324 | if [ ! -f "$input" ]; then | ||
1325 | echo "substitute(): ERROR: file '$input' does not exist" 1>&2; | ||
1326 | return 1; | ||
1327 | fi; | ||
1328 | local content; | ||
1329 | consumeEntire content < "$input"; | ||
1330 | if [ -e "$output" ]; then | ||
1331 | chmod +w "$output"; | ||
1332 | fi; | ||
1333 | substituteStream content "file '$input'" "$@" > "$output" | ||
1334 | } | ||
1335 | substituteAll () | ||
1336 | { | ||
1337 | local input="$1"; | ||
1338 | local output="$2"; | ||
1339 | local -a args=(); | ||
1340 | _allFlags; | ||
1341 | substitute "$input" "$output" "${args[@]}" | ||
1342 | } | ||
1343 | substituteAllInPlace () | ||
1344 | { | ||
1345 | local fileName="$1"; | ||
1346 | shift; | ||
1347 | substituteAll "$fileName" "$fileName" "$@" | ||
1348 | } | ||
1349 | substituteAllStream () | ||
1350 | { | ||
1351 | local -a args=(); | ||
1352 | _allFlags; | ||
1353 | substituteStream "$1" "$2" "${args[@]}" | ||
1354 | } | ||
1355 | substituteInPlace () | ||
1356 | { | ||
1357 | local fileName="$1"; | ||
1358 | shift; | ||
1359 | substitute "$fileName" "$fileName" "$@" | ||
1360 | } | ||
1361 | substituteStream () | ||
1362 | { | ||
1363 | local var=$1; | ||
1364 | local description=$2; | ||
1365 | shift 2; | ||
1366 | while (( "$#" )); do | ||
1367 | case "$1" in | ||
1368 | --replace) | ||
1369 | pattern="$2"; | ||
1370 | replacement="$3"; | ||
1371 | shift 3; | ||
1372 | local savedvar; | ||
1373 | savedvar="${!var}"; | ||
1374 | eval "$var"'=${'"$var"'//"$pattern"/"$replacement"}'; | ||
1375 | if [ "$pattern" != "$replacement" ]; then | ||
1376 | if [ "${!var}" == "$savedvar" ]; then | ||
1377 | echo "substituteStream(): WARNING: pattern '$pattern' doesn't match anything in $description" 1>&2; | ||
1378 | fi; | ||
1379 | fi | ||
1380 | ;; | ||
1381 | --subst-var) | ||
1382 | local varName="$2"; | ||
1383 | shift 2; | ||
1384 | if ! [[ "$varName" =~ ^[a-zA-Z_][a-zA-Z0-9_]*$ ]]; then | ||
1385 | echo "substituteStream(): ERROR: substitution variables must be valid Bash names, \"$varName\" isn't." 1>&2; | ||
1386 | return 1; | ||
1387 | fi; | ||
1388 | if [ -z ${!varName+x} ]; then | ||
1389 | echo "substituteStream(): ERROR: variable \$$varName is unset" 1>&2; | ||
1390 | return 1; | ||
1391 | fi; | ||
1392 | pattern="@$varName@"; | ||
1393 | replacement="${!varName}"; | ||
1394 | eval "$var"'=${'"$var"'//"$pattern"/"$replacement"}' | ||
1395 | ;; | ||
1396 | --subst-var-by) | ||
1397 | pattern="@$2@"; | ||
1398 | replacement="$3"; | ||
1399 | eval "$var"'=${'"$var"'//"$pattern"/"$replacement"}'; | ||
1400 | shift 3 | ||
1401 | ;; | ||
1402 | *) | ||
1403 | echo "substituteStream(): ERROR: Invalid command line argument: $1" 1>&2; | ||
1404 | return 1 | ||
1405 | ;; | ||
1406 | esac; | ||
1407 | done; | ||
1408 | printf "%s" "${!var}" | ||
1409 | } | ||
1410 | toPythonPath () | ||
1411 | { | ||
1412 | local paths="$1"; | ||
1413 | local result=; | ||
1414 | for i in $paths; | ||
1415 | do | ||
1416 | p="$i/lib/python3.7/site-packages"; | ||
1417 | result="${result}${result:+:}$p"; | ||
1418 | done; | ||
1419 | echo $result | ||
1420 | } | ||
1421 | unpackFile () | ||
1422 | { | ||
1423 | curSrc="$1"; | ||
1424 | header "unpacking source archive $curSrc" 3; | ||
1425 | if ! runOneHook unpackCmd "$curSrc"; then | ||
1426 | echo "do not know how to unpack source archive $curSrc"; | ||
1427 | exit 1; | ||
1428 | fi | ||
1429 | } | ||
1430 | unpackPhase () | ||
1431 | { | ||
1432 | runHook preUnpack; | ||
1433 | if [ -z "${srcs:-}" ]; then | ||
1434 | if [ -z "${src:-}" ]; then | ||
1435 | echo 'variable $src or $srcs should point to the source'; | ||
1436 | exit 1; | ||
1437 | fi; | ||
1438 | srcs="$src"; | ||
1439 | fi; | ||
1440 | local dirsBefore=""; | ||
1441 | for i in *; | ||
1442 | do | ||
1443 | if [ -d "$i" ]; then | ||
1444 | dirsBefore="$dirsBefore $i "; | ||
1445 | fi; | ||
1446 | done; | ||
1447 | for i in $srcs; | ||
1448 | do | ||
1449 | unpackFile "$i"; | ||
1450 | done; | ||
1451 | : ${sourceRoot=}; | ||
1452 | if [ -n "${setSourceRoot:-}" ]; then | ||
1453 | runOneHook setSourceRoot; | ||
1454 | else | ||
1455 | if [ -z "$sourceRoot" ]; then | ||
1456 | for i in *; | ||
1457 | do | ||
1458 | if [ -d "$i" ]; then | ||
1459 | case $dirsBefore in | ||
1460 | *\ $i\ *) | ||
1461 | |||
1462 | ;; | ||
1463 | *) | ||
1464 | if [ -n "$sourceRoot" ]; then | ||
1465 | echo "unpacker produced multiple directories"; | ||
1466 | exit 1; | ||
1467 | fi; | ||
1468 | sourceRoot="$i" | ||
1469 | ;; | ||
1470 | esac; | ||
1471 | fi; | ||
1472 | done; | ||
1473 | fi; | ||
1474 | fi; | ||
1475 | if [ -z "$sourceRoot" ]; then | ||
1476 | echo "unpacker appears to have produced no directories"; | ||
1477 | exit 1; | ||
1478 | fi; | ||
1479 | echo "source root is $sourceRoot"; | ||
1480 | if [ "${dontMakeSourcesWritable:-0}" != 1 ]; then | ||
1481 | chmod -R u+w -- "$sourceRoot"; | ||
1482 | fi; | ||
1483 | runHook postUnpack | ||
1484 | } | ||
1485 | updateSourceDateEpoch () | ||
1486 | { | ||
1487 | local path="$1"; | ||
1488 | 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)); | ||
1489 | local time="${res[0]//\.[0-9]*/}"; | ||
1490 | local newestFile="${res[1]}"; | ||
1491 | if [ "${time:-0}" -gt "$SOURCE_DATE_EPOCH" ]; then | ||
1492 | echo "setting SOURCE_DATE_EPOCH to timestamp $time of file $newestFile"; | ||
1493 | export SOURCE_DATE_EPOCH="$time"; | ||
1494 | local now="$(date +%s)"; | ||
1495 | if [ "$time" -gt $((now - 60)) ]; then | ||
1496 | echo "warning: file $newestFile may be generated; SOURCE_DATE_EPOCH may be non-deterministic"; | ||
1497 | fi; | ||
1498 | fi | ||
1499 | } | ||
1500 | |||
1501 | export NIX_BUILD_TOP="$(mktemp -d --tmpdir nix-shell.XXXXXX)" | ||
1502 | export TMP="$NIX_BUILD_TOP" | ||
1503 | export TMPDIR="$NIX_BUILD_TOP" | ||
1504 | export TEMP="$NIX_BUILD_TOP" | ||
1505 | export TEMPDIR="$NIX_BUILD_TOP" | ||
1506 | eval "$shellHook" | ||