transparency
This commit is contained in:
parent
f452bb14c6
commit
0ff6a2dff8
9 changed files with 293 additions and 68 deletions
1
.direnv/flake-inputs/dmyhdba7npfby7kzkg4h8w1k5xk4a6w0-source
Symbolic link
1
.direnv/flake-inputs/dmyhdba7npfby7kzkg4h8w1k5xk4a6w0-source
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
/nix/store/dmyhdba7npfby7kzkg4h8w1k5xk4a6w0-source
|
||||
|
|
@ -1 +0,0 @@
|
|||
/nix/store/naa5q5hj23z9yy1zxzwyclm5a0mz5l7v-source
|
||||
|
|
@ -1 +1 @@
|
|||
/nix/store/gmjigrx73w1c00p3v47jmabz6k32dij0-nix-shell-env
|
||||
/nix/store/93x735kgj83k671lmy2hrw2pi7n85y28-nix-shell-env
|
||||
|
|
@ -22,8 +22,10 @@ CXX='g++'
|
|||
export CXX
|
||||
CXX_FOR_TARGET='g++'
|
||||
export CXX_FOR_TARGET
|
||||
GETTEXTDATADIRS='/nix/store/ykz6g9bnl3kka132wiw355rzk0bibdqn-gettext-0.25.1/share/gettext:/nix/store/fgzpllmvbk3l258j0f3ib7k44lksbqnp-glib-2.86.3/share/gettext'
|
||||
export GETTEXTDATADIRS
|
||||
HOSTTYPE='x86_64'
|
||||
HOST_PATH='/nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0/bin:/nix/store/i6ppbrlpp6yki8qvka7nyv091xa8dchx-binutils-wrapper-2.44/bin:/nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1/bin:/nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1/bin:/nix/store/hvivh16a630cwbc73j6l60r9z7q4311g-evcxr-0.21.1/bin:/nix/store/rvp7qlpf5jqvdckjy1afjb6aha6j8dxg-pkg-config-wrapper-0.29.2/bin:/nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev/bin:/nix/store/r40kqrp7ghjypfc0p9kjwgb14mxmjciw-libxml2-2.15.1-bin/bin:/nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev/bin:/nix/store/wwkx16bp7i0v7qalqc3cdqr477pc21h8-libqalculate-5.9.0/bin:/nix/store/i2vmgx46q9hd3z6rigaiman3wl3i2gc4-coreutils-9.9/bin:/nix/store/16wfacfgap3chf7mcjnd8dwi85dj4qqi-findutils-4.10.0/bin:/nix/store/3p87h6dn5i87i3iq9364imzbqgwvkg2p-diffutils-3.12/bin:/nix/store/ryz8kcrm2bxpccllfqlb7qldsfnqp5c2-gnused-4.9/bin:/nix/store/02vv0r262agf9j5n2y1gmbjvdf12zkl0-gnugrep-3.12/bin:/nix/store/2xq9rayckw8zq26k274xxlikn77jn60j-gawk-5.3.2/bin:/nix/store/qyg62bc2xnpwz0fa9prqxvvk00zj4g9q-gnutar-1.35/bin:/nix/store/84yyzmxs7mb8nhkvcfv9n1l9irpb6mnq-gzip-1.14/bin:/nix/store/90yw24gqmwph4xjp4mqhpx1y1gcrvqla-bzip2-1.0.8-bin/bin:/nix/store/vbah5c4rzy1q1hbqhginyxjhj8d4dj8j-gnumake-4.4.1/bin:/nix/store/f15k3dpilmiyv6zgpib289rnjykgr1r4-bash-5.3p9/bin:/nix/store/wwij6563c6wbg4kzgjhng7vlhf7api19-patch-2.8/bin:/nix/store/zys6d102zp171wpwcs08g632886w2qxs-xz-5.8.2-bin/bin:/nix/store/nyy0bvgjwd98x7ih8pl6pr79qjljgsf7-file-5.45/bin'
|
||||
HOST_PATH='/nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0/bin:/nix/store/i6ppbrlpp6yki8qvka7nyv091xa8dchx-binutils-wrapper-2.44/bin:/nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1/bin:/nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1/bin:/nix/store/hvivh16a630cwbc73j6l60r9z7q4311g-evcxr-0.21.1/bin:/nix/store/rvp7qlpf5jqvdckjy1afjb6aha6j8dxg-pkg-config-wrapper-0.29.2/bin:/nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev/bin:/nix/store/r40kqrp7ghjypfc0p9kjwgb14mxmjciw-libxml2-2.15.1-bin/bin:/nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev/bin:/nix/store/wwkx16bp7i0v7qalqc3cdqr477pc21h8-libqalculate-5.9.0/bin:/nix/store/50fnfi2484nn8dzbh7ric41a96ml3581-glib-2.86.3-dev/bin:/nix/store/ykz6g9bnl3kka132wiw355rzk0bibdqn-gettext-0.25.1/bin:/nix/store/flz261l810xa8w6narg9p9nggx4lrv3x-glib-2.86.3-bin/bin:/nix/store/i2vmgx46q9hd3z6rigaiman3wl3i2gc4-coreutils-9.9/bin:/nix/store/16wfacfgap3chf7mcjnd8dwi85dj4qqi-findutils-4.10.0/bin:/nix/store/3p87h6dn5i87i3iq9364imzbqgwvkg2p-diffutils-3.12/bin:/nix/store/ryz8kcrm2bxpccllfqlb7qldsfnqp5c2-gnused-4.9/bin:/nix/store/02vv0r262agf9j5n2y1gmbjvdf12zkl0-gnugrep-3.12/bin:/nix/store/2xq9rayckw8zq26k274xxlikn77jn60j-gawk-5.3.2/bin:/nix/store/qyg62bc2xnpwz0fa9prqxvvk00zj4g9q-gnutar-1.35/bin:/nix/store/84yyzmxs7mb8nhkvcfv9n1l9irpb6mnq-gzip-1.14/bin:/nix/store/90yw24gqmwph4xjp4mqhpx1y1gcrvqla-bzip2-1.0.8-bin/bin:/nix/store/vbah5c4rzy1q1hbqhginyxjhj8d4dj8j-gnumake-4.4.1/bin:/nix/store/f15k3dpilmiyv6zgpib289rnjykgr1r4-bash-5.3p9/bin:/nix/store/wwij6563c6wbg4kzgjhng7vlhf7api19-patch-2.8/bin:/nix/store/zys6d102zp171wpwcs08g632886w2qxs-xz-5.8.2-bin/bin:/nix/store/nyy0bvgjwd98x7ih8pl6pr79qjljgsf7-file-5.45/bin'
|
||||
export HOST_PATH
|
||||
IFS='
|
||||
'
|
||||
|
|
@ -33,7 +35,7 @@ LD='ld'
|
|||
export LD
|
||||
LD_FOR_TARGET='ld'
|
||||
export LD_FOR_TARGET
|
||||
LD_LIBRARY_PATH='/nix/store/v252clrvl9pxhq7f7iway7m9r3i1z0vq-wayland-1.24.0/lib'
|
||||
LD_LIBRARY_PATH='/nix/store/v252clrvl9pxhq7f7iway7m9r3i1z0vq-wayland-1.24.0/lib:/nix/store/ni6pwnn5cg4mwm2fkmqrm2bzjvj16b64-libxkbcommon-1.11.0/lib:/nix/store/fgzpllmvbk3l258j0f3ib7k44lksbqnp-glib-2.86.3/lib:/nix/store/p571ddsdkd75dilqibr5ly79yb6v88n3-vulkan-loader-1.4.335.0/lib:/nix/store/ikgcxdw09g63rxb40w73m36474rds29c-mesa-26.0.0/lib:/nix/store/bafh2k71bs9ls9vjzkkvpzfzilqqis8c-libglvnd-1.7.0/lib'
|
||||
export LD_LIBRARY_PATH
|
||||
LINENO='76'
|
||||
MACHTYPE='x86_64-pc-linux-gnu'
|
||||
|
|
@ -55,17 +57,17 @@ NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu='1'
|
|||
export NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu
|
||||
NIX_CC_WRAPPER_TARGET_TARGET_x86_64_unknown_linux_gnu='1'
|
||||
export NIX_CC_WRAPPER_TARGET_TARGET_x86_64_unknown_linux_gnu
|
||||
NIX_CFLAGS_COMPILE=' -frandom-seed=gmjigrx73w -isystem /nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1/include -isystem /nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1/include -isystem /nix/store/igdxf5xmwv09hpcpaz0nd6ik4l3hj44f-libqalculate-5.9.0-dev/include -isystem /nix/store/igdxf5xmwv09hpcpaz0nd6ik4l3hj44f-libqalculate-5.9.0-dev/include -isystem /nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev/include -isystem /nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev/include -isystem /nix/store/g3p48clv29ck5mmhj5qkq6f5yww3kfb6-mpfr-4.2.2-dev/include -isystem /nix/store/g3p48clv29ck5mmhj5qkq6f5yww3kfb6-mpfr-4.2.2-dev/include -isystem /nix/store/fy6kfb982l4aalzlj00fzdmy1i481pjj-gmp-with-cxx-6.3.0-dev/include -isystem /nix/store/fy6kfb982l4aalzlj00fzdmy1i481pjj-gmp-with-cxx-6.3.0-dev/include -isystem /nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev/include -isystem /nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev/include -isystem /nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1/include -isystem /nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1/include -isystem /nix/store/igdxf5xmwv09hpcpaz0nd6ik4l3hj44f-libqalculate-5.9.0-dev/include -isystem /nix/store/igdxf5xmwv09hpcpaz0nd6ik4l3hj44f-libqalculate-5.9.0-dev/include -isystem /nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev/include -isystem /nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev/include -isystem /nix/store/g3p48clv29ck5mmhj5qkq6f5yww3kfb6-mpfr-4.2.2-dev/include -isystem /nix/store/g3p48clv29ck5mmhj5qkq6f5yww3kfb6-mpfr-4.2.2-dev/include -isystem /nix/store/fy6kfb982l4aalzlj00fzdmy1i481pjj-gmp-with-cxx-6.3.0-dev/include -isystem /nix/store/fy6kfb982l4aalzlj00fzdmy1i481pjj-gmp-with-cxx-6.3.0-dev/include -isystem /nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev/include -isystem /nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev/include'
|
||||
NIX_CFLAGS_COMPILE=' -frandom-seed=93x735kgj8 -isystem /nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1/include -isystem /nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1/include -isystem /nix/store/igdxf5xmwv09hpcpaz0nd6ik4l3hj44f-libqalculate-5.9.0-dev/include -isystem /nix/store/igdxf5xmwv09hpcpaz0nd6ik4l3hj44f-libqalculate-5.9.0-dev/include -isystem /nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev/include -isystem /nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev/include -isystem /nix/store/g3p48clv29ck5mmhj5qkq6f5yww3kfb6-mpfr-4.2.2-dev/include -isystem /nix/store/g3p48clv29ck5mmhj5qkq6f5yww3kfb6-mpfr-4.2.2-dev/include -isystem /nix/store/fy6kfb982l4aalzlj00fzdmy1i481pjj-gmp-with-cxx-6.3.0-dev/include -isystem /nix/store/fy6kfb982l4aalzlj00fzdmy1i481pjj-gmp-with-cxx-6.3.0-dev/include -isystem /nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev/include -isystem /nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev/include -isystem /nix/store/50fnfi2484nn8dzbh7ric41a96ml3581-glib-2.86.3-dev/include -isystem /nix/store/50fnfi2484nn8dzbh7ric41a96ml3581-glib-2.86.3-dev/include -isystem /nix/store/wlafyp4d5mjdfvkj88m4l2a84fzcxjfv-zlib-1.3.1-dev/include -isystem /nix/store/wlafyp4d5mjdfvkj88m4l2a84fzcxjfv-zlib-1.3.1-dev/include -isystem /nix/store/kp4j3zz6n72s20v636c3w85agj7c24s6-libffi-3.5.2-dev/include -isystem /nix/store/kp4j3zz6n72s20v636c3w85agj7c24s6-libffi-3.5.2-dev/include -isystem /nix/store/ykz6g9bnl3kka132wiw355rzk0bibdqn-gettext-0.25.1/include -isystem /nix/store/ykz6g9bnl3kka132wiw355rzk0bibdqn-gettext-0.25.1/include -isystem /nix/store/r6mywbqf8x8jl2kp94bk6g8d5kpcj79x-glibc-iconv-2.42/include -isystem /nix/store/r6mywbqf8x8jl2kp94bk6g8d5kpcj79x-glibc-iconv-2.42/include -isystem /nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1/include -isystem /nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1/include -isystem /nix/store/igdxf5xmwv09hpcpaz0nd6ik4l3hj44f-libqalculate-5.9.0-dev/include -isystem /nix/store/igdxf5xmwv09hpcpaz0nd6ik4l3hj44f-libqalculate-5.9.0-dev/include -isystem /nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev/include -isystem /nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev/include -isystem /nix/store/g3p48clv29ck5mmhj5qkq6f5yww3kfb6-mpfr-4.2.2-dev/include -isystem /nix/store/g3p48clv29ck5mmhj5qkq6f5yww3kfb6-mpfr-4.2.2-dev/include -isystem /nix/store/fy6kfb982l4aalzlj00fzdmy1i481pjj-gmp-with-cxx-6.3.0-dev/include -isystem /nix/store/fy6kfb982l4aalzlj00fzdmy1i481pjj-gmp-with-cxx-6.3.0-dev/include -isystem /nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev/include -isystem /nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev/include -isystem /nix/store/50fnfi2484nn8dzbh7ric41a96ml3581-glib-2.86.3-dev/include -isystem /nix/store/50fnfi2484nn8dzbh7ric41a96ml3581-glib-2.86.3-dev/include -isystem /nix/store/wlafyp4d5mjdfvkj88m4l2a84fzcxjfv-zlib-1.3.1-dev/include -isystem /nix/store/wlafyp4d5mjdfvkj88m4l2a84fzcxjfv-zlib-1.3.1-dev/include -isystem /nix/store/kp4j3zz6n72s20v636c3w85agj7c24s6-libffi-3.5.2-dev/include -isystem /nix/store/kp4j3zz6n72s20v636c3w85agj7c24s6-libffi-3.5.2-dev/include -isystem /nix/store/ykz6g9bnl3kka132wiw355rzk0bibdqn-gettext-0.25.1/include -isystem /nix/store/ykz6g9bnl3kka132wiw355rzk0bibdqn-gettext-0.25.1/include -isystem /nix/store/r6mywbqf8x8jl2kp94bk6g8d5kpcj79x-glibc-iconv-2.42/include -isystem /nix/store/r6mywbqf8x8jl2kp94bk6g8d5kpcj79x-glibc-iconv-2.42/include'
|
||||
export NIX_CFLAGS_COMPILE
|
||||
NIX_CFLAGS_COMPILE_FOR_TARGET=' -isystem /nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1/include -isystem /nix/store/igdxf5xmwv09hpcpaz0nd6ik4l3hj44f-libqalculate-5.9.0-dev/include -isystem /nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev/include -isystem /nix/store/g3p48clv29ck5mmhj5qkq6f5yww3kfb6-mpfr-4.2.2-dev/include -isystem /nix/store/fy6kfb982l4aalzlj00fzdmy1i481pjj-gmp-with-cxx-6.3.0-dev/include -isystem /nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev/include'
|
||||
NIX_CFLAGS_COMPILE_FOR_TARGET=' -isystem /nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1/include -isystem /nix/store/igdxf5xmwv09hpcpaz0nd6ik4l3hj44f-libqalculate-5.9.0-dev/include -isystem /nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev/include -isystem /nix/store/g3p48clv29ck5mmhj5qkq6f5yww3kfb6-mpfr-4.2.2-dev/include -isystem /nix/store/fy6kfb982l4aalzlj00fzdmy1i481pjj-gmp-with-cxx-6.3.0-dev/include -isystem /nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev/include -isystem /nix/store/50fnfi2484nn8dzbh7ric41a96ml3581-glib-2.86.3-dev/include -isystem /nix/store/wlafyp4d5mjdfvkj88m4l2a84fzcxjfv-zlib-1.3.1-dev/include -isystem /nix/store/kp4j3zz6n72s20v636c3w85agj7c24s6-libffi-3.5.2-dev/include -isystem /nix/store/ykz6g9bnl3kka132wiw355rzk0bibdqn-gettext-0.25.1/include -isystem /nix/store/r6mywbqf8x8jl2kp94bk6g8d5kpcj79x-glibc-iconv-2.42/include'
|
||||
export NIX_CFLAGS_COMPILE_FOR_TARGET
|
||||
NIX_ENFORCE_NO_NATIVE='1'
|
||||
export NIX_ENFORCE_NO_NATIVE
|
||||
NIX_HARDENING_ENABLE='bindnow format fortify fortify3 libcxxhardeningextensive libcxxhardeningfast pic relro stackclashprotection stackprotector strictoverflow zerocallusedregs'
|
||||
export NIX_HARDENING_ENABLE
|
||||
NIX_LDFLAGS='-rpath /mnt/removable/Projects/Rust/floating-calculator/outputs/out/lib -L/nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1/lib -L/nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1/lib -L/nix/store/81cfgyhfaadhh0vs4nf74yhcclgbav87-libxml2-2.15.1/lib -L/nix/store/81cfgyhfaadhh0vs4nf74yhcclgbav87-libxml2-2.15.1/lib -L/nix/store/c5p8phmycgqjfrwzf0cpc740b6gvdac5-gmp-with-cxx-6.3.0/lib -L/nix/store/c5p8phmycgqjfrwzf0cpc740b6gvdac5-gmp-with-cxx-6.3.0/lib -L/nix/store/rx9c12rcc10273xrgb21kcpglddh1sry-mpfr-4.2.2/lib -L/nix/store/rx9c12rcc10273xrgb21kcpglddh1sry-mpfr-4.2.2/lib -L/nix/store/q34rjcffjcmhbnsx8nd6w0i2xamz66i3-icu4c-76.1/lib -L/nix/store/q34rjcffjcmhbnsx8nd6w0i2xamz66i3-icu4c-76.1/lib -L/nix/store/wwkx16bp7i0v7qalqc3cdqr477pc21h8-libqalculate-5.9.0/lib -L/nix/store/wwkx16bp7i0v7qalqc3cdqr477pc21h8-libqalculate-5.9.0/lib -L/nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1/lib -L/nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1/lib -L/nix/store/81cfgyhfaadhh0vs4nf74yhcclgbav87-libxml2-2.15.1/lib -L/nix/store/81cfgyhfaadhh0vs4nf74yhcclgbav87-libxml2-2.15.1/lib -L/nix/store/c5p8phmycgqjfrwzf0cpc740b6gvdac5-gmp-with-cxx-6.3.0/lib -L/nix/store/c5p8phmycgqjfrwzf0cpc740b6gvdac5-gmp-with-cxx-6.3.0/lib -L/nix/store/rx9c12rcc10273xrgb21kcpglddh1sry-mpfr-4.2.2/lib -L/nix/store/rx9c12rcc10273xrgb21kcpglddh1sry-mpfr-4.2.2/lib -L/nix/store/q34rjcffjcmhbnsx8nd6w0i2xamz66i3-icu4c-76.1/lib -L/nix/store/q34rjcffjcmhbnsx8nd6w0i2xamz66i3-icu4c-76.1/lib -L/nix/store/wwkx16bp7i0v7qalqc3cdqr477pc21h8-libqalculate-5.9.0/lib -L/nix/store/wwkx16bp7i0v7qalqc3cdqr477pc21h8-libqalculate-5.9.0/lib'
|
||||
NIX_LDFLAGS='-rpath /mnt/removable/Projects/Rust/floating-calculator/outputs/out/lib -L/nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1/lib -L/nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1/lib -L/nix/store/81cfgyhfaadhh0vs4nf74yhcclgbav87-libxml2-2.15.1/lib -L/nix/store/81cfgyhfaadhh0vs4nf74yhcclgbav87-libxml2-2.15.1/lib -L/nix/store/c5p8phmycgqjfrwzf0cpc740b6gvdac5-gmp-with-cxx-6.3.0/lib -L/nix/store/c5p8phmycgqjfrwzf0cpc740b6gvdac5-gmp-with-cxx-6.3.0/lib -L/nix/store/rx9c12rcc10273xrgb21kcpglddh1sry-mpfr-4.2.2/lib -L/nix/store/rx9c12rcc10273xrgb21kcpglddh1sry-mpfr-4.2.2/lib -L/nix/store/q34rjcffjcmhbnsx8nd6w0i2xamz66i3-icu4c-76.1/lib -L/nix/store/q34rjcffjcmhbnsx8nd6w0i2xamz66i3-icu4c-76.1/lib -L/nix/store/wwkx16bp7i0v7qalqc3cdqr477pc21h8-libqalculate-5.9.0/lib -L/nix/store/wwkx16bp7i0v7qalqc3cdqr477pc21h8-libqalculate-5.9.0/lib -L/nix/store/ri9paa3mri4kqakljak8ldvbcp7lpmif-zlib-1.3.1/lib -L/nix/store/ri9paa3mri4kqakljak8ldvbcp7lpmif-zlib-1.3.1/lib -L/nix/store/s644cyhhkg9zjgk924ap5wwr96jn71d3-libffi-3.5.2/lib -L/nix/store/s644cyhhkg9zjgk924ap5wwr96jn71d3-libffi-3.5.2/lib -L/nix/store/ykz6g9bnl3kka132wiw355rzk0bibdqn-gettext-0.25.1/lib -L/nix/store/ykz6g9bnl3kka132wiw355rzk0bibdqn-gettext-0.25.1/lib -L/nix/store/fgzpllmvbk3l258j0f3ib7k44lksbqnp-glib-2.86.3/lib -L/nix/store/fgzpllmvbk3l258j0f3ib7k44lksbqnp-glib-2.86.3/lib -L/nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1/lib -L/nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1/lib -L/nix/store/81cfgyhfaadhh0vs4nf74yhcclgbav87-libxml2-2.15.1/lib -L/nix/store/81cfgyhfaadhh0vs4nf74yhcclgbav87-libxml2-2.15.1/lib -L/nix/store/c5p8phmycgqjfrwzf0cpc740b6gvdac5-gmp-with-cxx-6.3.0/lib -L/nix/store/c5p8phmycgqjfrwzf0cpc740b6gvdac5-gmp-with-cxx-6.3.0/lib -L/nix/store/rx9c12rcc10273xrgb21kcpglddh1sry-mpfr-4.2.2/lib -L/nix/store/rx9c12rcc10273xrgb21kcpglddh1sry-mpfr-4.2.2/lib -L/nix/store/q34rjcffjcmhbnsx8nd6w0i2xamz66i3-icu4c-76.1/lib -L/nix/store/q34rjcffjcmhbnsx8nd6w0i2xamz66i3-icu4c-76.1/lib -L/nix/store/wwkx16bp7i0v7qalqc3cdqr477pc21h8-libqalculate-5.9.0/lib -L/nix/store/wwkx16bp7i0v7qalqc3cdqr477pc21h8-libqalculate-5.9.0/lib -L/nix/store/ri9paa3mri4kqakljak8ldvbcp7lpmif-zlib-1.3.1/lib -L/nix/store/ri9paa3mri4kqakljak8ldvbcp7lpmif-zlib-1.3.1/lib -L/nix/store/s644cyhhkg9zjgk924ap5wwr96jn71d3-libffi-3.5.2/lib -L/nix/store/s644cyhhkg9zjgk924ap5wwr96jn71d3-libffi-3.5.2/lib -L/nix/store/ykz6g9bnl3kka132wiw355rzk0bibdqn-gettext-0.25.1/lib -L/nix/store/ykz6g9bnl3kka132wiw355rzk0bibdqn-gettext-0.25.1/lib -L/nix/store/fgzpllmvbk3l258j0f3ib7k44lksbqnp-glib-2.86.3/lib -L/nix/store/fgzpllmvbk3l258j0f3ib7k44lksbqnp-glib-2.86.3/lib'
|
||||
export NIX_LDFLAGS
|
||||
NIX_LDFLAGS_FOR_TARGET=' -L/nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1/lib -L/nix/store/81cfgyhfaadhh0vs4nf74yhcclgbav87-libxml2-2.15.1/lib -L/nix/store/c5p8phmycgqjfrwzf0cpc740b6gvdac5-gmp-with-cxx-6.3.0/lib -L/nix/store/rx9c12rcc10273xrgb21kcpglddh1sry-mpfr-4.2.2/lib -L/nix/store/q34rjcffjcmhbnsx8nd6w0i2xamz66i3-icu4c-76.1/lib -L/nix/store/wwkx16bp7i0v7qalqc3cdqr477pc21h8-libqalculate-5.9.0/lib'
|
||||
NIX_LDFLAGS_FOR_TARGET=' -L/nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1/lib -L/nix/store/81cfgyhfaadhh0vs4nf74yhcclgbav87-libxml2-2.15.1/lib -L/nix/store/c5p8phmycgqjfrwzf0cpc740b6gvdac5-gmp-with-cxx-6.3.0/lib -L/nix/store/rx9c12rcc10273xrgb21kcpglddh1sry-mpfr-4.2.2/lib -L/nix/store/q34rjcffjcmhbnsx8nd6w0i2xamz66i3-icu4c-76.1/lib -L/nix/store/wwkx16bp7i0v7qalqc3cdqr477pc21h8-libqalculate-5.9.0/lib -L/nix/store/ri9paa3mri4kqakljak8ldvbcp7lpmif-zlib-1.3.1/lib -L/nix/store/s644cyhhkg9zjgk924ap5wwr96jn71d3-libffi-3.5.2/lib -L/nix/store/ykz6g9bnl3kka132wiw355rzk0bibdqn-gettext-0.25.1/lib -L/nix/store/fgzpllmvbk3l258j0f3ib7k44lksbqnp-glib-2.86.3/lib'
|
||||
export NIX_LDFLAGS_FOR_TARGET
|
||||
NIX_NO_SELF_RPATH='1'
|
||||
NIX_PKG_CONFIG_WRAPPER_TARGET_TARGET_x86_64_unknown_linux_gnu='1'
|
||||
|
|
@ -88,11 +90,11 @@ OLDPWD=''
|
|||
export OLDPWD
|
||||
OPTERR='1'
|
||||
OSTYPE='linux-gnu'
|
||||
PATH='/nix/store/c2p7haf4zzkbrir9zs662r68c5dmylbq-patchelf-0.15.2/bin:/nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0/bin:/nix/store/mjf8jlq9grydcdvyw6hb063x5c34g5gf-gcc-15.2.0/bin:/nix/store/0bdqq2z98kg2hfn3k60if6pb5fd5p10h-glibc-2.42-47-bin/bin:/nix/store/i2vmgx46q9hd3z6rigaiman3wl3i2gc4-coreutils-9.9/bin:/nix/store/i6ppbrlpp6yki8qvka7nyv091xa8dchx-binutils-wrapper-2.44/bin:/nix/store/47mn80zqpygykqailwzw8zlag4cgl75q-binutils-2.44/bin:/nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1/bin:/nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1/bin:/nix/store/hvivh16a630cwbc73j6l60r9z7q4311g-evcxr-0.21.1/bin:/nix/store/rvp7qlpf5jqvdckjy1afjb6aha6j8dxg-pkg-config-wrapper-0.29.2/bin:/nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev/bin:/nix/store/r40kqrp7ghjypfc0p9kjwgb14mxmjciw-libxml2-2.15.1-bin/bin:/nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev/bin:/nix/store/wwkx16bp7i0v7qalqc3cdqr477pc21h8-libqalculate-5.9.0/bin:/nix/store/i2vmgx46q9hd3z6rigaiman3wl3i2gc4-coreutils-9.9/bin:/nix/store/16wfacfgap3chf7mcjnd8dwi85dj4qqi-findutils-4.10.0/bin:/nix/store/3p87h6dn5i87i3iq9364imzbqgwvkg2p-diffutils-3.12/bin:/nix/store/ryz8kcrm2bxpccllfqlb7qldsfnqp5c2-gnused-4.9/bin:/nix/store/02vv0r262agf9j5n2y1gmbjvdf12zkl0-gnugrep-3.12/bin:/nix/store/2xq9rayckw8zq26k274xxlikn77jn60j-gawk-5.3.2/bin:/nix/store/qyg62bc2xnpwz0fa9prqxvvk00zj4g9q-gnutar-1.35/bin:/nix/store/84yyzmxs7mb8nhkvcfv9n1l9irpb6mnq-gzip-1.14/bin:/nix/store/90yw24gqmwph4xjp4mqhpx1y1gcrvqla-bzip2-1.0.8-bin/bin:/nix/store/vbah5c4rzy1q1hbqhginyxjhj8d4dj8j-gnumake-4.4.1/bin:/nix/store/f15k3dpilmiyv6zgpib289rnjykgr1r4-bash-5.3p9/bin:/nix/store/wwij6563c6wbg4kzgjhng7vlhf7api19-patch-2.8/bin:/nix/store/zys6d102zp171wpwcs08g632886w2qxs-xz-5.8.2-bin/bin:/nix/store/nyy0bvgjwd98x7ih8pl6pr79qjljgsf7-file-5.45/bin'
|
||||
PATH='/nix/store/c2p7haf4zzkbrir9zs662r68c5dmylbq-patchelf-0.15.2/bin:/nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0/bin:/nix/store/mjf8jlq9grydcdvyw6hb063x5c34g5gf-gcc-15.2.0/bin:/nix/store/0bdqq2z98kg2hfn3k60if6pb5fd5p10h-glibc-2.42-47-bin/bin:/nix/store/i2vmgx46q9hd3z6rigaiman3wl3i2gc4-coreutils-9.9/bin:/nix/store/i6ppbrlpp6yki8qvka7nyv091xa8dchx-binutils-wrapper-2.44/bin:/nix/store/47mn80zqpygykqailwzw8zlag4cgl75q-binutils-2.44/bin:/nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1/bin:/nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1/bin:/nix/store/hvivh16a630cwbc73j6l60r9z7q4311g-evcxr-0.21.1/bin:/nix/store/rvp7qlpf5jqvdckjy1afjb6aha6j8dxg-pkg-config-wrapper-0.29.2/bin:/nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev/bin:/nix/store/r40kqrp7ghjypfc0p9kjwgb14mxmjciw-libxml2-2.15.1-bin/bin:/nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev/bin:/nix/store/wwkx16bp7i0v7qalqc3cdqr477pc21h8-libqalculate-5.9.0/bin:/nix/store/50fnfi2484nn8dzbh7ric41a96ml3581-glib-2.86.3-dev/bin:/nix/store/ykz6g9bnl3kka132wiw355rzk0bibdqn-gettext-0.25.1/bin:/nix/store/flz261l810xa8w6narg9p9nggx4lrv3x-glib-2.86.3-bin/bin:/nix/store/i2vmgx46q9hd3z6rigaiman3wl3i2gc4-coreutils-9.9/bin:/nix/store/16wfacfgap3chf7mcjnd8dwi85dj4qqi-findutils-4.10.0/bin:/nix/store/3p87h6dn5i87i3iq9364imzbqgwvkg2p-diffutils-3.12/bin:/nix/store/ryz8kcrm2bxpccllfqlb7qldsfnqp5c2-gnused-4.9/bin:/nix/store/02vv0r262agf9j5n2y1gmbjvdf12zkl0-gnugrep-3.12/bin:/nix/store/2xq9rayckw8zq26k274xxlikn77jn60j-gawk-5.3.2/bin:/nix/store/qyg62bc2xnpwz0fa9prqxvvk00zj4g9q-gnutar-1.35/bin:/nix/store/84yyzmxs7mb8nhkvcfv9n1l9irpb6mnq-gzip-1.14/bin:/nix/store/90yw24gqmwph4xjp4mqhpx1y1gcrvqla-bzip2-1.0.8-bin/bin:/nix/store/vbah5c4rzy1q1hbqhginyxjhj8d4dj8j-gnumake-4.4.1/bin:/nix/store/f15k3dpilmiyv6zgpib289rnjykgr1r4-bash-5.3p9/bin:/nix/store/wwij6563c6wbg4kzgjhng7vlhf7api19-patch-2.8/bin:/nix/store/zys6d102zp171wpwcs08g632886w2qxs-xz-5.8.2-bin/bin:/nix/store/nyy0bvgjwd98x7ih8pl6pr79qjljgsf7-file-5.45/bin'
|
||||
export PATH
|
||||
PKG_CONFIG_FOR_TARGET='pkg-config'
|
||||
export PKG_CONFIG_FOR_TARGET
|
||||
PKG_CONFIG_PATH_FOR_TARGET='/nix/store/igdxf5xmwv09hpcpaz0nd6ik4l3hj44f-libqalculate-5.9.0-dev/lib/pkgconfig:/nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev/lib/pkgconfig:/nix/store/g3p48clv29ck5mmhj5qkq6f5yww3kfb6-mpfr-4.2.2-dev/lib/pkgconfig:/nix/store/fy6kfb982l4aalzlj00fzdmy1i481pjj-gmp-with-cxx-6.3.0-dev/lib/pkgconfig:/nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev/lib/pkgconfig'
|
||||
PKG_CONFIG_PATH_FOR_TARGET='/nix/store/igdxf5xmwv09hpcpaz0nd6ik4l3hj44f-libqalculate-5.9.0-dev/lib/pkgconfig:/nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev/lib/pkgconfig:/nix/store/g3p48clv29ck5mmhj5qkq6f5yww3kfb6-mpfr-4.2.2-dev/lib/pkgconfig:/nix/store/fy6kfb982l4aalzlj00fzdmy1i481pjj-gmp-with-cxx-6.3.0-dev/lib/pkgconfig:/nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev/lib/pkgconfig:/nix/store/50fnfi2484nn8dzbh7ric41a96ml3581-glib-2.86.3-dev/lib/pkgconfig:/nix/store/wlafyp4d5mjdfvkj88m4l2a84fzcxjfv-zlib-1.3.1-dev/lib/pkgconfig:/nix/store/kp4j3zz6n72s20v636c3w85agj7c24s6-libffi-3.5.2-dev/lib/pkgconfig'
|
||||
export PKG_CONFIG_PATH_FOR_TARGET
|
||||
PS4='+ '
|
||||
RANLIB='ranlib'
|
||||
|
|
@ -119,6 +121,8 @@ STRIP='strip'
|
|||
export STRIP
|
||||
STRIP_FOR_TARGET='strip'
|
||||
export STRIP_FOR_TARGET
|
||||
VK_ICD_FILENAMES='/nix/store/ikgcxdw09g63rxb40w73m36474rds29c-mesa-26.0.0/share/vulkan/icd.d/intel_icd.x86_64.json'
|
||||
export VK_ICD_FILENAMES
|
||||
XDG_DATA_DIRS='/nix/store/c2p7haf4zzkbrir9zs662r68c5dmylbq-patchelf-0.15.2/share'
|
||||
export XDG_DATA_DIRS
|
||||
XML_CATALOG_FILES=' '
|
||||
|
|
@ -126,7 +130,7 @@ export XML_CATALOG_FILES
|
|||
__structuredAttrs=''
|
||||
export __structuredAttrs
|
||||
_substituteStream_has_warned_replace_deprecation='false'
|
||||
buildInputs='/nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0 /nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1 /nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1 /nix/store/hvivh16a630cwbc73j6l60r9z7q4311g-evcxr-0.21.1 /nix/store/rvp7qlpf5jqvdckjy1afjb6aha6j8dxg-pkg-config-wrapper-0.29.2 /nix/store/igdxf5xmwv09hpcpaz0nd6ik4l3hj44f-libqalculate-5.9.0-dev'
|
||||
buildInputs='/nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0 /nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1 /nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1 /nix/store/hvivh16a630cwbc73j6l60r9z7q4311g-evcxr-0.21.1 /nix/store/rvp7qlpf5jqvdckjy1afjb6aha6j8dxg-pkg-config-wrapper-0.29.2 /nix/store/igdxf5xmwv09hpcpaz0nd6ik4l3hj44f-libqalculate-5.9.0-dev /nix/store/50fnfi2484nn8dzbh7ric41a96ml3581-glib-2.86.3-dev'
|
||||
export buildInputs
|
||||
buildPhase='{ echo "------------------------------------------------------------";
|
||||
echo " WARNING: the existence of this path is not guaranteed.";
|
||||
|
|
@ -171,9 +175,9 @@ export dontAddDisableDepTrack
|
|||
declare -a envBuildBuildHooks=()
|
||||
declare -a envBuildHostHooks=()
|
||||
declare -a envBuildTargetHooks=()
|
||||
declare -a envHostHostHooks=('ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' 'ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' 'addXMLCatalogs' )
|
||||
declare -a envHostTargetHooks=('ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' 'ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' 'addXMLCatalogs' )
|
||||
declare -a envTargetTargetHooks=('ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' 'pkgConfigWrapper_addPkgConfigPath' )
|
||||
declare -a envHostHostHooks=('ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' 'ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' 'addXMLCatalogs' 'gettextDataDirsHook' )
|
||||
declare -a envHostTargetHooks=('ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' 'ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' 'addXMLCatalogs' 'gettextDataDirsHook' )
|
||||
declare -a envTargetTargetHooks=('ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' 'pkgConfigWrapper_addPkgConfigPath' 'make_glib_find_gsettings_schemas' )
|
||||
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' )
|
||||
initialPath='/nix/store/i2vmgx46q9hd3z6rigaiman3wl3i2gc4-coreutils-9.9 /nix/store/16wfacfgap3chf7mcjnd8dwi85dj4qqi-findutils-4.10.0 /nix/store/3p87h6dn5i87i3iq9364imzbqgwvkg2p-diffutils-3.12 /nix/store/ryz8kcrm2bxpccllfqlb7qldsfnqp5c2-gnused-4.9 /nix/store/02vv0r262agf9j5n2y1gmbjvdf12zkl0-gnugrep-3.12 /nix/store/2xq9rayckw8zq26k274xxlikn77jn60j-gawk-5.3.2 /nix/store/qyg62bc2xnpwz0fa9prqxvvk00zj4g9q-gnutar-1.35 /nix/store/84yyzmxs7mb8nhkvcfv9n1l9irpb6mnq-gzip-1.14 /nix/store/90yw24gqmwph4xjp4mqhpx1y1gcrvqla-bzip2-1.0.8-bin /nix/store/vbah5c4rzy1q1hbqhginyxjhj8d4dj8j-gnumake-4.4.1 /nix/store/f15k3dpilmiyv6zgpib289rnjykgr1r4-bash-5.3p9 /nix/store/wwij6563c6wbg4kzgjhng7vlhf7api19-patch-2.8 /nix/store/zys6d102zp171wpwcs08g632886w2qxs-xz-5.8.2-bin /nix/store/nyy0bvgjwd98x7ih8pl6pr79qjljgsf7-file-5.45'
|
||||
libxmlHookDone='1'
|
||||
|
|
@ -205,13 +209,15 @@ declare -a pkgsBuildBuild=()
|
|||
declare -a pkgsBuildHost=('/nix/store/c2p7haf4zzkbrir9zs662r68c5dmylbq-patchelf-0.15.2' '/nix/store/y03z7y8cgdck7vk8qpim30vps4d22gzv-update-autotools-gnu-config-scripts-hook' '/nix/store/0y5xmdb7qfvimjwbq7ibg1xdgkgjwqng-no-broken-symlinks.sh' '/nix/store/cv1d7p48379km6a85h4zp6kr86brh32q-audit-tmpdir.sh' '/nix/store/85clx3b0xkdf58jn161iy80y5223ilbi-compress-man-pages.sh' '/nix/store/p3l1a5y7nllfyrjn2krlwgcc3z0cd3fq-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/cmzya9irvxzlkh7lfy6i82gbp0saxqj3-multiple-outputs.sh' '/nix/store/x8c40nfigps493a07sdr2pm5s9j1cdc0-patch-shebangs.sh' '/nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh' '/nix/store/xyff06pkhki3qy1ls77w10s0v79c9il0-reproducible-builds.sh' '/nix/store/z7k98578dfzi6l3hsvbivzm7hfqlk0zc-set-source-date-epoch-to-latest.sh' '/nix/store/pilsssjjdxvdphlg2h19p0bfx5q0jzkn-strip.sh' '/nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0' '/nix/store/i6ppbrlpp6yki8qvka7nyv091xa8dchx-binutils-wrapper-2.44' )
|
||||
declare -a pkgsBuildTarget=()
|
||||
declare -a pkgsHostHost=('/nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0' '/nix/store/i6ppbrlpp6yki8qvka7nyv091xa8dchx-binutils-wrapper-2.44' )
|
||||
declare -a pkgsHostTarget=('/nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0' '/nix/store/i6ppbrlpp6yki8qvka7nyv091xa8dchx-binutils-wrapper-2.44' '/nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1' '/nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1' '/nix/store/hvivh16a630cwbc73j6l60r9z7q4311g-evcxr-0.21.1' '/nix/store/rvp7qlpf5jqvdckjy1afjb6aha6j8dxg-pkg-config-wrapper-0.29.2' '/nix/store/igdxf5xmwv09hpcpaz0nd6ik4l3hj44f-libqalculate-5.9.0-dev' '/nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev' '/nix/store/x3li8bcdrgnwfh397sjfk1sgsbax6wxn-find-xml-catalogs-hook' '/nix/store/r40kqrp7ghjypfc0p9kjwgb14mxmjciw-libxml2-2.15.1-bin' '/nix/store/81cfgyhfaadhh0vs4nf74yhcclgbav87-libxml2-2.15.1' '/nix/store/g3p48clv29ck5mmhj5qkq6f5yww3kfb6-mpfr-4.2.2-dev' '/nix/store/fy6kfb982l4aalzlj00fzdmy1i481pjj-gmp-with-cxx-6.3.0-dev' '/nix/store/c5p8phmycgqjfrwzf0cpc740b6gvdac5-gmp-with-cxx-6.3.0' '/nix/store/rx9c12rcc10273xrgb21kcpglddh1sry-mpfr-4.2.2' '/nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev' '/nix/store/q34rjcffjcmhbnsx8nd6w0i2xamz66i3-icu4c-76.1' '/nix/store/wwkx16bp7i0v7qalqc3cdqr477pc21h8-libqalculate-5.9.0' )
|
||||
declare -a pkgsHostTarget=('/nix/store/a245z3cvf9x9sn0xlk6k8j9xhxbhda1z-gcc-wrapper-15.2.0' '/nix/store/i6ppbrlpp6yki8qvka7nyv091xa8dchx-binutils-wrapper-2.44' '/nix/store/5lyy21zm97pj8l67r2xapdkxpxb6v6y0-gnumake-4.4.1' '/nix/store/9k0snv1492aqrkahlai724yd53qszh7z-rust-default-1.93.1' '/nix/store/hvivh16a630cwbc73j6l60r9z7q4311g-evcxr-0.21.1' '/nix/store/rvp7qlpf5jqvdckjy1afjb6aha6j8dxg-pkg-config-wrapper-0.29.2' '/nix/store/igdxf5xmwv09hpcpaz0nd6ik4l3hj44f-libqalculate-5.9.0-dev' '/nix/store/yl9p47yg3qzw1xf9b3pnfav0mgy1qik9-libxml2-2.15.1-dev' '/nix/store/x3li8bcdrgnwfh397sjfk1sgsbax6wxn-find-xml-catalogs-hook' '/nix/store/r40kqrp7ghjypfc0p9kjwgb14mxmjciw-libxml2-2.15.1-bin' '/nix/store/81cfgyhfaadhh0vs4nf74yhcclgbav87-libxml2-2.15.1' '/nix/store/g3p48clv29ck5mmhj5qkq6f5yww3kfb6-mpfr-4.2.2-dev' '/nix/store/fy6kfb982l4aalzlj00fzdmy1i481pjj-gmp-with-cxx-6.3.0-dev' '/nix/store/c5p8phmycgqjfrwzf0cpc740b6gvdac5-gmp-with-cxx-6.3.0' '/nix/store/rx9c12rcc10273xrgb21kcpglddh1sry-mpfr-4.2.2' '/nix/store/y3b549nnjrn2apah7mfwzz6zwnidpflq-icu4c-76.1-dev' '/nix/store/q34rjcffjcmhbnsx8nd6w0i2xamz66i3-icu4c-76.1' '/nix/store/wwkx16bp7i0v7qalqc3cdqr477pc21h8-libqalculate-5.9.0' '/nix/store/50fnfi2484nn8dzbh7ric41a96ml3581-glib-2.86.3-dev' '/nix/store/wlafyp4d5mjdfvkj88m4l2a84fzcxjfv-zlib-1.3.1-dev' '/nix/store/ri9paa3mri4kqakljak8ldvbcp7lpmif-zlib-1.3.1' '/nix/store/kp4j3zz6n72s20v636c3w85agj7c24s6-libffi-3.5.2-dev' '/nix/store/s644cyhhkg9zjgk924ap5wwr96jn71d3-libffi-3.5.2' '/nix/store/ykz6g9bnl3kka132wiw355rzk0bibdqn-gettext-0.25.1' '/nix/store/r6mywbqf8x8jl2kp94bk6g8d5kpcj79x-glibc-iconv-2.42' '/nix/store/flz261l810xa8w6narg9p9nggx4lrv3x-glib-2.86.3-bin' '/nix/store/fgzpllmvbk3l258j0f3ib7k44lksbqnp-glib-2.86.3' )
|
||||
declare -a pkgsTargetTarget=()
|
||||
declare -a postFixupHooks=('noBrokenSymlinksInAllOutputs' '_makeSymlinksRelative' '_multioutPropagateDev' )
|
||||
declare -a postInstallHooks=('glibPostInstallHook' )
|
||||
declare -a postUnpackHooks=('_updateSourceDateEpochFromSourceRoot' )
|
||||
declare -a preConfigureHooks=('_multioutConfig' )
|
||||
preConfigurePhases=' updateAutotoolsGnuConfigScriptsPhase'
|
||||
declare -a preFixupHooks=('_moveToShare' '_multioutDocs' '_multioutDevs' )
|
||||
preInstallPhases=' glibPreInstallPhase'
|
||||
preferLocalBuild='1'
|
||||
export preferLocalBuild
|
||||
prefix='/mnt/removable/Projects/Rust/floating-calculator/outputs/out'
|
||||
|
|
@ -222,6 +228,7 @@ declare -a propagatedHostDepFiles=('propagated-host-host-deps' 'propagated-build
|
|||
propagatedNativeBuildInputs=''
|
||||
export propagatedNativeBuildInputs
|
||||
declare -a propagatedTargetDepFiles=('propagated-target-target-deps' )
|
||||
role_post=''
|
||||
shell='/nix/store/f15k3dpilmiyv6zgpib289rnjykgr1r4-bash-5.3p9/bin/bash'
|
||||
export shell
|
||||
shellHook=''
|
||||
|
|
@ -1300,7 +1307,7 @@ getRole ()
|
|||
role_post='_FOR_TARGET'
|
||||
;;
|
||||
*)
|
||||
echo "pkg-config-wrapper-0.29.2: used as improper sort of dependency" 1>&2;
|
||||
echo "gettext-0.25.1: used as improper sort of dependency" 1>&2;
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
|
|
@ -1320,20 +1327,42 @@ getTargetRoleWrapper ()
|
|||
|
||||
case $targetOffset in
|
||||
-1)
|
||||
export NIX_PKG_CONFIG_WRAPPER_TARGET_BUILD_x86_64_unknown_linux_gnu=1
|
||||
export NIX_@wrapperName@_TARGET_BUILD_@suffixSalt@=1
|
||||
;;
|
||||
0)
|
||||
export NIX_PKG_CONFIG_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu=1
|
||||
export NIX_@wrapperName@_TARGET_HOST_@suffixSalt@=1
|
||||
;;
|
||||
1)
|
||||
export NIX_PKG_CONFIG_WRAPPER_TARGET_TARGET_x86_64_unknown_linux_gnu=1
|
||||
export NIX_@wrapperName@_TARGET_TARGET_@suffixSalt@=1
|
||||
;;
|
||||
*)
|
||||
echo "pkg-config-wrapper-0.29.2: used as improper sort of dependency" 1>&2;
|
||||
echo "gettext-0.25.1: used as improper sort of dependency" 1>&2;
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
}
|
||||
gettextDataDirsHook ()
|
||||
{
|
||||
|
||||
getHostRoleEnvHook;
|
||||
if [ -d "$1/share/gettext" ]; then
|
||||
addToSearchPath "GETTEXTDATADIRS${role_post}" "$1/share/gettext";
|
||||
fi
|
||||
}
|
||||
glibPostInstallHook ()
|
||||
{
|
||||
|
||||
if [ -d "$prefix/share/glib-2.0/schemas" ]; then
|
||||
mkdir -p "${!outputLib}/share/gsettings-schemas/$name/glib-2.0";
|
||||
mv "$prefix/share/glib-2.0/schemas" "${!outputLib}/share/gsettings-schemas/$name/glib-2.0/";
|
||||
fi;
|
||||
addToSearchPath GSETTINGS_SCHEMAS_PATH "${!outputLib}/share/gsettings-schemas/$name"
|
||||
}
|
||||
glibPreInstallPhase ()
|
||||
{
|
||||
|
||||
makeFlagsArray+=("gsettingsschemadir=${!outputLib}/share/gsettings-schemas/$name/glib-2.0/schemas/")
|
||||
}
|
||||
installCheckPhase ()
|
||||
{
|
||||
|
||||
|
|
@ -1427,6 +1456,16 @@ isScript ()
|
|||
return 1;
|
||||
fi
|
||||
}
|
||||
make_glib_find_gsettings_schemas ()
|
||||
{
|
||||
|
||||
for maybe_dir in "$1"/share/gsettings-schemas/*;
|
||||
do
|
||||
if [[ -d "$maybe_dir/glib-2.0/schemas" ]]; then
|
||||
addToSearchPath GSETTINGS_SCHEMAS_PATH "$maybe_dir";
|
||||
fi;
|
||||
done
|
||||
}
|
||||
mapOffset ()
|
||||
{
|
||||
|
||||
|
|
|
|||
72
Cargo.lock
generated
72
Cargo.lock
generated
|
|
@ -586,6 +586,19 @@ dependencies = [
|
|||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "core-graphics"
|
||||
version = "0.24.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1"
|
||||
dependencies = [
|
||||
"bitflags 2.11.0",
|
||||
"core-foundation 0.10.1",
|
||||
"core-graphics-types 0.2.0",
|
||||
"foreign-types",
|
||||
"libc",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "core-graphics-types"
|
||||
version = "0.1.3"
|
||||
|
|
@ -666,12 +679,6 @@ dependencies = [
|
|||
"wgpu",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "ctor-lite"
|
||||
version = "0.1.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e162d0c2e2068eb736b71e5597eff0b9944e6b973cd9f37b6a288ab9bf20e300"
|
||||
|
||||
[[package]]
|
||||
name = "cursor-icon"
|
||||
version = "1.2.0"
|
||||
|
|
@ -931,6 +938,7 @@ dependencies = [
|
|||
"iced",
|
||||
"iced_layershell",
|
||||
"pkg-config",
|
||||
"winit",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -1392,6 +1400,7 @@ dependencies = [
|
|||
"iced_core",
|
||||
"log",
|
||||
"rustc-hash 2.1.1",
|
||||
"tokio",
|
||||
"wasm-bindgen-futures",
|
||||
"wasmtimer",
|
||||
]
|
||||
|
|
@ -1550,7 +1559,6 @@ dependencies = [
|
|||
"iced_debug",
|
||||
"iced_program",
|
||||
"log",
|
||||
"mundy",
|
||||
"rustc-hash 2.1.1",
|
||||
"thiserror 2.0.18",
|
||||
"tracing",
|
||||
|
|
@ -2269,7 +2277,6 @@ checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"
|
|||
dependencies = [
|
||||
"bitflags 2.11.0",
|
||||
"objc2 0.6.3",
|
||||
"objc2-core-foundation",
|
||||
"objc2-foundation 0.3.2",
|
||||
]
|
||||
|
||||
|
|
@ -2905,33 +2912,30 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "softbuffer"
|
||||
version = "0.4.8"
|
||||
version = "0.4.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3"
|
||||
checksum = "18051cdd562e792cad055119e0cdb2cfc137e44e3987532e0f9659a77931bb08"
|
||||
dependencies = [
|
||||
"as-raw-xcb-connection",
|
||||
"bytemuck",
|
||||
"cfg_aliases",
|
||||
"core-graphics 0.24.0",
|
||||
"fastrand",
|
||||
"foreign-types",
|
||||
"js-sys",
|
||||
"log",
|
||||
"memmap2",
|
||||
"ndk",
|
||||
"objc2 0.6.3",
|
||||
"objc2-core-foundation",
|
||||
"objc2-core-graphics",
|
||||
"objc2-foundation 0.3.2",
|
||||
"objc2-quartz-core 0.3.2",
|
||||
"objc2 0.5.2",
|
||||
"objc2-foundation 0.2.2",
|
||||
"objc2-quartz-core 0.2.2",
|
||||
"raw-window-handle",
|
||||
"redox_syscall 0.5.18",
|
||||
"rustix 1.1.4",
|
||||
"tiny-xlib",
|
||||
"tracing",
|
||||
"rustix 0.38.44",
|
||||
"wasm-bindgen",
|
||||
"wayland-backend",
|
||||
"wayland-client",
|
||||
"wayland-sys",
|
||||
"web-sys",
|
||||
"windows-sys 0.61.2",
|
||||
"x11rb",
|
||||
"windows-sys 0.59.0",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
@ -3085,19 +3089,6 @@ dependencies = [
|
|||
"strict-num",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tiny-xlib"
|
||||
version = "0.2.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0324504befd01cab6e0c994f34b2ffa257849ee019d3fb3b64fb2c858887d89e"
|
||||
dependencies = [
|
||||
"as-raw-xcb-connection",
|
||||
"ctor-lite",
|
||||
"libloading",
|
||||
"pkg-config",
|
||||
"tracing",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "tinyvec"
|
||||
version = "1.10.0"
|
||||
|
|
@ -3113,6 +3104,15 @@ version = "0.1.1"
|
|||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
|
||||
|
||||
[[package]]
|
||||
name = "tokio"
|
||||
version = "1.49.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "72a2903cd7736441aac9df9d7688bd0ce48edccaadf181c3b90be801e81d3d86"
|
||||
dependencies = [
|
||||
"pin-project-lite",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "toml_datetime"
|
||||
version = "0.7.5+spec-1.1.0"
|
||||
|
|
@ -4103,7 +4103,7 @@ dependencies = [
|
|||
"cfg_aliases",
|
||||
"concurrent-queue",
|
||||
"core-foundation 0.9.4",
|
||||
"core-graphics",
|
||||
"core-graphics 0.23.2",
|
||||
"cursor-icon",
|
||||
"dpi",
|
||||
"js-sys",
|
||||
|
|
|
|||
11
Cargo.toml
11
Cargo.toml
|
|
@ -5,10 +5,19 @@ edition = "2024"
|
|||
|
||||
[dependencies]
|
||||
cxx = "1.0.194"
|
||||
iced = "0.14.0"
|
||||
iced = { version = "0.14.0", default-features = false, features = ["wgpu", "wayland", "tokio"] }
|
||||
iced_layershell = "0.15.0"
|
||||
winit = { version = "0.30.12", features = ["wayland"] }
|
||||
|
||||
|
||||
[build-dependencies]
|
||||
cxx-build = "1.0"
|
||||
pkg-config = "0.3"
|
||||
|
||||
[profile.release]
|
||||
opt-level = 3
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
strip = "symbols"
|
||||
panic = "abort"
|
||||
debug = false
|
||||
|
|
|
|||
|
|
@ -52,10 +52,18 @@
|
|||
evcxr
|
||||
pkg-config
|
||||
libqalculate
|
||||
glib
|
||||
];
|
||||
|
||||
VK_ICD_FILENAMES = "${pkgs.mesa}/share/vulkan/icd.d/intel_icd.x86_64.json";
|
||||
|
||||
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath (with pkgs; [
|
||||
wayland
|
||||
libxkbcommon
|
||||
glib
|
||||
vulkan-loader
|
||||
mesa
|
||||
libGL
|
||||
]);
|
||||
};
|
||||
};
|
||||
|
|
|
|||
127
reee.rs
Normal file
127
reee.rs
Normal file
|
|
@ -0,0 +1,127 @@
|
|||
use iced::theme::Style;
|
||||
use iced::widget::{Column, Container, Id, TextInput, container, operation, text};
|
||||
use iced::{Background, Color, Element, Event, Task as Command, window};
|
||||
|
||||
#[cxx::bridge]
|
||||
mod ffi {
|
||||
unsafe extern "C++" {
|
||||
include!("floating-calculator/src/qalc_bridge.h");
|
||||
fn qalc_calculate(expression: &str, timeout_ms: i32) -> String;
|
||||
}
|
||||
}
|
||||
|
||||
pub fn main() -> iced::Result {
|
||||
let _ = ffi::qalc_calculate("", 2000);
|
||||
|
||||
iced::application(State::default, State::update, State::view)
|
||||
.title("Iced qalc calculator")
|
||||
.subscription(State::subscription)
|
||||
.style(style)
|
||||
.window(window::Settings {
|
||||
size: iced::Size::new(400.0, 400.0),
|
||||
transparent: true,
|
||||
decorations: false,
|
||||
level: window::Level::AlwaysOnTop,
|
||||
..Default::default()
|
||||
})
|
||||
.run()
|
||||
}
|
||||
|
||||
struct State {
|
||||
initialized: bool,
|
||||
current_message: String,
|
||||
history: Vec<String>,
|
||||
input_id: Id,
|
||||
}
|
||||
|
||||
impl Default for State {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
initialized: false,
|
||||
current_message: String::new(),
|
||||
history: Vec::new(),
|
||||
input_id: Id::unique(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
enum Message {
|
||||
Init,
|
||||
TextSubmit,
|
||||
TextInput(String),
|
||||
IcedEvent(Event),
|
||||
}
|
||||
|
||||
impl State {
|
||||
fn subscription(&self) -> iced::Subscription<Message> {
|
||||
use iced::event;
|
||||
use iced::futures::stream;
|
||||
|
||||
let init = if !self.initialized {
|
||||
iced::Subscription::run_with("init", |_| stream::once(async { Message::Init }))
|
||||
} else {
|
||||
iced::Subscription::none()
|
||||
};
|
||||
|
||||
iced::Subscription::batch([init, event::listen().map(Message::IcedEvent)])
|
||||
}
|
||||
|
||||
fn update(&mut self, message: Message) -> Command<Message> {
|
||||
use iced::keyboard::{Key, key::Named};
|
||||
|
||||
match message {
|
||||
Message::Init => {
|
||||
self.initialized = true;
|
||||
operation::focus(self.input_id.clone())
|
||||
}
|
||||
Message::IcedEvent(event) => {
|
||||
if let Event::Keyboard(iced::keyboard::Event::KeyReleased {
|
||||
key: Key::Named(Named::Escape),
|
||||
..
|
||||
}) = event
|
||||
{
|
||||
return iced::exit();
|
||||
}
|
||||
Command::none()
|
||||
}
|
||||
Message::TextInput(t) => {
|
||||
self.current_message = t;
|
||||
Command::none()
|
||||
}
|
||||
Message::TextSubmit => {
|
||||
self.history.push(ffi::qalc_calculate(
|
||||
&std::mem::take(&mut self.current_message),
|
||||
2000,
|
||||
));
|
||||
Command::none()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fn view(&self) -> Container<'_, Message> {
|
||||
let input: TextInput<'_, Message> =
|
||||
TextInput::new("Type something here...", &self.current_message)
|
||||
.on_input(Message::TextInput)
|
||||
.on_submit(Message::TextSubmit)
|
||||
.id(self.input_id.clone());
|
||||
|
||||
let content = Column::with_children(
|
||||
std::iter::once(input.into())
|
||||
.chain(self.history.iter().rev().map(|msg| text!("{msg}").into()))
|
||||
.collect::<Vec<Element<_>>>(),
|
||||
);
|
||||
|
||||
container(content).style(|_theme| container::Style {
|
||||
background: Some(Background::Color(Color::TRANSPARENT)),
|
||||
..Default::default()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
fn style(_state: &State, theme: &iced::Theme) -> Style {
|
||||
Style {
|
||||
background_color: Color::TRANSPARENT,
|
||||
text_color: theme.palette().text,
|
||||
}
|
||||
}
|
||||
64
src/main.rs
64
src/main.rs
|
|
@ -1,5 +1,5 @@
|
|||
use iced::widget::{Column, TextInput, text};
|
||||
use iced::{Color, Element, Event, Task as Command, event};
|
||||
use iced::widget::{Column, Container, Id, TextInput, container, operation, stack, text};
|
||||
use iced::{Color, Element, Event, Task as Command};
|
||||
use iced_layershell::application;
|
||||
use iced_layershell::reexport::Anchor;
|
||||
use iced_layershell::settings::{LayerShellSettings, Settings, StartMode};
|
||||
|
|
@ -38,15 +38,28 @@ pub fn main() -> Result<(), iced_layershell::Error> {
|
|||
.run()
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
struct State {
|
||||
initialized: bool,
|
||||
current_message: String,
|
||||
history: Vec<String>,
|
||||
input_id: Id,
|
||||
}
|
||||
|
||||
impl Default for State {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
initialized: false,
|
||||
current_message: String::new(),
|
||||
history: Vec::new(),
|
||||
input_id: Id::unique(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[to_layer_message]
|
||||
#[derive(Debug, Clone)]
|
||||
enum Message {
|
||||
Init,
|
||||
TextSubmit,
|
||||
TextInput(String),
|
||||
IcedEvent(Event),
|
||||
|
|
@ -56,14 +69,27 @@ fn namespace() -> String {
|
|||
String::from("Iced qalc claculator")
|
||||
}
|
||||
|
||||
fn subscription(_: &State) -> iced::Subscription<Message> {
|
||||
event::listen().map(Message::IcedEvent)
|
||||
fn subscription(state: &State) -> iced::Subscription<Message> {
|
||||
use iced::event;
|
||||
use iced::futures::stream;
|
||||
|
||||
let init = if !state.initialized {
|
||||
iced::Subscription::run_with("init", |_| stream::once(async { Message::Init }))
|
||||
} else {
|
||||
iced::Subscription::none()
|
||||
};
|
||||
|
||||
iced::Subscription::batch([init, event::listen().map(Message::IcedEvent)])
|
||||
}
|
||||
|
||||
fn update(state: &mut State, message: Message) -> Command<Message> {
|
||||
use iced::keyboard::{Event::KeyReleased, Key, key::Named};
|
||||
|
||||
match message {
|
||||
Message::Init => {
|
||||
state.initialized = true;
|
||||
operation::focus(state.input_id.clone())
|
||||
}
|
||||
Message::IcedEvent(event) => {
|
||||
if let Event::Keyboard(KeyReleased {
|
||||
key: Key::Named(Named::Escape),
|
||||
|
|
@ -92,23 +118,39 @@ fn update(state: &mut State, message: Message) -> Command<Message> {
|
|||
}
|
||||
}
|
||||
|
||||
fn view(state: &State) -> Column<'_, Message> {
|
||||
fn view(state: &State) -> Container<'_, Message> {
|
||||
let input: TextInput<'_, Message> =
|
||||
TextInput::new("Type something here...", &state.current_message)
|
||||
.on_input(Message::TextInput)
|
||||
.on_submit(Message::TextSubmit);
|
||||
.on_submit(Message::TextSubmit)
|
||||
.id(state.input_id.clone());
|
||||
|
||||
Column::with_children(
|
||||
let content = Column::with_children(
|
||||
std::iter::once(input.into())
|
||||
.chain(state.history.iter().rev().map(|msg| text!("{msg}").into()))
|
||||
.collect::<Vec<Element<_>>>(),
|
||||
)
|
||||
);
|
||||
|
||||
let bg = container(iced::widget::Space::new())
|
||||
.width(iced::Length::Fill)
|
||||
.height(iced::Length::Fill)
|
||||
.style(|_theme| container::Style {
|
||||
background: Some(iced::Background::Color(Color::from_rgba8(30, 30, 46, 0.75))),
|
||||
..Default::default()
|
||||
});
|
||||
|
||||
let layered = stack![bg, content];
|
||||
|
||||
container(layered).style(|_theme| container::Style {
|
||||
text_color: Some(Color::WHITE),
|
||||
..Default::default()
|
||||
})
|
||||
}
|
||||
|
||||
fn style(_counter: &State, theme: &iced::Theme) -> iced::theme::Style {
|
||||
fn style(_state: &State, theme: &iced::Theme) -> iced::theme::Style {
|
||||
use iced::theme::Style;
|
||||
Style {
|
||||
background_color: Color::WHITE,
|
||||
background_color: Color::TRANSPARENT,
|
||||
text_color: theme.palette().text,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue