diff --git a/.direnv/flake-inputs/000g40zx811y6ih02d2vpjd4h0avwrqv-source b/.direnv/flake-inputs/000g40zx811y6ih02d2vpjd4h0avwrqv-source new file mode 120000 index 0000000..15d5dd3 --- /dev/null +++ b/.direnv/flake-inputs/000g40zx811y6ih02d2vpjd4h0avwrqv-source @@ -0,0 +1 @@ +/nix/store/000g40zx811y6ih02d2vpjd4h0avwrqv-source \ No newline at end of file diff --git a/.direnv/flake-inputs/15g90azxfwn7sld82vvqp9v08c23mbdd-source b/.direnv/flake-inputs/15g90azxfwn7sld82vvqp9v08c23mbdd-source new file mode 120000 index 0000000..c732068 --- /dev/null +++ b/.direnv/flake-inputs/15g90azxfwn7sld82vvqp9v08c23mbdd-source @@ -0,0 +1 @@ +/nix/store/15g90azxfwn7sld82vvqp9v08c23mbdd-source \ No newline at end of file diff --git a/.direnv/flake-inputs/bmm9r8flfy9fg5cflij0zn9fp500f30h-source b/.direnv/flake-inputs/bmm9r8flfy9fg5cflij0zn9fp500f30h-source new file mode 120000 index 0000000..309d99d --- /dev/null +++ b/.direnv/flake-inputs/bmm9r8flfy9fg5cflij0zn9fp500f30h-source @@ -0,0 +1 @@ +/nix/store/bmm9r8flfy9fg5cflij0zn9fp500f30h-source \ No newline at end of file diff --git a/.direnv/flake-inputs/bqpj5ycz2mc32igyl452gpz7kdxa7czw-source b/.direnv/flake-inputs/bqpj5ycz2mc32igyl452gpz7kdxa7czw-source new file mode 120000 index 0000000..a262d1e --- /dev/null +++ b/.direnv/flake-inputs/bqpj5ycz2mc32igyl452gpz7kdxa7czw-source @@ -0,0 +1 @@ +/nix/store/bqpj5ycz2mc32igyl452gpz7kdxa7czw-source \ No newline at end of file diff --git a/.direnv/flake-inputs/fc0ajx4015sh8i65iwb8qd3vap3wswpr-source b/.direnv/flake-inputs/fc0ajx4015sh8i65iwb8qd3vap3wswpr-source new file mode 120000 index 0000000..0062927 --- /dev/null +++ b/.direnv/flake-inputs/fc0ajx4015sh8i65iwb8qd3vap3wswpr-source @@ -0,0 +1 @@ +/nix/store/fc0ajx4015sh8i65iwb8qd3vap3wswpr-source \ No newline at end of file diff --git a/.direnv/flake-inputs/flsqq53kqi52lz73n543wmxz0mbhpb52-source b/.direnv/flake-inputs/flsqq53kqi52lz73n543wmxz0mbhpb52-source new file mode 120000 index 0000000..a09cad1 --- /dev/null +++ b/.direnv/flake-inputs/flsqq53kqi52lz73n543wmxz0mbhpb52-source @@ -0,0 +1 @@ +/nix/store/flsqq53kqi52lz73n543wmxz0mbhpb52-source \ No newline at end of file diff --git a/.direnv/flake-inputs/jywjc9i9298fyw1kwq8fi09jqpmnhf8v-source b/.direnv/flake-inputs/jywjc9i9298fyw1kwq8fi09jqpmnhf8v-source new file mode 120000 index 0000000..b4d9221 --- /dev/null +++ b/.direnv/flake-inputs/jywjc9i9298fyw1kwq8fi09jqpmnhf8v-source @@ -0,0 +1 @@ +/nix/store/jywjc9i9298fyw1kwq8fi09jqpmnhf8v-source \ No newline at end of file diff --git a/.direnv/flake-inputs/qd3i5ak8y7wqi5cm9ra66i8nhfazywkg-source b/.direnv/flake-inputs/qd3i5ak8y7wqi5cm9ra66i8nhfazywkg-source new file mode 120000 index 0000000..c94253d --- /dev/null +++ b/.direnv/flake-inputs/qd3i5ak8y7wqi5cm9ra66i8nhfazywkg-source @@ -0,0 +1 @@ +/nix/store/qd3i5ak8y7wqi5cm9ra66i8nhfazywkg-source \ No newline at end of file diff --git a/.direnv/flake-inputs/s3g7qygizlsynkdrd3xij5l77nvdxggs-source b/.direnv/flake-inputs/s3g7qygizlsynkdrd3xij5l77nvdxggs-source new file mode 120000 index 0000000..1f0bcc6 --- /dev/null +++ b/.direnv/flake-inputs/s3g7qygizlsynkdrd3xij5l77nvdxggs-source @@ -0,0 +1 @@ +/nix/store/s3g7qygizlsynkdrd3xij5l77nvdxggs-source \ No newline at end of file diff --git a/.direnv/flake-inputs/wpb1gv14wd8iipy6lwn30qllqcmznax7-source b/.direnv/flake-inputs/wpb1gv14wd8iipy6lwn30qllqcmznax7-source new file mode 120000 index 0000000..ff5b135 --- /dev/null +++ b/.direnv/flake-inputs/wpb1gv14wd8iipy6lwn30qllqcmznax7-source @@ -0,0 +1 @@ +/nix/store/wpb1gv14wd8iipy6lwn30qllqcmznax7-source \ No newline at end of file diff --git a/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa b/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa new file mode 120000 index 0000000..d5974f1 --- /dev/null +++ b/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa @@ -0,0 +1 @@ +/nix/store/29h00rhbi1ixq96fjlgiv606v4dv0idx-ghc-shell-for-sequelize-1.1.0.0-0-env \ No newline at end of file diff --git a/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc b/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc new file mode 100644 index 0000000..db6f38c --- /dev/null +++ b/.direnv/flake-profile-a5d5b61aa8a61b7d9d765e1daf971a9a578f1cfa.rc @@ -0,0 +1,1876 @@ +unset shellHook +PATH=${PATH:-} +nix_saved_PATH="$PATH" +XDG_DATA_DIRS=${XDG_DATA_DIRS:-} +nix_saved_XDG_DATA_DIRS="$XDG_DATA_DIRS" +AR='ar' +export AR +AS='as' +export AS +BASH='/nix/store/r4vxljid3iq94jp7qvd639sps0fscwy3-bash-5.2-p15/bin/bash' +CC='gcc' +export CC +CONFIG_SHELL='/nix/store/r4vxljid3iq94jp7qvd639sps0fscwy3-bash-5.2-p15/bin/bash' +export CONFIG_SHELL +CXX='g++' +export CXX +HOSTTYPE='x86_64' +HOST_PATH='/nix/store/n31yg2ngxgb1smg553q4kak5ckf9cnb3-ncurses-6.4/bin:/nix/store/5wspmqhgsfs7dza9gcyrj5yxbyd00q7y-coreutils-9.3/bin:/nix/store/039nii0j16pkzabxi9nm5dkh0z8awaww-findutils-4.9.0/bin:/nix/store/pmkqwxzi27lzdzkh2zpqajks9b3521jz-diffutils-3.10/bin:/nix/store/5ccllrgswk61a44yl7jcxs20jql1y32b-gnused-4.9/bin:/nix/store/m88w8in2zf5dwijxypyba02f0ff260rm-gnugrep-3.11/bin:/nix/store/scv8hzzf0vpxaqj96qjhzdcf04aygga1-gawk-5.2.2/bin:/nix/store/ygjmhqdm8labz14xxscz003srl1p2c94-gnutar-1.35/bin:/nix/store/pm6pfypn61d9n9gy19i01ak8hwc6g688-gzip-1.12/bin:/nix/store/ir3achw4jh3qyyac0vkj8jb46l06psqh-bzip2-1.0.8-bin/bin:/nix/store/k51cq3ap20c69wffjsl8qjs21wy5wlrq-gnumake-4.4.1/bin:/nix/store/r4vxljid3iq94jp7qvd639sps0fscwy3-bash-5.2-p15/bin:/nix/store/l6wb1grmnawfvy6xqp5x29jsq9p5dym8-patch-2.7.6/bin:/nix/store/ikzmh72n5f785gkfm02kzg4cl8d7hzmg-xz-5.4.4-bin/bin:/nix/store/yyrljddc4wqraxs72d8kzcf3filcncky-file-5.45/bin' +export HOST_PATH +IFS=' +' +IN_NIX_SHELL='impure' +export IN_NIX_SHELL +LANG='en_US.UTF-8' +export LANG +LD='ld' +export LD +LINENO='76' +LOCALE_ARCHIVE='/nix/store/xkrrz65dhc4s11gph6v2aiak9yg0mw5y-glibc-locales-2.37-8/lib/locale/locale-archive' +export LOCALE_ARCHIVE +MACHTYPE='x86_64-pc-linux-gnu' +NIX_BINTOOLS='/nix/store/cyb4bb44krf4ghw8qasa03sxi2k4g6a4-binutils-wrapper-2.40' +export NIX_BINTOOLS +NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu='1' +export NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu +NIX_BUILD_CORES='12' +export NIX_BUILD_CORES +NIX_CC='/nix/store/civqmfc14c8x7l59nfiwb3qggr8sghrg-gcc-wrapper-12.3.0' +export NIX_CC +NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu='1' +export NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu +NIX_CFLAGS_COMPILE=' -frandom-seed=29h00rhbi1' +export NIX_CFLAGS_COMPILE +NIX_ENFORCE_NO_NATIVE='1' +export NIX_ENFORCE_NO_NATIVE +NIX_GHC='/nix/store/w2lsqy70i6xn8l9b9amabdxfcby1hcm1-ghc-9.2.7-with-packages/bin/ghc' +export NIX_GHC +NIX_GHCPKG='/nix/store/w2lsqy70i6xn8l9b9amabdxfcby1hcm1-ghc-9.2.7-with-packages/bin/ghc-pkg' +export NIX_GHCPKG +NIX_GHC_DOCDIR='/nix/store/w2lsqy70i6xn8l9b9amabdxfcby1hcm1-ghc-9.2.7-with-packages/share/doc/ghc/html' +export NIX_GHC_DOCDIR +NIX_GHC_LIBDIR='/nix/store/w2lsqy70i6xn8l9b9amabdxfcby1hcm1-ghc-9.2.7-with-packages/lib/ghc-9.2.7' +export NIX_GHC_LIBDIR +NIX_HARDENING_ENABLE='fortify fortify3 stackprotector pic strictoverflow format relro bindnow' +export NIX_HARDENING_ENABLE +NIX_LDFLAGS='-rpath /media/roman/7dcc2e37-dcb7-456e-aa74-1d22a5dd3f46/home/roman/Projects/nammayatri/sequelize/haskell-sequelize-bodavsky/haskell-sequelize/outputs/out/lib -L/nix/store/n31yg2ngxgb1smg553q4kak5ckf9cnb3-ncurses-6.4/lib -L/nix/store/86wfcbx4zg1dmgrfs2d54flvsdadgb0p-libffi-3.4.4/lib -L/nix/store/44bqlp05nq9ymdjvngjx8fdjrfmgj63h-gmp-with-cxx-6.3.0/lib -L/nix/store/n31yg2ngxgb1smg553q4kak5ckf9cnb3-ncurses-6.4/lib -L/nix/store/86wfcbx4zg1dmgrfs2d54flvsdadgb0p-libffi-3.4.4/lib -L/nix/store/44bqlp05nq9ymdjvngjx8fdjrfmgj63h-gmp-with-cxx-6.3.0/lib' +export NIX_LDFLAGS +NIX_NO_SELF_RPATH='1' +NIX_STORE='/nix/store' +export NIX_STORE +NM='nm' +export NM +OBJCOPY='objcopy' +export OBJCOPY +OBJDUMP='objdump' +export OBJDUMP +OLDPWD='' +export OLDPWD +OPTERR='1' +OSTYPE='linux-gnu' +PATH='/nix/store/w2lsqy70i6xn8l9b9amabdxfcby1hcm1-ghc-9.2.7-with-packages/bin:/nix/store/klxh2qw9ss3fhpia4ak91mbi80dsn83w-cabal-install-3.10.1.0/bin:/nix/store/qbfv4c95gp1j2n684v4fwryxja9w4gqz-ghcid-0.8.9-bin/bin:/nix/store/zfclrxwy4n8d0slg761bkr4m8g7fgwg0-haskell-language-server-2.0.0.1/bin:/nix/store/ymaflkip4w2816g2ywfg5kga11ydsvbh-aeson-pretty-0.8.9/bin:/nix/store/dfv94nlvbj4i4fpc2rqkccr7s8gb6894-ghc-9.2.7/bin:/nix/store/543bdgfbg1l81ili33rmiy7gpmgbb8vd-ghcide-2.0.0.1/bin:/nix/store/gzq4aycwp8y6rqsy4wfrsr2zkh2qjrfm-constraints-extras-0.4.0.0/bin:/nix/store/vsil9z09mg6cid9sz02785vn6psn0mqm-hie-bios-0.12.0/bin:/nix/store/4j6dhkrhz10xbalg6cdic7b8054c0fan-hiedb-0.4.3.0/bin:/nix/store/m89cys4bkpnyc3kjzimd60cmiy9pdd6y-implicit-hie-0.1.2.7/bin:/nix/store/483zzhi4ixk01j396hv4kwchd7gg7v2d-pretty-simple-4.1.2.0/bin:/nix/store/nlvbnk67wdg72b73lww1ji1m45sl1dif-floskell-0.10.7/bin:/nix/store/2v5fc6pwqcgfjgq4s5d0q3g01w3c00sw-fourmolu-0.10.1.0/bin:/nix/store/xvalx00r05m60ic9c31lzaclr0r3lbzb-retrie-1.2.2/bin:/nix/store/ciz7mrx7gs00s76b67kzh7jgpyx73qjn-apply-refact-0.11.0.0/bin:/nix/store/qvfcqs9n373x32fvnlrj67yrfc13gi5n-hlint-3.5/bin:/nix/store/l4cw14w2hdx3w3q8xbpjw1ij90lyzh6i-cpphs-1.20.9.1/bin:/nix/store/14n1w2wknhyjdjdq3zjmaxrvnx6iklhy-hscolour-1.24.4/bin:/nix/store/vjv74yiv7yxyapj8g83xgz9f29lss2s5-ormolu-0.5.2.0/bin:/nix/store/isrl8lc1avvp8b1mfcq8i7wl9gyrlr4z-stylish-haskell-0.14.4.0/bin:/nix/store/dhg99sq2invv3scrlv6abxsb5pcz8ip6-patchelf-0.15.0/bin:/nix/store/civqmfc14c8x7l59nfiwb3qggr8sghrg-gcc-wrapper-12.3.0/bin:/nix/store/ha21dh86hkl3065bgzfrg7zh6f45lmbf-gcc-12.3.0/bin:/nix/store/qw92z3pwsd74a1cyg07riri1d0gma9w6-glibc-2.37-8-bin/bin:/nix/store/5wspmqhgsfs7dza9gcyrj5yxbyd00q7y-coreutils-9.3/bin:/nix/store/cyb4bb44krf4ghw8qasa03sxi2k4g6a4-binutils-wrapper-2.40/bin:/nix/store/9g6n42payxs0czfaghxhhb1jxc9rx53h-binutils-2.40/bin:/nix/store/n31yg2ngxgb1smg553q4kak5ckf9cnb3-ncurses-6.4/bin:/nix/store/5wspmqhgsfs7dza9gcyrj5yxbyd00q7y-coreutils-9.3/bin:/nix/store/039nii0j16pkzabxi9nm5dkh0z8awaww-findutils-4.9.0/bin:/nix/store/pmkqwxzi27lzdzkh2zpqajks9b3521jz-diffutils-3.10/bin:/nix/store/5ccllrgswk61a44yl7jcxs20jql1y32b-gnused-4.9/bin:/nix/store/m88w8in2zf5dwijxypyba02f0ff260rm-gnugrep-3.11/bin:/nix/store/scv8hzzf0vpxaqj96qjhzdcf04aygga1-gawk-5.2.2/bin:/nix/store/ygjmhqdm8labz14xxscz003srl1p2c94-gnutar-1.35/bin:/nix/store/pm6pfypn61d9n9gy19i01ak8hwc6g688-gzip-1.12/bin:/nix/store/ir3achw4jh3qyyac0vkj8jb46l06psqh-bzip2-1.0.8-bin/bin:/nix/store/k51cq3ap20c69wffjsl8qjs21wy5wlrq-gnumake-4.4.1/bin:/nix/store/r4vxljid3iq94jp7qvd639sps0fscwy3-bash-5.2-p15/bin:/nix/store/l6wb1grmnawfvy6xqp5x29jsq9p5dym8-patch-2.7.6/bin:/nix/store/ikzmh72n5f785gkfm02kzg4cl8d7hzmg-xz-5.4.4-bin/bin:/nix/store/yyrljddc4wqraxs72d8kzcf3filcncky-file-5.45/bin' +export PATH +PS4='+ ' +RANLIB='ranlib' +export RANLIB +READELF='readelf' +export READELF +SIZE='size' +export SIZE +SOURCE_DATE_EPOCH='315532800' +export SOURCE_DATE_EPOCH +STRINGS='strings' +export STRINGS +STRIP='strip' +export STRIP +XDG_DATA_DIRS='/nix/store/w2lsqy70i6xn8l9b9amabdxfcby1hcm1-ghc-9.2.7-with-packages/share:/nix/store/c1lmqnmpjy8yjkv32xskgaamsincr0zb-attoparsec-0.14.4/share:/nix/store/9vq87md00ggd8ihhqxyh0mp2qc23rhm9-data-array-byte-0.1.0.1/share:/nix/store/klxh2qw9ss3fhpia4ak91mbi80dsn83w-cabal-install-3.10.1.0/share:/nix/store/gjxwrvqb80c08wmyg17pvbwm5k8vvqcl-data-array-byte-0.1.0.1/share:/nix/store/dfv94nlvbj4i4fpc2rqkccr7s8gb6894-ghc-9.2.7/share:/nix/store/1nr646p3bvg7nyfw6qcnk226xmjr0647-fail-4.9.0.0/share:/nix/store/qvfcqs9n373x32fvnlrj67yrfc13gi5n-hlint-3.5/share:/nix/store/dhg99sq2invv3scrlv6abxsb5pcz8ip6-patchelf-0.15.0/share' +export XDG_DATA_DIRS +__structuredAttrs='' +export __structuredAttrs +buildInputs='' +export buildInputs +builder='/nix/store/r4vxljid3iq94jp7qvd639sps0fscwy3-bash-5.2-p15/bin/bash' +export builder +cmakeFlags='' +export cmakeFlags +configureFlags='' +export configureFlags +defaultBuildInputs='' +defaultNativeBuildInputs='/nix/store/dhg99sq2invv3scrlv6abxsb5pcz8ip6-patchelf-0.15.0 /nix/store/8sc724vl78ig662fzlxzg4i6g6m4pf4q-update-autotools-gnu-config-scripts-hook /nix/store/h9lc1dpi14z7is86ffhl3ld569138595-audit-tmpdir.sh /nix/store/m54bmrhj6fqz8nds5zcj97w9s9bckc9v-compress-man-pages.sh /nix/store/wgrbkkaldkrlrni33ccvm3b6vbxzb656-make-symlinks-relative.sh /nix/store/5yzw0vhkyszf2d179m0qfkgxmp5wjjx4-move-docs.sh /nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh /nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh /nix/store/pag6l61paj1dc9sv15l7bm5c17xn5kyk-move-systemd-user-units.sh /nix/store/bxsly8a56yb8kyrq03s82a3vyc8fqrb3-multiple-outputs.sh /nix/store/9n7n6vy7aqncbsdzr3w6bw3bq1a6xm7k-patch-shebangs.sh /nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh /nix/store/xyff06pkhki3qy1ls77w10s0v79c9il0-reproducible-builds.sh /nix/store/ngg1cv31c8c7bcm2n8ww4g06nq7s4zhm-set-source-date-epoch-to-latest.sh /nix/store/sgdq3c3lp6qabfwnrq26qzvrxx101hgi-strip.sh /nix/store/civqmfc14c8x7l59nfiwb3qggr8sghrg-gcc-wrapper-12.3.0' +depsBuildBuild='' +export depsBuildBuild +depsBuildBuildPropagated='' +export depsBuildBuildPropagated +depsBuildTarget='' +export depsBuildTarget +depsBuildTargetPropagated='' +export depsBuildTargetPropagated +depsHostHost='' +export depsHostHost +depsHostHostPropagated='' +export depsHostHostPropagated +depsTargetTarget='' +export depsTargetTarget +depsTargetTargetPropagated='' +export depsTargetTargetPropagated +doCheck='' +export doCheck +doInstallCheck='' +export doInstallCheck +dontAddDisableDepTrack='1' +export dontAddDisableDepTrack +declare -a envBuildBuildHooks=() +declare -a envBuildHostHooks=() +declare -a envBuildTargetHooks=() +declare -a envHostHostHooks=('ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' ) +declare -a envHostTargetHooks=('ccWrapper_addCVars' 'bintoolsWrapper_addLDVars' ) +declare -a envTargetTargetHooks=() +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/5wspmqhgsfs7dza9gcyrj5yxbyd00q7y-coreutils-9.3 /nix/store/039nii0j16pkzabxi9nm5dkh0z8awaww-findutils-4.9.0 /nix/store/pmkqwxzi27lzdzkh2zpqajks9b3521jz-diffutils-3.10 /nix/store/5ccllrgswk61a44yl7jcxs20jql1y32b-gnused-4.9 /nix/store/m88w8in2zf5dwijxypyba02f0ff260rm-gnugrep-3.11 /nix/store/scv8hzzf0vpxaqj96qjhzdcf04aygga1-gawk-5.2.2 /nix/store/ygjmhqdm8labz14xxscz003srl1p2c94-gnutar-1.35 /nix/store/pm6pfypn61d9n9gy19i01ak8hwc6g688-gzip-1.12 /nix/store/ir3achw4jh3qyyac0vkj8jb46l06psqh-bzip2-1.0.8-bin /nix/store/k51cq3ap20c69wffjsl8qjs21wy5wlrq-gnumake-4.4.1 /nix/store/r4vxljid3iq94jp7qvd639sps0fscwy3-bash-5.2-p15 /nix/store/l6wb1grmnawfvy6xqp5x29jsq9p5dym8-patch-2.7.6 /nix/store/ikzmh72n5f785gkfm02kzg4cl8d7hzmg-xz-5.4.4-bin /nix/store/yyrljddc4wqraxs72d8kzcf3filcncky-file-5.45' +installPhase='echo $nativeBuildInputs $buildInputs > $out' +export installPhase +mesonFlags='' +export mesonFlags +name='ghc-shell-for-sequelize-1.1.0.0-0-env' +export name +nativeBuildInputs='/nix/store/w2lsqy70i6xn8l9b9amabdxfcby1hcm1-ghc-9.2.7-with-packages /nix/store/klxh2qw9ss3fhpia4ak91mbi80dsn83w-cabal-install-3.10.1.0 /nix/store/06la1an5c8adk0mllh42fv79a8nz4ka2-ghcid-0.8.9 /nix/store/zfclrxwy4n8d0slg761bkr4m8g7fgwg0-haskell-language-server-2.0.0.1 /nix/store/qvfcqs9n373x32fvnlrj67yrfc13gi5n-hlint-3.5' +export nativeBuildInputs +out='/media/roman/7dcc2e37-dcb7-456e-aa74-1d22a5dd3f46/home/roman/Projects/nammayatri/sequelize/haskell-sequelize-bodavsky/haskell-sequelize/outputs/out' +export out +outputBin='out' +outputDev='out' +outputDevdoc='REMOVE' +outputDevman='out' +outputDoc='out' +outputInclude='out' +outputInfo='out' +outputLib='out' +outputMan='out' +outputs='out' +export outputs +patches='' +export patches +phases='installPhase' +export phases +pkg='/nix/store/civqmfc14c8x7l59nfiwb3qggr8sghrg-gcc-wrapper-12.3.0' +declare -a pkgsBuildBuild=() +declare -a pkgsBuildHost=('/nix/store/w2lsqy70i6xn8l9b9amabdxfcby1hcm1-ghc-9.2.7-with-packages' '/nix/store/c1lmqnmpjy8yjkv32xskgaamsincr0zb-attoparsec-0.14.4' '/nix/store/3rm0q64amgnd9dphizklygifpjnxcxdz-scientific-0.3.7.0' '/nix/store/dp2yx6f35gsj3zh8jqb0wlywpvnbjpjz-hashable-1.4.2.0' '/nix/store/9vq87md00ggd8ihhqxyh0mp2qc23rhm9-data-array-byte-0.1.0.1' '/nix/store/61lvddf1iak0ymzwznjm3j8iq9n4dgg1-integer-logarithms-1.0.3.1' '/nix/store/0pdp27llxr2c3sy1ddm98wid1gq6vhzm-primitive-0.8.0.0' '/nix/store/p3hby43a6rrcppv47s9k28kyx1n61p7w-base-compat-batteries-0.12.3' '/nix/store/31wdkxxc903ri71y3pwxnj2dlixj65zq-base-compat-0.12.3' '/nix/store/cba8shlw34010m3rxym24bbvwz20idkg-data-fix-0.3.2' '/nix/store/ir34h2ylnahv7icgxa3mxn38hp78p30w-dlist-1.0' '/nix/store/s7kvyj9vni0yirbxs6mfd6zvraf8jd3s-generically-0.1.1' '/nix/store/ggwhscfbmd4k9p2c3nf51kf39ihhj6cb-base-orphans-0.9.0' '/nix/store/7afxjdbbqxa6sa3wvmry4g8irrfs9z4g-indexed-traversable-0.1.2.1' '/nix/store/k5gnzyhaziz8jjvw9v5y7wpr18npgah7-OneTuple-0.4.1.1' '/nix/store/v2cb1kp5i0wwif0qwp95dysps8vx8h9a-QuickCheck-2.14.3' '/nix/store/gnc2r4mj0jwbs0dgdy5p3i2sqafs3gsd-random-1.2.1.1' '/nix/store/v9rlg2vjbr6madr90wkhq9zgwq6i78i3-splitmix-0.1.0.4' '/nix/store/v9rlg2vjbr6madr90wkhq9zgwq6i78i3-splitmix-0.1.0.4' '/nix/store/9y0j0yy209k14xm7v7zzf973n50wb8kg-semialign-1.3' '/nix/store/0vsjrmnf5jp06yl403x9p5774ifkjq5w-indexed-traversable-instances-0.1.1.2' '/nix/store/8lkm6gd3rnnh8xg58jp1p7y9zgv3rrpq-tagged-0.8.7' '/nix/store/9mib02snyrzpcgkmfixffb75zg7gwgkj-unordered-containers-0.2.19.1' '/nix/store/xrkawh3gpha4ypqj4z1y6kqxbpdf4p61-vector-0.13.0.0' '/nix/store/5wdj7laa3faad68phl70s4af7wb82x45-vector-stream-0.1.0.0' '/nix/store/p4jm5isgkwpdr2hhvgqvxfdqq6ys0s1y-semigroupoids-5.3.7' '/nix/store/0s7xfgbcrpsfl7hdg3875calnwhfwbjg-bifunctors-5.5.15' '/nix/store/mij2a9d9cknhcrymlkwi3033kanc4c16-comonad-5.0.8' '/nix/store/1rjkqi3b99parf7nvg4j0nxachnm40m5-distributive-0.6.2.1' '/nix/store/g609vicmxqw6ckggrpj0y561n85y92z1-transformers-compat-0.7.2' '/nix/store/q1a9bl71rpwswacl541961155nhdm6ka-th-abstraction-0.4.5.0' '/nix/store/hjidvmyczhqzvp18ic4dia42lzwkis6l-contravariant-1.5.5' '/nix/store/apsfdr670inbc83q4b55shccf889im8q-StateVar-1.2.2' '/nix/store/fh9xjswfb7kp0pfip9xb8i3y9dj5g3gc-these-1.2' '/nix/store/6gfb6gf2a1jcacn3khps1c8rcji0wyxx-assoc-1.1' '/nix/store/rg9gp4x1vly9iyvja1cplpxk0vvhd3s8-foldable1-classes-compat-0.1' '/nix/store/3j0g2z6yb0h6kphpydmg1i6j74ddc2gm-strict-0.5' '/nix/store/wajzbgbaz7x2rwd4svahvrkp9vr0sj16-text-short-0.1.5' '/nix/store/l35frlqrns5g4m8xw3r82iacj8cyrf4w-time-compat-1.9.6.1' '/nix/store/ikn21ykk0aj1v2kbkkyrpg79bs3cfnm2-uuid-types-1.0.5' '/nix/store/angl3iqfwk3y6nl4610xqm5xwqg79x2k-witherable-0.4.2' '/nix/store/klxh2qw9ss3fhpia4ak91mbi80dsn83w-cabal-install-3.10.1.0' '/nix/store/zia3c0srj572y19s4p16xc24w7l7pchi-async-2.2.4' '/nix/store/l1bybi17fqjj8ml8wfc3qy9rdhrizhx9-hashable-1.4.2.0' '/nix/store/gjxwrvqb80c08wmyg17pvbwm5k8vvqcl-data-array-byte-0.1.0.1' '/nix/store/b58mmmhw6gah587f7scsz1mfxr4dag51-base16-bytestring-1.0.2.0' '/nix/store/j4jikv3z7n164ygijwkvli54c1nqrj7z-Cabal-3.10.1.0' '/nix/store/ri37acmk7qwnib704g9h7q74yi1r70qw-Cabal-syntax-3.10.1.0' '/nix/store/0qnnryzwyvgnfbvrsjp2ragn2j4yrn04-directory-1.3.7.1' '/nix/store/0qnnryzwyvgnfbvrsjp2ragn2j4yrn04-directory-1.3.7.1' '/nix/store/6xa73kx329ia2mas2z5yj40jnm6qlf54-process-1.6.17.0' '/nix/store/0s7mlrrj6cvw27gh2jp6imkcbmyqxyvn-cabal-install-solver-3.10.1.0' '/nix/store/wndzmz83991qrkzdmp60c9b1xwlrgq36-edit-distance-0.2.2.1' '/nix/store/1g83fc41vpxln8nrs9ry9cvmz84lmbvn-cryptohash-sha256-0.11.102.1' '/nix/store/dmp3ykm61k2571lk8hdsn7kbv3b4zv7h-echo-0.1.4' '/nix/store/dhgr8vf5ylxk024y0mhb7r11ad682zhb-hackage-security-0.6.2.3' '/nix/store/21yifi9zwxbrfd6mfs5m3chh85r5jbz2-base64-bytestring-1.2.1.0' '/nix/store/qzfnz7al47hw309b99vh18z63gbn5pv1-ed25519-0.0.5.0' '/nix/store/f7adp5ii2frbaj9a9r9la28g5xambnml-lukko-0.1.1.3' '/nix/store/70zs80204xwm4p2mhcx106vmln50i24x-network-3.1.4.0' '/nix/store/ny5r11iw8gpqfqa8adpjjb9b7xlp2car-network-uri-2.6.4.2' '/nix/store/zkrrnc7m8fr9qmg85pp69icqwx2zza5v-th-compat-0.1.4' '/nix/store/rpqb2d6hzkc5k424nj4zr7d7kh9m1wr8-tar-0.5.1.1' '/nix/store/88k1501ppxfgavilr1s2cm40g1xz7fnw-zlib-0.6.3.0' '/nix/store/dsh3qjbcrsbv7qhizq9g16p6h9fpg3sy-HTTP-4000.4.1' '/nix/store/1rrbzn389ksc5wy7kjzvisgmbzrg7yzq-regex-base-0.94.0.2' '/nix/store/bjm4xpac1w68yx0y0g4issji2mr7yry6-regex-posix-0.96.0.1' '/nix/store/7p5h5fxdcw115l4v2z7rpyq3166qbncx-resolv-0.1.2.0' '/nix/store/f773xdsv80bjz4a4v9p96r18bylxd72s-safe-exceptions-0.1.7.4' '/nix/store/06la1an5c8adk0mllh42fv79a8nz4ka2-ghcid-0.8.9' '/nix/store/v9pyd24p663kdlj6r1jxl75dnd043hks-ansi-terminal-0.11.5' '/nix/store/n1mh7j4abqprbx0sj5q74qbq435w2r6x-ansi-terminal-types-0.11.5' '/nix/store/c4mc07z4g494jw6qh9vih854w24q7h0v-colour-2.3.6' '/nix/store/c4mc07z4g494jw6qh9vih854w24q7h0v-colour-2.3.6' '/nix/store/cylfafhpxwi6xd62gj4m3zfqi7zfz2jc-cmdargs-0.10.22' '/nix/store/irfziwg40hb0k8q72cga3fcjigjrmj3f-extra-1.7.14' '/nix/store/dkq57y6qrf81dj48jdydb2i4m5zsm7yc-clock-0.8.3' '/nix/store/dar5w3xs17ggc9vclricbapbwr79kc3n-fsnotify-0.4.1.0' '/nix/store/w63zfy1ggk47skmhmiivjwv351a0y5s1-async-2.2.4' '/nix/store/7yy0sdb365hp5qyrvj5bd9x8avli348l-hinotify-0.4.1' '/nix/store/5nkxsh6hg50p93fi1baa0rfdngmjpc90-monad-control-1.0.3.1' '/nix/store/kaz4qhlhi6nzj0fm3a3hpm7jrbzhykqp-transformers-base-0.4.6' '/nix/store/97zpfq64ymm7wwnx220wd6r9yf8az5c0-safe-exceptions-0.1.7.4' '/nix/store/6as1nh6mrihs2jd07x8sk2ji9w1qg02i-unix-compat-0.7' '/nix/store/0kh7aybkwd1ziv0s625fyghi4jk0iy2m-terminal-size-0.3.4' '/nix/store/qbfv4c95gp1j2n684v4fwryxja9w4gqz-ghcid-0.8.9-bin' '/nix/store/zfclrxwy4n8d0slg761bkr4m8g7fgwg0-haskell-language-server-2.0.0.1' '/nix/store/ymaflkip4w2816g2ywfg5kga11ydsvbh-aeson-pretty-0.8.9' '/nix/store/9ypy5fc37czgm80xz7sgn34w8pi402cd-aeson-2.1.2.1' '/nix/store/9ypy5fc37czgm80xz7sgn34w8pi402cd-aeson-2.1.2.1' '/nix/store/szjr5kr94h4kn8l61ij60v48sw5w38cx-base16-bytestring-1.0.2.0' '/nix/store/j61f875va2q1qw2kdiaf5iyks98s0vfk-cryptohash-sha1-0.11.101.0' '/nix/store/lg0rqnzy98h619bjddr4r3csdgvy7468-data-default-0.7.1.1' '/nix/store/d62qm895f0c2mr9xbwa7kvcg6brcxkwz-data-default-class-0.1.2.0' '/nix/store/xrs5j0bi0ng63izirm71ncf1xxcmrk3y-data-default-instances-containers-0.0.1' '/nix/store/k0cdcrw4dzgpak5wvawpcbpr95mcisbg-data-default-instances-dlist-0.0.1' '/nix/store/01dqzz7cmsq6ihykzgpna056mh9yvzad-data-default-instances-old-locale-0.0.1' '/nix/store/rsrdvx5cd40ab2kkq8522dz43wp8y4n0-old-locale-1.0.0.7' '/nix/store/dfv94nlvbj4i4fpc2rqkccr7s8gb6894-ghc-9.2.7' '/nix/store/543bdgfbg1l81ili33rmiy7gpmgbb8vd-ghcide-2.0.0.1' '/nix/store/ky0d4ihyfq6m20f3049gh5qxrwkrxbdv-case-insensitive-1.2.1.0' '/nix/store/yy3s02d66586npql2pg7s69cc639hqrg-co-log-core-0.3.2.0' '/nix/store/jki5hmhkqn70jjxx0grz6mcxfispr21f-dependent-map-0.4.0.0' '/nix/store/gzq4aycwp8y6rqsy4wfrsr2zkh2qjrfm-constraints-extras-0.4.0.0' '/nix/store/gyrlfldq4xffcnz3223q9js03kk7h57z-constraints-0.13.4' '/nix/store/yr9l0igjnpffz3ids76qjg68wjlzd6l2-type-equality-1' '/nix/store/952iywhp4772jxwdpwn953jjhf47myyf-dependent-sum-0.7.2.0' '/nix/store/gqy0wss7hyq172h3sd8k1sr4y5gcwq1h-some-1.0.4.1' '/nix/store/n39xjwl47g96qrwiddq0m371whmsp1n2-Diff-0.4.1' '/nix/store/li0vpbwynia6gbihnk13gmwkcx2hmfjk-enummapset-0.7.1.0' '/nix/store/cs709avp0aj29p31l9mkzgkni9pkn22s-fingertree-0.1.5.0' '/nix/store/li3f8d6yar6ivq7sb1pp2xzdlmildwns-focus-1.0.3.1' '/nix/store/93inalii0rr2pgl7cal6q3r95vqxmcls-ghc-check-0.5.0.8' '/nix/store/inxmlbzv0dk4s3q1x9r59afyydl3bqxl-ghc-paths-0.1.0.12' '/nix/store/isg423038dnzwhdvmp9rr5z8agvaq6xz-th-compat-0.1.4' '/nix/store/iscwnrn938rmdk37rhy29axx0qqy0fz5-ghc-trace-events-0.1.2.7' '/nix/store/6nrij18rakz0l5rirzkxvxnkxlp1ax3c-Glob-0.10.2' '/nix/store/9q9igbcarnwx1rr9nrm95q1gb7yb52w1-haddock-library-1.11.0' '/nix/store/vsil9z09mg6cid9sz02785vn6psn0mqm-hie-bios-0.12.0' '/nix/store/q10ax3375hc0r9qgl7z8d2yrhr5lxgfg-conduit-1.3.5' '/nix/store/2j87b6jmh4b35z3jyszywah63cr8q7vs-mono-traversable-1.0.15.3' '/nix/store/qs8149n0xdlzk05zhl5c1f2vv846x9mf-split-0.2.3.5' '/nix/store/ac4b41r16qvffq20262nwrinyz0i9qvq-vector-algorithms-0.9.0.1' '/nix/store/ichlrvsb94ij94qn4n4yyqajr5dqms46-bitvec-1.1.4.0' '/nix/store/4ilwhzmb6jdk5gzlzk61wm4kddvjr6kf-resourcet-1.2.6' '/nix/store/qmncxdq5d4ryikbwirl8chqdayl83ay1-unliftio-core-0.2.1.0' '/nix/store/qmncxdq5d4ryikbwirl8chqdayl83ay1-unliftio-core-0.2.1.0' '/nix/store/9qgp3inx9fqgfpvddv062ar97vnm3sz7-conduit-extra-1.3.6' '/nix/store/ba9bz2m29cza1z4kgiskynk2nspg3n92-network-3.1.4.0' '/nix/store/63hdcb3pac85hq3bdpcgb2s1wzbqakcm-streaming-commons-0.2.2.6' '/nix/store/ga3bwxnmpw5xwm2m6agx3si1rbfadmbr-zlib-0.6.3.0' '/nix/store/2hwqphl54brzfngf73jj63zdhx8vb2kh-typed-process-0.2.11.0' '/nix/store/rwk7ddczili1qjx5s8rvghjrms3wlxy9-file-embed-0.0.15.0' '/nix/store/awhv33r9p0zr38hdbv5kcyxar1gr7dx5-prettyprinter-1.7.1' '/nix/store/9fkrx9pc31cd7x2cjday3gwmbs1nx5pi-temporary-1.3' '/nix/store/yw84mxydxgjwn4c56snwg2nd7n6vibc6-yaml-0.11.11.2' '/nix/store/51ggpv854z1xip8gfk5j4bzyb6ck62jr-libyaml-0.1.2' '/nix/store/ngck68gyxaimdr4glhq8ki5zix08lf70-optparse-applicative-0.17.1.0' '/nix/store/y00yxid12k68ahwhx6r4d93gxzn1dkaf-ansi-wl-pprint-0.6.9' '/nix/store/zfk72dhd6vfwrmmpsb5s6zsd9h9w8qfd-hie-compat-0.3.1.1' '/nix/store/4j6dhkrhz10xbalg6cdic7b8054c0fan-hiedb-0.4.3.0' '/nix/store/rwrcw96yiiqzd14mlk6wgg0ijkfbndnm-algebraic-graphs-0.7' '/nix/store/qkik8rv18xby3lr5xmazf9w2f21ca46f-lucid-2.11.20230408' '/nix/store/srbd7bjnx12l2i6ydzh8mvmg323r7mv6-blaze-builder-0.4.2.2' '/nix/store/9di3zvil9dl99lnvbnl6dcykz13zfmc2-mmorph-1.2.0' '/nix/store/3l30zjh07vjy5fx2vawbyxg6qvx719qd-sqlite-simple-0.4.18.2' '/nix/store/wabf233wy1ji7cvv5qznyd1fa67hrwlk-blaze-textual-0.2.3.1' '/nix/store/qa3ms37f3d4nbwln25rf4x020py1ycaf-direct-sqlite-2.3.28' '/nix/store/r05p9jl6xzmprr783b91dijz980lph0k-Only-0.1' '/nix/store/w3al9r5wp8shnlln2mh0b4dqfhhjrd6y-hls-graph-2.0.0.1' '/nix/store/41b6pvn72n9ah3lqprb7aiwj6mix65vv-js-dgtable-0.5.2' '/nix/store/qxg5fkbi3s735b59gmygf16bmcmaxiz2-js-flot-0.8.3' '/nix/store/d3addl5y4z5pwnsbm3hg06pnavw2pizw-js-jquery-3.3.1' '/nix/store/pky288dnmyif1rld0rnxisy8a4gm3h9n-list-t-1.0.5.6' '/nix/store/r20nkhg1211j0vwm6jf81fjsvpla73w9-foldl-1.4.15' '/nix/store/sl8kzq5imdl02cr7ay6xjfdj8d15c28d-profunctors-5.6.2' '/nix/store/gprxrk54gn7zhgbn0v3lyx387y98c60s-logict-0.8.0.0' '/nix/store/lx1xnrp4kpwn5vxr6dm3kl94c825cnkm-stm-containers-1.2.0.2' '/nix/store/p8wns49ncv775h3bzhadqpq4y04w1gal-deferred-folds-0.9.18.3' '/nix/store/n143cszdj027977ayvmxpnhpp661flr9-stm-hamt-1.2.0.11' '/nix/store/lr4ic0qvpbahkbvrv28nxnf7d8nyhvfh-primitive-extras-0.10.1.7' '/nix/store/7hg6np1x1hrfq3kchs2fxyn49v4zk526-cereal-0.5.8.3' '/nix/store/hd1v5z8rfz8jgz5ss9y87gj27v8fbn0y-primitive-unlifted-0.1.3.1' '/nix/store/iqj79w76dzm9zafl9djf437mx1yn7894-unliftio-0.2.25.0' '/nix/store/qwrwlrqgxjqfy6l66r00kfy22g9p4xyj-hls-plugin-api-2.0.0.1' '/nix/store/lc1rzmrfqln417jbjrw363rwhadxvdrb-hw-fingertree-0.1.2.1' '/nix/store/khc78wmawb2a4fw7996pad9zk1k0jfgd-hw-prim-0.6.3.2' '/nix/store/pky41ca95ysjmpzw5qym19xl5m677vjg-mmap-0.5.9' '/nix/store/8wj0p9ifsqq3p8nmj2rq43aygzb4s226-lens-5.2.2' '/nix/store/c299qjz1i7fv6xhmpnfvvvxysyrf627a-call-stack-0.4.0' '/nix/store/xnxnnm186pz7ynblwap04k5rc6mc82h5-free-5.1.10' '/nix/store/wynjbiqzz9xh2wf8ccw2wks52cwlzz69-kan-extensions-5.2.5' '/nix/store/30alqjvkmsr1c6s7ba04lwcqzybwdyq6-adjunctions-4.4.2' '/nix/store/s0a7s379kh3kr5jj8b1i7cdyj8q2n4ic-semigroups-0.20' '/nix/store/s9lbixss1is01k4ggsxjavrsmhl4dh0k-void-0.7.3' '/nix/store/8337ql9p6zfsdrpjc19irkbvkchzlzs3-invariant-0.6.1' '/nix/store/8sw1j4d2xvq0lrvslc2bfk7vv1wvd7y6-parallel-3.2.2.0' '/nix/store/lda32kq8bl8zgpkmj8wv1mxj524d9h3q-reflection-2.1.7' '/nix/store/bi2zff5zgap3qxzi088kdbn252s678b8-lens-aeson-1.2.3' '/nix/store/1r80vj0r1vjw98whx2ngx1nw2n57ffdp-lsp-1.6.0.0' '/nix/store/4vi7bvjlizb5150z4ahjk52b410srz84-lsp-types-1.6.0.0' '/nix/store/fx3abnnx03s4jasli0g6h5p9kzyc9z98-mod-0.2.0.1' '/nix/store/xi62pa5zhcgf0ajscg1x3anhi6ym3mac-semirings-0.6' '/nix/store/876d97pcj7xk7gj942zwzxwzfq8a72gn-network-uri-2.6.4.2' '/nix/store/yhz4n9bp4fzj3k7f858x6vxs4vcksf4p-safe-0.3.19' '/nix/store/dg703jchhqn4dai0301xbcq00z1jxd6b-sorted-list-0.2.1.0' '/nix/store/74k4p99affmmmb4gz0gjhq3999gyjzfz-text-rope-0.2' '/nix/store/2xgqb2h3yyh1acapmjyln1ylx7in76m5-uuid-1.3.15' '/nix/store/cxyppnpp268h7nv3yvqrzib5r6wll5gk-cryptohash-md5-0.11.101.0' '/nix/store/9s4hx66569v7rpfnc4wnwqih8vwsbrb0-entropy-0.4.1.10' '/nix/store/c1kgarfg0wyp63gjrfd9kxy6z3r9j6wq-network-info-0.2.1' '/nix/store/nzckhcg3dnf1kgda0pghf53fqvv7bbgl-megaparsec-9.3.1' '/nix/store/wq8plpw10ahf71hjjdw1b8grfhggw4jx-parser-combinators-1.3.0' '/nix/store/p6f6hzxkfv1vk7cyamk5rpk2wjilr5d3-opentelemetry-0.8.0' '/nix/store/nhy9mjgalhjflrlkxrn9377kfz2w7407-regex-tdfa-1.3.2.1' '/nix/store/m89cys4bkpnyc3kjzimd60cmiy9pdd6y-implicit-hie-0.1.2.7' '/nix/store/aw5pk4x83b9my7vc3jispf07v1rv7rs2-filepattern-0.1.3' '/nix/store/aw5pk4x83b9my7vc3jispf07v1rv7rs2-filepattern-0.1.3' '/nix/store/w7y72vkl3i6jdcbdx9i0pj3yxxqhpbsg-implicit-hie-cradle-0.5.0.1' '/nix/store/yvpjzyc26cmpc6adpw4h4davz9pp812f-prettyprinter-ansi-terminal-1.1.3' '/nix/store/yb6p9a6pacha1myw0xkkw5jj0r3z911c-syb-0.7.2.3' '/nix/store/28kvxfk82pgkp2pmlqkflcghig4k605h-gitrev-1.3.1' '/nix/store/4mqj7qcphddghr1w5gn0szk4272mbks5-githash-0.1.7.0' '/nix/store/4x2f6mfrdx2vwb73ascyprjj6axmdx32-hls-alternate-number-format-plugin-2.0.0.1' '/nix/store/105zijynb0lcxlbricd5flxvdkwzkz4h-hls-cabal-fmt-plugin-2.0.0.1' '/nix/store/gyrqi84rca0rwwxrz3g9d6hrhc4z478y-hls-cabal-plugin-2.0.0.1' '/nix/store/3apzkgyvdszgs66hdd2cgkajnfcwdafc-hls-call-hierarchy-plugin-2.0.0.1' '/nix/store/5qv5mgmqaahii5wb0c1m9dwnzl45s7ik-hls-change-type-signature-plugin-2.0.0.1' '/nix/store/7mbfvllbf2nf7y91hm5r2ankij5dfmrh-hls-class-plugin-2.0.0.1' '/nix/store/p68zjra006liclz35kjkiw4svprlbr9y-ghc-exactprint-1.5.0' '/nix/store/1nr646p3bvg7nyfw6qcnk226xmjr0647-fail-4.9.0.0' '/nix/store/w03ng4jj97vhhh2ig7hhx7swr94vgfp5-ordered-containers-0.2.3' '/nix/store/jg4rjm6qcwsnbxyw8n5vsp7g1sfaagay-hls-code-range-plugin-2.0.0.1' '/nix/store/y8wnvzxdfhn1lfanfx8vxk2km6rjpz1x-hls-eval-plugin-2.0.0.1' '/nix/store/483zzhi4ixk01j396hv4kwchd7gg7v2d-pretty-simple-4.1.2.0' '/nix/store/0y48chzj3ik6z2nz98am88n3l8nvs62b-hls-explicit-fixity-plugin-2.0.0.1' '/nix/store/n8mly1awgpw0m033kai0advsxs6kk94k-hls-explicit-imports-plugin-2.0.0.1' '/nix/store/sg0h14sd0qahnmmafj2yw2j39lxc1dd4-hls-explicit-record-fields-plugin-2.0.0.1' '/nix/store/14qx79nzschwrxvcy0ypa2knawkcmy6n-hls-floskell-plugin-2.0.0.1' '/nix/store/nlvbnk67wdg72b73lww1ji1m45sl1dif-floskell-0.10.7' '/nix/store/ylcv4fr7chnqd15gh24hyndhskhhilzs-haskell-src-exts-1.23.1' '/nix/store/6ff2012690lmaijiz0kf712vh4jdmvpf-monad-dijkstra-0.1.1.3' '/nix/store/0vbm8g1a8kqn6jvypjdk32wmsgpbcjwz-psqueues-0.2.7.3' '/nix/store/dnkhs4qgrddm3fqqbjn0k36v17gal8cp-utf8-string-1.0.2' '/nix/store/pxqvr8wd13j5g04iwwy91bpd9ab5y307-hls-fourmolu-plugin-2.0.0.1' '/nix/store/2v5fc6pwqcgfjgq4s5d0q3g01w3c00sw-fourmolu-0.10.1.0' '/nix/store/9z1r9sbq8kh3a8mbcbp8i881l76ik8bh-Cabal-syntax-3.8.1.0' '/nix/store/ld5y8848ibji92x5s2rr47l51l0p9hyx-ghc-lib-parser-9.4.5.20230430' '/nix/store/g1npaf4h8sfr7vsa17fp9w81nxx1391x-MemoTrie-0.6.11' '/nix/store/k9whjc4mrkpnfaip5na90zhzsnbm8w21-newtype-generics-0.6.2' '/nix/store/1x5c5p0zdiz1f664w5aq2l6fm967c5iq-th-lift-instances-0.1.20' '/nix/store/yymj28raypj4n5p4mn6cdqbvl44pz5gr-th-lift-0.8.3' '/nix/store/7937gpyicwd48pcgabaanyyll4d98idc-process-extras-0.7.4' '/nix/store/6ni3jx11iirc9q3k8y4k2vrp9kzhp1a7-generic-deriving-1.14.4' '/nix/store/lvp5azyyiw89mqs3vbnqbibpdn71lnyj-ListLike-4.7.8.1' '/nix/store/w1qcyvyvfa229yynrlnf72wdnnbip7d0-fmlist-0.9.4' '/nix/store/cm13yx4h2fbwqyydf3bjrwf0lbqz0if3-hls-gadt-plugin-2.0.0.1' '/nix/store/pifiksbgvz7awi3yy3wgj3fgdvmr0yp8-hls-refactor-plugin-2.0.0.1' '/nix/store/xvalx00r05m60ic9c31lzaclr0r3lbzb-retrie-1.2.2' '/nix/store/5szvdvmsim3n1h9644805pvk26wp6kz5-random-shuffle-0.0.4' '/nix/store/7fwnc60xxn2fpaiz6hfswrfspal7nzmv-MonadRandom-0.6' '/nix/store/nla5azs4pf06x79ak7b1046gg016h7i7-hls-hlint-plugin-2.0.0.1' '/nix/store/ciz7mrx7gs00s76b67kzh7jgpyx73qjn-apply-refact-0.11.0.0' '/nix/store/4x5nrrc395psfqkwzddnbw9vxs2n79w3-filemanip-0.3.6.3' '/nix/store/y04dlspmdj1gywsfllgp598sl4pzd9bf-refact-0.3.0.2' '/nix/store/bk83cc8cg4gmj8sfm2m2b8cwvh20qdkb-uniplate-1.6.13' '/nix/store/bk83cc8cg4gmj8sfm2m2b8cwvh20qdkb-uniplate-1.6.13' '/nix/store/mwvf9m844kaaraj6z8jyzpnh36xv6d21-ghc-lib-parser-ex-9.4.0.0' '/nix/store/qvfcqs9n373x32fvnlrj67yrfc13gi5n-hlint-3.5' '/nix/store/l4cw14w2hdx3w3q8xbpjw1ij90lyzh6i-cpphs-1.20.9.1' '/nix/store/68s2zpr77y78p1691330nc91a7dwfnz2-polyparse-1.13' '/nix/store/68s2zpr77y78p1691330nc91a7dwfnz2-polyparse-1.13' '/nix/store/qifh2a7gngp16hx1r6xvfdlzlc00vj10-deriving-aeson-0.2.9' '/nix/store/14n1w2wknhyjdjdq3zjmaxrvnx6iklhy-hscolour-1.24.4' '/nix/store/z1qvbfpc7ixisk4ghs1ynv6sypzjqbvh-hls-module-name-plugin-2.0.0.1' '/nix/store/3fvska7gxg0ppxc7b3rkgng4ylqvxgv6-hls-ormolu-plugin-2.0.0.1' '/nix/store/vjv74yiv7yxyapj8g83xgz9f29lss2s5-ormolu-0.5.2.0' '/nix/store/ricdzflymb2fq2y28364rmgx7ypwjl5r-hls-overloaded-record-dot-plugin-2.0.0.1' '/nix/store/sl035vw8swl7z6qkbw02pi31vqfmcq6n-hls-pragmas-plugin-2.0.0.1' '/nix/store/fgkh3hlqbmsq5r0mlmjdx5m7k3cwjix6-fuzzy-0.1.0.1' '/nix/store/5axk6yb3aj5wqzm21nr0q4y248qnq2qx-monoid-subclasses-1.2.3' '/nix/store/8zai94b3n2380fqsyn9zgy3zfalb2939-commutative-semigroups-0.1.0.1' '/nix/store/x23zfj68p3ss1vbilalkh06rjizjqy83-primes-0.2.1.0' '/nix/store/7qw068srz0mqz0p6hxx3l90irn457jp6-hls-qualify-imported-names-plugin-2.0.0.1' '/nix/store/ghfnihyhlvs9djbqqw727gn0pgk600x0-hls-refine-imports-plugin-2.0.0.1' '/nix/store/v1971dwyvy8kilmdl11870kipibhlq34-hls-rename-plugin-2.0.0.1' '/nix/store/708a3sysmfdribigdls5n9gh2m951q9m-hls-retrie-plugin-2.0.0.1' '/nix/store/a232k4nbb09xwvadf5w71021a23z0mms-hls-splice-plugin-2.0.0.1' '/nix/store/x38z6dbzwyfjv4rcdpw7c2vn10ijcnfr-hls-stylish-haskell-plugin-2.0.0.1' '/nix/store/isrl8lc1avvp8b1mfcq8i7wl9gyrlr4z-stylish-haskell-0.14.4.0' '/nix/store/94p8v77mr7pgdc5av9zr0y06vcms64iw-HsYAML-0.2.1.1' '/nix/store/s4b90d1rj0brfaycixc4rscl6zsyzhch-HsYAML-aeson-0.2.0.1' '/nix/store/s4b90d1rj0brfaycixc4rscl6zsyzhch-HsYAML-aeson-0.2.0.1' '/nix/store/28mw3bl3fpvmardf3vklb4q3868qwzsa-optparse-simple-0.1.1.4' '/nix/store/28mw3bl3fpvmardf3vklb4q3868qwzsa-optparse-simple-0.1.1.4' '/nix/store/dhg99sq2invv3scrlv6abxsb5pcz8ip6-patchelf-0.15.0' '/nix/store/8sc724vl78ig662fzlxzg4i6g6m4pf4q-update-autotools-gnu-config-scripts-hook' '/nix/store/h9lc1dpi14z7is86ffhl3ld569138595-audit-tmpdir.sh' '/nix/store/m54bmrhj6fqz8nds5zcj97w9s9bckc9v-compress-man-pages.sh' '/nix/store/wgrbkkaldkrlrni33ccvm3b6vbxzb656-make-symlinks-relative.sh' '/nix/store/5yzw0vhkyszf2d179m0qfkgxmp5wjjx4-move-docs.sh' '/nix/store/fyaryjvghbkpfnsyw97hb3lyb37s1pd6-move-lib64.sh' '/nix/store/kd4xwxjpjxi71jkm6ka0np72if9rm3y0-move-sbin.sh' '/nix/store/pag6l61paj1dc9sv15l7bm5c17xn5kyk-move-systemd-user-units.sh' '/nix/store/bxsly8a56yb8kyrq03s82a3vyc8fqrb3-multiple-outputs.sh' '/nix/store/9n7n6vy7aqncbsdzr3w6bw3bq1a6xm7k-patch-shebangs.sh' '/nix/store/cickvswrvann041nqxb0rxilc46svw1n-prune-libtool-files.sh' '/nix/store/xyff06pkhki3qy1ls77w10s0v79c9il0-reproducible-builds.sh' '/nix/store/ngg1cv31c8c7bcm2n8ww4g06nq7s4zhm-set-source-date-epoch-to-latest.sh' '/nix/store/sgdq3c3lp6qabfwnrq26qzvrxx101hgi-strip.sh' '/nix/store/civqmfc14c8x7l59nfiwb3qggr8sghrg-gcc-wrapper-12.3.0' '/nix/store/cyb4bb44krf4ghw8qasa03sxi2k4g6a4-binutils-wrapper-2.40' ) +declare -a pkgsBuildTarget=() +declare -a pkgsHostHost=('/nix/store/n31yg2ngxgb1smg553q4kak5ckf9cnb3-ncurses-6.4' '/nix/store/86wfcbx4zg1dmgrfs2d54flvsdadgb0p-libffi-3.4.4' '/nix/store/44bqlp05nq9ymdjvngjx8fdjrfmgj63h-gmp-with-cxx-6.3.0' '/nix/store/n31yg2ngxgb1smg553q4kak5ckf9cnb3-ncurses-6.4' ) +declare -a pkgsHostTarget=() +declare -a pkgsTargetTarget=() +declare -a postFixupHooks=('_makeSymlinksRelativeInAllOutputs' '_multioutPropagateDev' ) +declare -a postUnpackHooks=('_updateSourceDateEpochFromSourceRoot' ) +declare -a preConfigureHooks=('_multioutConfig' ) +preConfigurePhases=' updateAutotoolsGnuConfigScriptsPhase' +declare -a preFixupHooks=('_moveToShare' '_multioutDocs' '_multioutDevs' ) +prefix='/media/roman/7dcc2e37-dcb7-456e-aa74-1d22a5dd3f46/home/roman/Projects/nammayatri/sequelize/haskell-sequelize-bodavsky/haskell-sequelize/outputs/out' +declare -a propagatedBuildDepFiles=('propagated-build-build-deps' 'propagated-native-build-inputs' 'propagated-build-target-deps' ) +propagatedBuildInputs='' +export propagatedBuildInputs +declare -a propagatedHostDepFiles=('propagated-host-host-deps' 'propagated-build-inputs' ) +propagatedNativeBuildInputs='' +export propagatedNativeBuildInputs +declare -a propagatedTargetDepFiles=('propagated-target-target-deps' ) +shell='/nix/store/r4vxljid3iq94jp7qvd639sps0fscwy3-bash-5.2-p15/bin/bash' +export shell +shellHook='' +export shellHook +stdenv='/nix/store/1qxkj91n172qnypdrqdybh4p203nax7g-stdenv-linux' +export stdenv +strictDeps='' +export strictDeps +system='x86_64-linux' +export system +declare -a unpackCmdHooks=('_defaultUnpack' ) +_accumFlagsArray () +{ + + local name; + if [ -n "$__structuredAttrs" ]; then + for name in "$@"; + do + local -n nameref="$name"; + flagsArray+=(${nameref+"${nameref[@]}"}); + done; + else + for name in "$@"; + do + local -n nameref="$name"; + case "$name" in + *Array) + flagsArray+=(${nameref+"${nameref[@]}"}) + ;; + *) + flagsArray+=(${nameref-}) + ;; + esac; + done; + fi +} +_activatePkgs () +{ + + local hostOffset targetOffset; + local pkg; + for hostOffset in "${allPlatOffsets[@]}"; + do + local pkgsVar="${pkgAccumVarVars[hostOffset + 1]}"; + for targetOffset in "${allPlatOffsets[@]}"; + do + (( hostOffset <= targetOffset )) || continue; + local pkgsRef="${pkgsVar}[$targetOffset - $hostOffset]"; + local pkgsSlice="${!pkgsRef}[@]"; + for pkg in ${!pkgsSlice+"${!pkgsSlice}"}; + do + activatePackage "$pkg" "$hostOffset" "$targetOffset"; + done; + done; + done +} +_addRpathPrefix () +{ + + if [ "${NIX_NO_SELF_RPATH:-0}" != 1 ]; then + export NIX_LDFLAGS="-rpath $1/lib ${NIX_LDFLAGS-}"; + fi +} +_addToEnv () +{ + + local depHostOffset depTargetOffset; + local pkg; + for depHostOffset in "${allPlatOffsets[@]}"; + do + local hookVar="${pkgHookVarVars[depHostOffset + 1]}"; + local pkgsVar="${pkgAccumVarVars[depHostOffset + 1]}"; + for depTargetOffset in "${allPlatOffsets[@]}"; + do + (( depHostOffset <= depTargetOffset )) || continue; + local hookRef="${hookVar}[$depTargetOffset - $depHostOffset]"; + if [[ -z "${strictDeps-}" ]]; then + local visitedPkgs=""; + for pkg in "${pkgsBuildBuild[@]}" "${pkgsBuildHost[@]}" "${pkgsBuildTarget[@]}" "${pkgsHostHost[@]}" "${pkgsHostTarget[@]}" "${pkgsTargetTarget[@]}"; + do + if [[ "$visitedPkgs" = *"$pkg"* ]]; then + continue; + fi; + runHook "${!hookRef}" "$pkg"; + visitedPkgs+=" $pkg"; + done; + else + local pkgsRef="${pkgsVar}[$depTargetOffset - $depHostOffset]"; + local pkgsSlice="${!pkgsRef}[@]"; + for pkg in ${!pkgsSlice+"${!pkgsSlice}"}; + do + runHook "${!hookRef}" "$pkg"; + done; + fi; + done; + done +} +_allFlags () +{ + + export system pname name version; + for varName in $(awk 'BEGIN { for (v in ENVIRON) if (v ~ /^[a-z][a-zA-Z0-9_]*$/) print v }'); + do + if (( "${NIX_DEBUG:-0}" >= 1 )); then + printf "@%s@ -> %q\n" "${varName}" "${!varName}" 1>&2; + fi; + args+=("--subst-var" "$varName"); + done +} +_assignFirst () +{ + + local varName="$1"; + local _var; + local REMOVE=REMOVE; + shift; + for _var in "$@"; + do + if [ -n "${!_var-}" ]; then + eval "${varName}"="${_var}"; + return; + fi; + done; + echo; + echo "error: _assignFirst: could not find a non-empty variable whose name to assign to ${varName}."; + echo " The following variables were all unset or empty:"; + echo " $*"; + if [ -z "${out:-}" ]; then + echo ' If you do not want an "out" output in your derivation, make sure to define'; + echo ' the other specific required outputs. This can be achieved by picking one'; + echo " of the above as an output."; + echo ' You do not have to remove "out" if you want to have a different default'; + echo ' output, because the first output is taken as a default.'; + echo; + fi; + return 1 +} +_callImplicitHook () +{ + + local def="$1"; + local hookName="$2"; + if declare -F "$hookName" > /dev/null; then + "$hookName"; + else + if type -p "$hookName" > /dev/null; then + source "$hookName"; + else + if [ -n "${!hookName:-}" ]; then + eval "${!hookName}"; + else + return "$def"; + fi; + fi; + fi +} +_defaultUnpack () +{ + + local fn="$1"; + local destination; + if [ -d "$fn" ]; then + destination="$(stripHash "$fn")"; + if [ -e "$destination" ]; then + echo "Cannot copy $fn to $destination: destination already exists!"; + echo "Did you specify two \"srcs\" with the same \"name\"?"; + return 1; + fi; + cp -pr --reflink=auto -- "$fn" "$destination"; + else + case "$fn" in + *.tar.xz | *.tar.lzma | *.txz) + xz -d < "$fn" | tar xf - --warning=no-timestamp + ;; + *.tar | *.tar.* | *.tgz | *.tbz2 | *.tbz) + tar xf "$fn" --warning=no-timestamp + ;; + *) + return 1 + ;; + esac; + fi +} +_doStrip () +{ + + local -ra flags=(dontStripHost dontStripTarget); + local -ra debugDirs=(stripDebugList stripDebugListTarget); + local -ra allDirs=(stripAllList stripAllListTarget); + local -ra stripCmds=(STRIP STRIP_FOR_TARGET); + local -ra ranlibCmds=(RANLIB RANLIB_FOR_TARGET); + stripDebugList=${stripDebugList[*]:-lib lib32 lib64 libexec bin sbin}; + stripDebugListTarget=${stripDebugListTarget[*]:-}; + stripAllList=${stripAllList[*]:-}; + stripAllListTarget=${stripAllListTarget[*]:-}; + local i; + for i in ${!stripCmds[@]}; + do + local -n flag="${flags[$i]}"; + local -n debugDirList="${debugDirs[$i]}"; + local -n allDirList="${allDirs[$i]}"; + local -n stripCmd="${stripCmds[$i]}"; + local -n ranlibCmd="${ranlibCmds[$i]}"; + if [[ -n "${dontStrip-}" || -n "${flag-}" ]] || ! type -f "${stripCmd-}" 2> /dev/null 1>&2; then + continue; + fi; + stripDirs "$stripCmd" "$ranlibCmd" "$debugDirList" "${stripDebugFlags[*]:--S -p}"; + stripDirs "$stripCmd" "$ranlibCmd" "$allDirList" "${stripAllFlags[*]:--s -p}"; + done +} +_eval () +{ + + if declare -F "$1" > /dev/null 2>&1; then + "$@"; + else + eval "$1"; + fi +} +_makeSymlinksRelative () +{ + + local symlinkTarget; + if [ "${dontRewriteSymlinks-}" ] || [ ! -e "$prefix" ]; then + return; + fi; + while IFS= read -r -d '' f; do + symlinkTarget=$(readlink "$f"); + if [[ "$symlinkTarget"/ != "$prefix"/* ]]; then + continue; + fi; + if [ ! -e "$symlinkTarget" ]; then + echo "the symlink $f is broken, it points to $symlinkTarget (which is missing)"; + fi; + echo "rewriting symlink $f to be relative to $prefix"; + ln -snrf "$symlinkTarget" "$f"; + done < <(find $prefix -type l -print0) +} +_makeSymlinksRelativeInAllOutputs () +{ + + local output; + for output in $(getAllOutputNames); + do + prefix="${!output}" _makeSymlinksRelative; + done +} +_moveLib64 () +{ + + if [ "${dontMoveLib64-}" = 1 ]; then + return; + fi; + if [ ! -e "$prefix/lib64" -o -L "$prefix/lib64" ]; then + return; + fi; + echo "moving $prefix/lib64/* to $prefix/lib"; + mkdir -p $prefix/lib; + shopt -s dotglob; + for i in $prefix/lib64/*; + do + mv --no-clobber "$i" $prefix/lib; + done; + shopt -u dotglob; + rmdir $prefix/lib64; + ln -s lib $prefix/lib64 +} +_moveSbin () +{ + + if [ "${dontMoveSbin-}" = 1 ]; then + return; + fi; + if [ ! -e "$prefix/sbin" -o -L "$prefix/sbin" ]; then + return; + fi; + echo "moving $prefix/sbin/* to $prefix/bin"; + mkdir -p $prefix/bin; + shopt -s dotglob; + for i in $prefix/sbin/*; + do + mv "$i" $prefix/bin; + done; + shopt -u dotglob; + rmdir $prefix/sbin; + ln -s bin $prefix/sbin +} +_moveSystemdUserUnits () +{ + + if [ "${dontMoveSystemdUserUnits:-0}" = 1 ]; then + return; + fi; + if [ ! -e "${prefix:?}/lib/systemd/user" ]; then + return; + fi; + local source="$prefix/lib/systemd/user"; + local target="$prefix/share/systemd/user"; + echo "moving $source/* to $target"; + mkdir -p "$target"; + ( shopt -s dotglob; + for i in "$source"/*; + do + mv "$i" "$target"; + done ); + rmdir "$source"; + ln -s "$target" "$source" +} +_moveToShare () +{ + + if [ -n "$__structuredAttrs" ]; then + if [ -z "${forceShare-}" ]; then + forceShare=(man doc info); + fi; + else + forceShare=(${forceShare:-man doc info}); + fi; + if [[ -z "$out" ]]; then + return; + fi; + for d in "${forceShare[@]}"; + do + if [ -d "$out/$d" ]; then + if [ -d "$out/share/$d" ]; then + echo "both $d/ and share/$d/ exist!"; + else + echo "moving $out/$d to $out/share/$d"; + mkdir -p $out/share; + mv $out/$d $out/share/; + fi; + fi; + done +} +_multioutConfig () +{ + + if [ "$(getAllOutputNames)" = "out" ] || [ -z "${setOutputFlags-1}" ]; then + return; + fi; + if [ -z "$shareDocName" ]; then + local confScript="$configureScript"; + if [ -z "$confScript" ] && [ -x ./configure ]; then + confScript=./configure; + fi; + if [ -f "$confScript" ]; then + local shareDocName="$(sed -n "s/^PACKAGE_TARNAME='\(.*\)'$/\1/p" < "$confScript")"; + fi; + if [ -z "$shareDocName" ] || echo "$shareDocName" | grep -q '[^a-zA-Z0-9_-]'; then + shareDocName="$(echo "$name" | sed 's/-[^a-zA-Z].*//')"; + fi; + fi; + prependToVar configureFlags --bindir="${!outputBin}"/bin --sbindir="${!outputBin}"/sbin --includedir="${!outputInclude}"/include --oldincludedir="${!outputInclude}"/include --mandir="${!outputMan}"/share/man --infodir="${!outputInfo}"/share/info --docdir="${!outputDoc}"/share/doc/"${shareDocName}" --libdir="${!outputLib}"/lib --libexecdir="${!outputLib}"/libexec --localedir="${!outputLib}"/share/locale; + prependToVar installFlags pkgconfigdir="${!outputDev}"/lib/pkgconfig m4datadir="${!outputDev}"/share/aclocal aclocaldir="${!outputDev}"/share/aclocal +} +_multioutDevs () +{ + + if [ "$(getAllOutputNames)" = "out" ] || [ -z "${moveToDev-1}" ]; then + return; + fi; + moveToOutput include "${!outputInclude}"; + moveToOutput lib/pkgconfig "${!outputDev}"; + moveToOutput share/pkgconfig "${!outputDev}"; + moveToOutput lib/cmake "${!outputDev}"; + moveToOutput share/aclocal "${!outputDev}"; + for f in "${!outputDev}"/{lib,share}/pkgconfig/*.pc; + do + echo "Patching '$f' includedir to output ${!outputInclude}"; + sed -i "/^includedir=/s,=\${prefix},=${!outputInclude}," "$f"; + done +} +_multioutDocs () +{ + + local REMOVE=REMOVE; + moveToOutput share/info "${!outputInfo}"; + moveToOutput share/doc "${!outputDoc}"; + moveToOutput share/gtk-doc "${!outputDevdoc}"; + moveToOutput share/devhelp/books "${!outputDevdoc}"; + moveToOutput share/man "${!outputMan}"; + moveToOutput share/man/man3 "${!outputDevman}" +} +_multioutPropagateDev () +{ + + if [ "$(getAllOutputNames)" = "out" ]; then + return; + fi; + local outputFirst; + for outputFirst in $(getAllOutputNames); + do + break; + done; + local propagaterOutput="$outputDev"; + if [ -z "$propagaterOutput" ]; then + propagaterOutput="$outputFirst"; + fi; + if [ -z "${propagatedBuildOutputs+1}" ]; then + local po_dirty="$outputBin $outputInclude $outputLib"; + set +o pipefail; + propagatedBuildOutputs=`echo "$po_dirty" | tr -s ' ' '\n' | grep -v -F "$propagaterOutput" | sort -u | tr '\n' ' ' `; + set -o pipefail; + fi; + if [ -z "$propagatedBuildOutputs" ]; then + return; + fi; + mkdir -p "${!propagaterOutput}"/nix-support; + for output in $propagatedBuildOutputs; + do + echo -n " ${!output}" >> "${!propagaterOutput}"/nix-support/propagated-build-inputs; + done +} +_overrideFirst () +{ + + if [ -z "${!1-}" ]; then + _assignFirst "$@"; + fi +} +_pruneLibtoolFiles () +{ + + if [ "${dontPruneLibtoolFiles-}" ] || [ ! -e "$prefix" ]; then + return; + fi; + find "$prefix" -type f -name '*.la' -exec grep -q '^# Generated by .*libtool' {} \; -exec grep -q "^old_library=''" {} \; -exec sed -i {} -e "/^dependency_libs='[^']/ c dependency_libs='' #pruned" \; +} +_updateSourceDateEpochFromSourceRoot () +{ + + if [ -n "$sourceRoot" ]; then + updateSourceDateEpoch "$sourceRoot"; + fi +} +activatePackage () +{ + + local pkg="$1"; + local -r hostOffset="$2"; + local -r targetOffset="$3"; + (( hostOffset <= targetOffset )) || exit 1; + if [ -f "$pkg" ]; then + source "$pkg"; + fi; + if [[ -z "${strictDeps-}" || "$hostOffset" -le -1 ]]; then + addToSearchPath _PATH "$pkg/bin"; + fi; + if (( hostOffset <= -1 )); then + addToSearchPath _XDG_DATA_DIRS "$pkg/share"; + fi; + if [[ "$hostOffset" -eq 0 && -d "$pkg/bin" ]]; then + addToSearchPath _HOST_PATH "$pkg/bin"; + fi; + if [[ -f "$pkg/nix-support/setup-hook" ]]; then + source "$pkg/nix-support/setup-hook"; + fi +} +addEnvHooks () +{ + + local depHostOffset="$1"; + shift; + local pkgHookVarsSlice="${pkgHookVarVars[$depHostOffset + 1]}[@]"; + local pkgHookVar; + for pkgHookVar in "${!pkgHookVarsSlice}"; + do + eval "${pkgHookVar}s"'+=("$@")'; + done +} +addToSearchPath () +{ + + addToSearchPathWithCustomDelimiter ":" "$@" +} +addToSearchPathWithCustomDelimiter () +{ + + local delimiter="$1"; + local varName="$2"; + local dir="$3"; + if [[ -d "$dir" && "${!varName:+${delimiter}${!varName}${delimiter}}" != *"${delimiter}${dir}${delimiter}"* ]]; then + export "${varName}=${!varName:+${!varName}${delimiter}}${dir}"; + fi +} +appendToVar () +{ + + local -n nameref="$1"; + local useArray type; + if [ -n "$__structuredAttrs" ]; then + useArray=true; + else + useArray=false; + fi; + if declare -p "$1" 2> /dev/null | grep -q '^'; then + type="$(declare -p "$1")"; + if [[ "$type" =~ "declare -A" ]]; then + echo "appendToVar(): ERROR: trying to use appendToVar on an associative array, use variable+=([\"X\"]=\"Y\") instead." 1>&2; + return 1; + else + if [[ "$type" =~ "declare -a" ]]; then + useArray=true; + else + useArray=false; + fi; + fi; + fi; + shift; + if $useArray; then + nameref=(${nameref+"${nameref[@]}"} "$@"); + else + nameref="${nameref-} $*"; + fi +} +auditTmpdir () +{ + + local dir="$1"; + [ -e "$dir" ] || return 0; + echo "checking for references to $TMPDIR/ in $dir..."; + local i; + find "$dir" -type f -print0 | while IFS= read -r -d '' i; do + if [[ "$i" =~ .build-id ]]; then + continue; + fi; + if isELF "$i"; then + if { + printf :; + patchelf --print-rpath "$i" + } | grep -q -F ":$TMPDIR/"; then + echo "RPATH of binary $i contains a forbidden reference to $TMPDIR/"; + exit 1; + fi; + fi; + if isScript "$i"; then + if [ -e "$(dirname "$i")/.$(basename "$i")-wrapped" ]; then + if grep -q -F "$TMPDIR/" "$i"; then + echo "wrapper script $i contains a forbidden reference to $TMPDIR/"; + exit 1; + fi; + fi; + fi; + done +} +bintoolsWrapper_addLDVars () +{ + + local role_post; + getHostRoleEnvHook; + if [[ -d "$1/lib64" && ! -L "$1/lib64" ]]; then + export NIX_LDFLAGS${role_post}+=" -L$1/lib64"; + fi; + if [[ -d "$1/lib" ]]; then + local -a glob=($1/lib/lib*); + if [ "${#glob[*]}" -gt 0 ]; then + export NIX_LDFLAGS${role_post}+=" -L$1/lib"; + fi; + fi +} +buildPhase () +{ + + runHook preBuild; + if [[ -z "${makeFlags-}" && -z "${makefile:-}" && ! ( -e Makefile || -e makefile || -e GNUmakefile ) ]]; then + echo "no Makefile or custom buildPhase, doing nothing"; + else + foundMakefile=1; + local flagsArray=(${enableParallelBuilding:+-j${NIX_BUILD_CORES}} SHELL=$SHELL); + _accumFlagsArray makeFlags makeFlagsArray buildFlags buildFlagsArray; + echoCmd 'build flags' "${flagsArray[@]}"; + make ${makefile:+-f $makefile} "${flagsArray[@]}"; + unset flagsArray; + fi; + runHook postBuild +} +ccWrapper_addCVars () +{ + + local role_post; + getHostRoleEnvHook; + if [ -d "$1/include" ]; then + export NIX_CFLAGS_COMPILE${role_post}+=" -isystem $1/include"; + fi; + if [ -d "$1/Library/Frameworks" ]; then + export NIX_CFLAGS_COMPILE${role_post}+=" -iframework $1/Library/Frameworks"; + fi +} +checkPhase () +{ + + runHook preCheck; + if [[ -z "${foundMakefile:-}" ]]; then + echo "no Makefile or custom checkPhase, doing nothing"; + runHook postCheck; + return; + fi; + if [[ -z "${checkTarget:-}" ]]; then + if make -n ${makefile:+-f $makefile} check > /dev/null 2>&1; then + checkTarget=check; + else + if make -n ${makefile:+-f $makefile} test > /dev/null 2>&1; then + checkTarget=test; + fi; + fi; + fi; + if [[ -z "${checkTarget:-}" ]]; then + echo "no check/test target in ${makefile:-Makefile}, doing nothing"; + else + local flagsArray=(${enableParallelChecking:+-j${NIX_BUILD_CORES}} SHELL=$SHELL); + _accumFlagsArray makeFlags makeFlagsArray; + if [ -n "$__structuredAttrs" ]; then + flagsArray+=("${checkFlags[@]:-VERBOSE=y}"); + else + flagsArray+=(${checkFlags:-VERBOSE=y}); + fi; + _accumFlagsArray checkFlagsArray; + flagsArray+=(${checkTarget}); + echoCmd 'check flags' "${flagsArray[@]}"; + make ${makefile:+-f $makefile} "${flagsArray[@]}"; + unset flagsArray; + fi; + runHook postCheck +} +compressManPages () +{ + + local dir="$1"; + if [ -L "$dir"/share ] || [ -L "$dir"/share/man ] || [ ! -d "$dir/share/man" ]; then + return; + fi; + echo "gzipping man pages under $dir/share/man/"; + find "$dir"/share/man/ -type f -a '!' -regex '.*\.\(bz2\|gz\|xz\)$' -print0 | while IFS= read -r -d '' f; do + if gzip -c -n "$f" > "$f".gz; then + rm "$f"; + else + rm "$f".gz; + fi; + done; + find "$dir"/share/man/ -type l -a '!' -regex '.*\.\(bz2\|gz\|xz\)$' -print0 | sort -z | while IFS= read -r -d '' f; do + local target; + target="$(readlink -f "$f")"; + if [ -f "$target".gz ]; then + ln -sf "$target".gz "$f".gz && rm "$f"; + fi; + done +} +configurePhase () +{ + + runHook preConfigure; + : "${configureScript=}"; + if [[ -z "$configureScript" && -x ./configure ]]; then + configureScript=./configure; + fi; + if [ -z "${dontFixLibtool:-}" ]; then + export lt_cv_deplibs_check_method="${lt_cv_deplibs_check_method-pass_all}"; + local i; + find . -iname "ltmain.sh" -print0 | while IFS='' read -r -d '' i; do + echo "fixing libtool script $i"; + fixLibtool "$i"; + done; + CONFIGURE_MTIME_REFERENCE=$(mktemp configure.mtime.reference.XXXXXX); + find . -executable -type f -name configure -exec grep -l 'GNU Libtool is free software; you can redistribute it and/or modify' {} \; -exec touch -r {} "$CONFIGURE_MTIME_REFERENCE" \; -exec sed -i s_/usr/bin/file_file_g {} \; -exec touch -r "$CONFIGURE_MTIME_REFERENCE" {} \;; + rm -f "$CONFIGURE_MTIME_REFERENCE"; + fi; + if [[ -z "${dontAddPrefix:-}" && -n "$prefix" ]]; then + prependToVar configureFlags "${prefixKey:---prefix=}$prefix"; + fi; + if [[ -f "$configureScript" ]]; then + if [ -z "${dontAddDisableDepTrack:-}" ]; then + if grep -q dependency-tracking "$configureScript"; then + prependToVar configureFlags --disable-dependency-tracking; + fi; + fi; + if [ -z "${dontDisableStatic:-}" ]; then + if grep -q enable-static "$configureScript"; then + prependToVar configureFlags --disable-static; + fi; + fi; + fi; + if [ -n "$configureScript" ]; then + local -a flagsArray; + _accumFlagsArray configureFlags configureFlagsArray; + echoCmd 'configure flags' "${flagsArray[@]}"; + $configureScript "${flagsArray[@]}"; + unset flagsArray; + else + echo "no configure script, doing nothing"; + fi; + runHook postConfigure +} +consumeEntire () +{ + + if IFS='' read -r -d '' "$1"; then + echo "consumeEntire(): ERROR: Input null bytes, won't process" 1>&2; + return 1; + fi +} +distPhase () +{ + + runHook preDist; + local flagsArray=(); + _accumFlagsArray distFlags distFlagsArray; + flagsArray+=(${distTarget:-dist}); + echo 'dist flags: %q' "${flagsArray[@]}"; + make ${makefile:+-f $makefile} "${flagsArray[@]}"; + if [ "${dontCopyDist:-0}" != 1 ]; then + mkdir -p "$out/tarballs"; + cp -pvd ${tarballs[*]:-*.tar.gz} "$out/tarballs"; + fi; + runHook postDist +} +dumpVars () +{ + + if [ "${noDumpEnvVars:-0}" != 1 ]; then + export 2> /dev/null >| "$NIX_BUILD_TOP/env-vars" || true; + fi +} +echoCmd () +{ + + printf "%s:" "$1"; + shift; + printf ' %q' "$@"; + echo +} +exitHandler () +{ + + exitCode="$?"; + set +e; + if [ -n "${showBuildStats:-}" ]; then + read -r -d '' -a buildTimes < <(times); + echo "build times:"; + echo "user time for the shell ${buildTimes[0]}"; + echo "system time for the shell ${buildTimes[1]}"; + echo "user time for all child processes ${buildTimes[2]}"; + echo "system time for all child processes ${buildTimes[3]}"; + fi; + if (( "$exitCode" != 0 )); then + runHook failureHook; + if [ -n "${succeedOnFailure:-}" ]; then + echo "build failed with exit code $exitCode (ignored)"; + mkdir -p "$out/nix-support"; + printf "%s" "$exitCode" > "$out/nix-support/failed"; + exit 0; + fi; + else + runHook exitHook; + fi; + return "$exitCode" +} +findInputs () +{ + + local -r pkg="$1"; + local -r hostOffset="$2"; + local -r targetOffset="$3"; + (( hostOffset <= targetOffset )) || exit 1; + local varVar="${pkgAccumVarVars[hostOffset + 1]}"; + local varRef="$varVar[$((targetOffset - hostOffset))]"; + local var="${!varRef}"; + unset -v varVar varRef; + local varSlice="$var[*]"; + case "${!varSlice-}" in + *" $pkg "*) + return 0 + ;; + esac; + unset -v varSlice; + eval "$var"'+=("$pkg")'; + if ! [ -e "$pkg" ]; then + echo "build input $pkg does not exist" 1>&2; + exit 1; + fi; + function mapOffset () + { + local -r inputOffset="$1"; + local -n outputOffset="$2"; + if (( inputOffset <= 0 )); then + outputOffset=$((inputOffset + hostOffset)); + else + outputOffset=$((inputOffset - 1 + targetOffset)); + fi + }; + local relHostOffset; + for relHostOffset in "${allPlatOffsets[@]}"; + do + local files="${propagatedDepFilesVars[relHostOffset + 1]}"; + local hostOffsetNext; + mapOffset "$relHostOffset" hostOffsetNext; + (( -1 <= hostOffsetNext && hostOffsetNext <= 1 )) || continue; + local relTargetOffset; + for relTargetOffset in "${allPlatOffsets[@]}"; + do + (( "$relHostOffset" <= "$relTargetOffset" )) || continue; + local fileRef="${files}[$relTargetOffset - $relHostOffset]"; + local file="${!fileRef}"; + unset -v fileRef; + local targetOffsetNext; + mapOffset "$relTargetOffset" targetOffsetNext; + (( -1 <= hostOffsetNext && hostOffsetNext <= 1 )) || continue; + [[ -f "$pkg/nix-support/$file" ]] || continue; + local pkgNext; + read -r -d '' pkgNext < "$pkg/nix-support/$file" || true; + for pkgNext in $pkgNext; + do + findInputs "$pkgNext" "$hostOffsetNext" "$targetOffsetNext"; + done; + done; + done +} +fixLibtool () +{ + + local search_path; + for flag in $NIX_LDFLAGS; + do + case $flag in + -L*) + search_path+=" ${flag#-L}" + ;; + esac; + done; + sed -i "$1" -e "s^eval \(sys_lib_search_path=\).*^\1'$search_path'^" -e 's^eval sys_lib_.+search_path=.*^^' +} +fixupPhase () +{ + + local output; + for output in $(getAllOutputNames); + do + if [ -e "${!output}" ]; then + chmod -R u+w "${!output}"; + fi; + done; + runHook preFixup; + local output; + for output in $(getAllOutputNames); + do + prefix="${!output}" runHook fixupOutput; + done; + recordPropagatedDependencies; + if [ -n "${setupHook:-}" ]; then + mkdir -p "${!outputDev}/nix-support"; + substituteAll "$setupHook" "${!outputDev}/nix-support/setup-hook"; + fi; + if [ -n "${setupHooks:-}" ]; then + mkdir -p "${!outputDev}/nix-support"; + local hook; + for hook in ${setupHooks[@]}; + do + local content; + consumeEntire content < "$hook"; + substituteAllStream content "file '$hook'" >> "${!outputDev}/nix-support/setup-hook"; + unset -v content; + done; + unset -v hook; + fi; + if [ -n "${propagatedUserEnvPkgs:-}" ]; then + mkdir -p "${!outputBin}/nix-support"; + printWords $propagatedUserEnvPkgs > "${!outputBin}/nix-support/propagated-user-env-packages"; + fi; + runHook postFixup +} +genericBuild () +{ + + export GZIP_NO_TIMESTAMPS=1; + if [ -f "${buildCommandPath:-}" ]; then + source "$buildCommandPath"; + return; + fi; + if [ -n "${buildCommand:-}" ]; then + eval "$buildCommand"; + return; + fi; + if [ -z "${phases[*]:-}" ]; then + phases="${prePhases[*]:-} unpackPhase patchPhase ${preConfigurePhases[*]:-} configurePhase ${preBuildPhases[*]:-} buildPhase checkPhase ${preInstallPhases[*]:-} installPhase ${preFixupPhases[*]:-} fixupPhase installCheckPhase ${preDistPhases[*]:-} distPhase ${postPhases[*]:-}"; + fi; + for curPhase in ${phases[*]}; + do + if [[ "$curPhase" = unpackPhase && -n "${dontUnpack:-}" ]]; then + continue; + fi; + if [[ "$curPhase" = patchPhase && -n "${dontPatch:-}" ]]; then + continue; + fi; + if [[ "$curPhase" = configurePhase && -n "${dontConfigure:-}" ]]; then + continue; + fi; + if [[ "$curPhase" = buildPhase && -n "${dontBuild:-}" ]]; then + continue; + fi; + if [[ "$curPhase" = checkPhase && -z "${doCheck:-}" ]]; then + continue; + fi; + if [[ "$curPhase" = installPhase && -n "${dontInstall:-}" ]]; then + continue; + fi; + if [[ "$curPhase" = fixupPhase && -n "${dontFixup:-}" ]]; then + continue; + fi; + if [[ "$curPhase" = installCheckPhase && -z "${doInstallCheck:-}" ]]; then + continue; + fi; + if [[ "$curPhase" = distPhase && -z "${doDist:-}" ]]; then + continue; + fi; + if [[ -n $NIX_LOG_FD ]]; then + echo "@nix { \"action\": \"setPhase\", \"phase\": \"$curPhase\" }" >&"$NIX_LOG_FD"; + fi; + showPhaseHeader "$curPhase"; + dumpVars; + local startTime=$(date +"%s"); + eval "${!curPhase:-$curPhase}"; + local endTime=$(date +"%s"); + showPhaseFooter "$curPhase" "$startTime" "$endTime"; + if [ "$curPhase" = unpackPhase ]; then + [ -n "${sourceRoot:-}" ] && chmod +x "${sourceRoot}"; + cd "${sourceRoot:-.}"; + fi; + done +} +getAllOutputNames () +{ + + if [ -n "$__structuredAttrs" ]; then + echo "${!outputs[*]}"; + else + echo "$outputs"; + fi +} +getHostRole () +{ + + getRole "$hostOffset" +} +getHostRoleEnvHook () +{ + + getRole "$depHostOffset" +} +getRole () +{ + + case $1 in + -1) + role_post='_FOR_BUILD' + ;; + 0) + role_post='' + ;; + 1) + role_post='_FOR_TARGET' + ;; + *) + echo "binutils-wrapper-2.40: used as improper sort of dependency" 1>&2; + return 1 + ;; + esac +} +getTargetRole () +{ + + getRole "$targetOffset" +} +getTargetRoleEnvHook () +{ + + getRole "$depTargetOffset" +} +getTargetRoleWrapper () +{ + + case $targetOffset in + -1) + export NIX_BINTOOLS_WRAPPER_TARGET_BUILD_x86_64_unknown_linux_gnu=1 + ;; + 0) + export NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu=1 + ;; + 1) + export NIX_BINTOOLS_WRAPPER_TARGET_TARGET_x86_64_unknown_linux_gnu=1 + ;; + *) + echo "binutils-wrapper-2.40: used as improper sort of dependency" 1>&2; + return 1 + ;; + esac +} +installCheckPhase () +{ + + runHook preInstallCheck; + if [[ -z "${foundMakefile:-}" ]]; then + echo "no Makefile or custom installCheckPhase, doing nothing"; + else + if [[ -z "${installCheckTarget:-}" ]] && ! make -n ${makefile:+-f $makefile} "${installCheckTarget:-installcheck}" > /dev/null 2>&1; then + echo "no installcheck target in ${makefile:-Makefile}, doing nothing"; + else + local flagsArray=(${enableParallelChecking:+-j${NIX_BUILD_CORES}} SHELL=$SHELL); + _accumFlagsArray makeFlags makeFlagsArray installCheckFlags installCheckFlagsArray; + flagsArray+=(${installCheckTarget:-installcheck}); + echoCmd 'installcheck flags' "${flagsArray[@]}"; + make ${makefile:+-f $makefile} "${flagsArray[@]}"; + unset flagsArray; + fi; + fi; + runHook postInstallCheck +} +installPhase () +{ + + runHook preInstall; + if [[ -z "${makeFlags-}" && -z "${makefile:-}" && ! ( -e Makefile || -e makefile || -e GNUmakefile ) ]]; then + echo "no Makefile or custom installPhase, doing nothing"; + runHook postInstall; + return; + else + foundMakefile=1; + fi; + if [ -n "$prefix" ]; then + mkdir -p "$prefix"; + fi; + local flagsArray=(${enableParallelInstalling:+-j${NIX_BUILD_CORES}} SHELL=$SHELL); + _accumFlagsArray makeFlags makeFlagsArray installFlags installFlagsArray; + if [ -n "$__structuredAttrs" ]; then + flagsArray+=("${installTargets[@]:-install}"); + else + flagsArray+=(${installTargets:-install}); + fi; + echoCmd 'install flags' "${flagsArray[@]}"; + make ${makefile:+-f $makefile} "${flagsArray[@]}"; + unset flagsArray; + runHook postInstall +} +isELF () +{ + + local fn="$1"; + local fd; + local magic; + exec {fd}< "$fn"; + read -r -n 4 -u "$fd" magic; + exec {fd}>&-; + if [ "$magic" = 'ELF' ]; then + return 0; + else + return 1; + fi +} +isMachO () +{ + + local fn="$1"; + local fd; + local magic; + exec {fd}< "$fn"; + read -r -n 4 -u "$fd" magic; + exec {fd}>&-; + if [[ "$magic" = $(echo -ne "\xfe\xed\xfa\xcf") || "$magic" = $(echo -ne "\xcf\xfa\xed\xfe") ]]; then + return 0; + else + if [[ "$magic" = $(echo -ne "\xfe\xed\xfa\xce") || "$magic" = $(echo -ne "\xce\xfa\xed\xfe") ]]; then + return 0; + else + if [[ "$magic" = $(echo -ne "\xca\xfe\xba\xbe") || "$magic" = $(echo -ne "\xbe\xba\xfe\xca") ]]; then + return 0; + else + return 1; + fi; + fi; + fi +} +isScript () +{ + + local fn="$1"; + local fd; + local magic; + exec {fd}< "$fn"; + read -r -n 2 -u "$fd" magic; + exec {fd}>&-; + if [[ "$magic" =~ \#! ]]; then + return 0; + else + return 1; + fi +} +mapOffset () +{ + + local -r inputOffset="$1"; + local -n outputOffset="$2"; + if (( inputOffset <= 0 )); then + outputOffset=$((inputOffset + hostOffset)); + else + outputOffset=$((inputOffset - 1 + targetOffset)); + fi +} +moveToOutput () +{ + + local patt="$1"; + local dstOut="$2"; + local output; + for output in $(getAllOutputNames); + do + if [ "${!output}" = "$dstOut" ]; then + continue; + fi; + local srcPath; + for srcPath in "${!output}"/$patt; + do + if [ ! -e "$srcPath" ] && [ ! -L "$srcPath" ]; then + continue; + fi; + if [ "$dstOut" = REMOVE ]; then + echo "Removing $srcPath"; + rm -r "$srcPath"; + else + local dstPath="$dstOut${srcPath#${!output}}"; + echo "Moving $srcPath to $dstPath"; + if [ -d "$dstPath" ] && [ -d "$srcPath" ]; then + rmdir "$srcPath" --ignore-fail-on-non-empty; + if [ -d "$srcPath" ]; then + mv -t "$dstPath" "$srcPath"/*; + rmdir "$srcPath"; + fi; + else + mkdir -p "$(readlink -m "$dstPath/..")"; + mv "$srcPath" "$dstPath"; + fi; + fi; + local srcParent="$(readlink -m "$srcPath/..")"; + if [ -n "$(find "$srcParent" -maxdepth 0 -type d -empty 2> /dev/null)" ]; then + echo "Removing empty $srcParent/ and (possibly) its parents"; + rmdir -p --ignore-fail-on-non-empty "$srcParent" 2> /dev/null || true; + fi; + done; + done +} +patchELF () +{ + + local dir="$1"; + [ -e "$dir" ] || return 0; + echo "shrinking RPATHs of ELF executables and libraries in $dir"; + local i; + while IFS= read -r -d '' i; do + if [[ "$i" =~ .build-id ]]; then + continue; + fi; + if ! isELF "$i"; then + continue; + fi; + echo "shrinking $i"; + patchelf --shrink-rpath "$i" || true; + done < <(find "$dir" -type f -print0) +} +patchPhase () +{ + + runHook prePatch; + local -a patchesArray; + if [ -n "$__structuredAttrs" ]; then + patchesArray=(${patches:+"${patches[@]}"}); + else + patchesArray=(${patches:-}); + fi; + for i in "${patchesArray[@]}"; + do + echo "applying patch $i"; + local uncompress=cat; + case "$i" in + *.gz) + uncompress="gzip -d" + ;; + *.bz2) + uncompress="bzip2 -d" + ;; + *.xz) + uncompress="xz -d" + ;; + *.lzma) + uncompress="lzma -d" + ;; + esac; + local -a flagsArray; + if [ -n "$__structuredAttrs" ]; then + flagsArray=("${patchFlags[@]:--p1}"); + else + flagsArray=(${patchFlags:--p1}); + fi; + $uncompress < "$i" 2>&1 | patch "${flagsArray[@]}"; + done; + runHook postPatch +} +patchShebangs () +{ + + local pathName; + local update; + while [[ $# -gt 0 ]]; do + case "$1" in + --host) + pathName=HOST_PATH; + shift + ;; + --build) + pathName=PATH; + shift + ;; + --update) + update=true; + shift + ;; + --) + shift; + break + ;; + -* | --*) + echo "Unknown option $1 supplied to patchShebangs" 1>&2; + return 1 + ;; + *) + break + ;; + esac; + done; + echo "patching script interpreter paths in $@"; + local f; + local oldPath; + local newPath; + local arg0; + local args; + local oldInterpreterLine; + local newInterpreterLine; + if [[ $# -eq 0 ]]; then + echo "No arguments supplied to patchShebangs" 1>&2; + return 0; + fi; + local f; + while IFS= read -r -d '' f; do + isScript "$f" || continue; + read -r oldInterpreterLine < "$f"; + read -r oldPath arg0 args <<< "${oldInterpreterLine:2}"; + if [[ -z "$pathName" ]]; then + if [[ -n $strictDeps && $f == "$NIX_STORE"* ]]; then + pathName=HOST_PATH; + else + pathName=PATH; + fi; + fi; + if [[ "$oldPath" == *"/bin/env" ]]; then + if [[ $arg0 == "-S" ]]; then + arg0=${args%% *}; + args=${args#* }; + newPath="$(PATH="${!pathName}" command -v "env" || true)"; + args="-S $(PATH="${!pathName}" command -v "$arg0" || true) $args"; + else + if [[ $arg0 == "-"* || $arg0 == *"="* ]]; then + echo "$f: unsupported interpreter directive \"$oldInterpreterLine\" (set dontPatchShebangs=1 and handle shebang patching yourself)" 1>&2; + exit 1; + else + newPath="$(PATH="${!pathName}" command -v "$arg0" || true)"; + fi; + fi; + else + if [[ -z $oldPath ]]; then + oldPath="/bin/sh"; + fi; + newPath="$(PATH="${!pathName}" command -v "$(basename "$oldPath")" || true)"; + args="$arg0 $args"; + fi; + newInterpreterLine="$newPath $args"; + newInterpreterLine=${newInterpreterLine%${newInterpreterLine##*[![:space:]]}}; + if [[ -n "$oldPath" && ( "$update" == true || "${oldPath:0:${#NIX_STORE}}" != "$NIX_STORE" ) ]]; then + if [[ -n "$newPath" && "$newPath" != "$oldPath" ]]; then + echo "$f: interpreter directive changed from \"$oldInterpreterLine\" to \"$newInterpreterLine\""; + escapedInterpreterLine=${newInterpreterLine//\\/\\\\}; + timestamp=$(stat --printf "%y" "$f"); + sed -i -e "1 s|.*|#\!$escapedInterpreterLine|" "$f"; + touch --date "$timestamp" "$f"; + fi; + fi; + done < <(find "$@" -type f -perm -0100 -print0) +} +patchShebangsAuto () +{ + + if [[ -z "${dontPatchShebangs-}" && -e "$prefix" ]]; then + if [[ "$output" != out && "$output" = "$outputDev" ]]; then + patchShebangs --build "$prefix"; + else + patchShebangs --host "$prefix"; + fi; + fi +} +prependToVar () +{ + + local -n nameref="$1"; + local useArray type; + if [ -n "$__structuredAttrs" ]; then + useArray=true; + else + useArray=false; + fi; + if declare -p "$1" 2> /dev/null | grep -q '^'; then + type="$(declare -p "$1")"; + if [[ "$type" =~ "declare -A" ]]; then + echo "prependToVar(): ERROR: trying to use prependToVar on an associative array." 1>&2; + return 1; + else + if [[ "$type" =~ "declare -a" ]]; then + useArray=true; + else + useArray=false; + fi; + fi; + fi; + shift; + if $useArray; then + nameref=("$@" ${nameref+"${nameref[@]}"}); + else + nameref="$* ${nameref-}"; + fi +} +printLines () +{ + + (( "$#" > 0 )) || return 0; + printf '%s\n' "$@" +} +printWords () +{ + + (( "$#" > 0 )) || return 0; + printf '%s ' "$@" +} +recordPropagatedDependencies () +{ + + declare -ra flatVars=(depsBuildBuildPropagated propagatedNativeBuildInputs depsBuildTargetPropagated depsHostHostPropagated propagatedBuildInputs depsTargetTargetPropagated); + declare -ra flatFiles=("${propagatedBuildDepFiles[@]}" "${propagatedHostDepFiles[@]}" "${propagatedTargetDepFiles[@]}"); + local propagatedInputsIndex; + for propagatedInputsIndex in "${!flatVars[@]}"; + do + local propagatedInputsSlice="${flatVars[$propagatedInputsIndex]}[@]"; + local propagatedInputsFile="${flatFiles[$propagatedInputsIndex]}"; + [[ -n "${!propagatedInputsSlice}" ]] || continue; + mkdir -p "${!outputDev}/nix-support"; + printWords ${!propagatedInputsSlice} > "${!outputDev}/nix-support/$propagatedInputsFile"; + done +} +runHook () +{ + + local hookName="$1"; + shift; + local hooksSlice="${hookName%Hook}Hooks[@]"; + local hook; + for hook in "_callImplicitHook 0 $hookName" ${!hooksSlice+"${!hooksSlice}"}; + do + _eval "$hook" "$@"; + done; + return 0 +} +runOneHook () +{ + + local hookName="$1"; + shift; + local hooksSlice="${hookName%Hook}Hooks[@]"; + local hook ret=1; + for hook in "_callImplicitHook 1 $hookName" ${!hooksSlice+"${!hooksSlice}"}; + do + if _eval "$hook" "$@"; then + ret=0; + break; + fi; + done; + return "$ret" +} +showPhaseFooter () +{ + + local phase="$1"; + local startTime="$2"; + local endTime="$3"; + local delta=$(( endTime - startTime )); + (( delta < 30 )) && return; + local H=$((delta/3600)); + local M=$((delta%3600/60)); + local S=$((delta%60)); + echo -n "$phase completed in "; + (( H > 0 )) && echo -n "$H hours "; + (( M > 0 )) && echo -n "$M minutes "; + echo "$S seconds" +} +showPhaseHeader () +{ + + local phase="$1"; + case "$phase" in + unpackPhase) + echo "unpacking sources" + ;; + patchPhase) + echo "patching sources" + ;; + configurePhase) + echo "configuring" + ;; + buildPhase) + echo "building" + ;; + checkPhase) + echo "running tests" + ;; + installPhase) + echo "installing" + ;; + fixupPhase) + echo "post-installation fixup" + ;; + installCheckPhase) + echo "running install tests" + ;; + *) + echo "$phase" + ;; + esac +} +stripDirs () +{ + + local cmd="$1"; + local ranlibCmd="$2"; + local paths="$3"; + local stripFlags="$4"; + local pathsNew=; + [ -z "$cmd" ] && echo "stripDirs: Strip command is empty" 1>&2 && exit 1; + [ -z "$ranlibCmd" ] && echo "stripDirs: Ranlib command is empty" 1>&2 && exit 1; + local p; + for p in ${paths}; + do + if [ -e "$prefix/$p" ]; then + pathsNew="${pathsNew} $prefix/$p"; + fi; + done; + paths=${pathsNew}; + if [ -n "${paths}" ]; then + echo "stripping (with command $cmd and flags $stripFlags) in $paths"; + local striperr; + striperr="$(mktemp --tmpdir="$TMPDIR" 'striperr.XXXXXX')"; + find $paths -type f -a '!' -path "$prefix/lib/debug/*" -print0 | xargs -r -0 -n1 -- realpath -z | sort -u -z | xargs -r -0 -n1 -P "$NIX_BUILD_CORES" -- $cmd $stripFlags 2> "$striperr" || exit_code=$?; + [[ "$exit_code" = 123 || -z "$exit_code" ]] || ( cat "$striperr" 1>&2 && exit 1 ); + rm "$striperr"; + find $paths -name '*.a' -type f -exec $ranlibCmd '{}' \; 2> /dev/null; + fi +} +stripHash () +{ + + local strippedName casematchOpt=0; + strippedName="$(basename -- "$1")"; + shopt -q nocasematch && casematchOpt=1; + shopt -u nocasematch; + if [[ "$strippedName" =~ ^[a-z0-9]{32}- ]]; then + echo "${strippedName:33}"; + else + echo "$strippedName"; + fi; + if (( casematchOpt )); then + shopt -s nocasematch; + fi +} +substitute () +{ + + local input="$1"; + local output="$2"; + shift 2; + if [ ! -f "$input" ]; then + echo "substitute(): ERROR: file '$input' does not exist" 1>&2; + return 1; + fi; + local content; + consumeEntire content < "$input"; + if [ -e "$output" ]; then + chmod +w "$output"; + fi; + substituteStream content "file '$input'" "$@" > "$output" +} +substituteAll () +{ + + local input="$1"; + local output="$2"; + local -a args=(); + _allFlags; + substitute "$input" "$output" "${args[@]}" +} +substituteAllInPlace () +{ + + local fileName="$1"; + shift; + substituteAll "$fileName" "$fileName" "$@" +} +substituteAllStream () +{ + + local -a args=(); + _allFlags; + substituteStream "$1" "$2" "${args[@]}" +} +substituteInPlace () +{ + + local -a fileNames=(); + for arg in "$@"; + do + if [[ "$arg" = "--"* ]]; then + break; + fi; + fileNames+=("$arg"); + shift; + done; + for file in "${fileNames[@]}"; + do + substitute "$file" "$file" "$@"; + done +} +substituteStream () +{ + + local var=$1; + local description=$2; + shift 2; + while (( "$#" )); do + case "$1" in + --replace) + pattern="$2"; + replacement="$3"; + shift 3; + local savedvar; + savedvar="${!var}"; + eval "$var"'=${'"$var"'//"$pattern"/"$replacement"}'; + if [ "$pattern" != "$replacement" ]; then + if [ "${!var}" == "$savedvar" ]; then + echo "substituteStream(): WARNING: pattern '$pattern' doesn't match anything in $description" 1>&2; + fi; + fi + ;; + --subst-var) + local varName="$2"; + shift 2; + if ! [[ "$varName" =~ ^[a-zA-Z_][a-zA-Z0-9_]*$ ]]; then + echo "substituteStream(): ERROR: substitution variables must be valid Bash names, \"$varName\" isn't." 1>&2; + return 1; + fi; + if [ -z ${!varName+x} ]; then + echo "substituteStream(): ERROR: variable \$$varName is unset" 1>&2; + return 1; + fi; + pattern="@$varName@"; + replacement="${!varName}"; + eval "$var"'=${'"$var"'//"$pattern"/"$replacement"}' + ;; + --subst-var-by) + pattern="@$2@"; + replacement="$3"; + eval "$var"'=${'"$var"'//"$pattern"/"$replacement"}'; + shift 3 + ;; + *) + echo "substituteStream(): ERROR: Invalid command line argument: $1" 1>&2; + return 1 + ;; + esac; + done; + printf "%s" "${!var}" +} +unpackFile () +{ + + curSrc="$1"; + echo "unpacking source archive $curSrc"; + if ! runOneHook unpackCmd "$curSrc"; then + echo "do not know how to unpack source archive $curSrc"; + exit 1; + fi +} +unpackPhase () +{ + + runHook preUnpack; + if [ -z "${srcs:-}" ]; then + if [ -z "${src:-}" ]; then + echo 'variable $src or $srcs should point to the source'; + exit 1; + fi; + srcs="$src"; + fi; + local -a srcsArray; + if [ -n "$__structuredAttrs" ]; then + srcsArray=("${srcs[@]}"); + else + srcsArray=($srcs); + fi; + local dirsBefore=""; + for i in *; + do + if [ -d "$i" ]; then + dirsBefore="$dirsBefore $i "; + fi; + done; + for i in "${srcsArray[@]}"; + do + unpackFile "$i"; + done; + : "${sourceRoot=}"; + if [ -n "${setSourceRoot:-}" ]; then + runOneHook setSourceRoot; + else + if [ -z "$sourceRoot" ]; then + for i in *; + do + if [ -d "$i" ]; then + case $dirsBefore in + *\ $i\ *) + + ;; + *) + if [ -n "$sourceRoot" ]; then + echo "unpacker produced multiple directories"; + exit 1; + fi; + sourceRoot="$i" + ;; + esac; + fi; + done; + fi; + fi; + if [ -z "$sourceRoot" ]; then + echo "unpacker appears to have produced no directories"; + exit 1; + fi; + echo "source root is $sourceRoot"; + if [ "${dontMakeSourcesWritable:-0}" != 1 ]; then + chmod -R u+w -- "$sourceRoot"; + fi; + runHook postUnpack +} +updateAutotoolsGnuConfigScriptsPhase () +{ + + if [ -n "${dontUpdateAutotoolsGnuConfigScripts-}" ]; then + return; + fi; + for script in config.sub config.guess; + do + for f in $(find . -type f -name "$script"); + do + echo "Updating Autotools / GNU config script to a newer upstream version: $f"; + cp -f "/nix/store/nzxlaxndhjcxk9xxas0gwiywb74zw7a7-gnu-config-2023-07-31/$script" "$f"; + done; + done +} +updateSourceDateEpoch () +{ + + local path="$1"; + local -a res=($(find "$path" -type f -not -newer "$NIX_BUILD_TOP/.." -printf '%T@ %p\0' | sort -n --zero-terminated | tail -n1 --zero-terminated | head -c -1)); + local time="${res[0]//\.[0-9]*/}"; + local newestFile="${res[1]}"; + if [ "${time:-0}" -gt "$SOURCE_DATE_EPOCH" ]; then + echo "setting SOURCE_DATE_EPOCH to timestamp $time of file $newestFile"; + export SOURCE_DATE_EPOCH="$time"; + local now="$(date +%s)"; + if [ "$time" -gt $((now - 60)) ]; then + echo "warning: file $newestFile may be generated; SOURCE_DATE_EPOCH may be non-deterministic"; + fi; + fi +} +PATH="$PATH:$nix_saved_PATH" +XDG_DATA_DIRS="$XDG_DATA_DIRS:$nix_saved_XDG_DATA_DIRS" +export NIX_BUILD_TOP="$(mktemp -d -t nix-shell.XXXXXX)" +export TMP="$NIX_BUILD_TOP" +export TMPDIR="$NIX_BUILD_TOP" +export TEMP="$NIX_BUILD_TOP" +export TEMPDIR="$NIX_BUILD_TOP" +eval "$shellHook" diff --git a/dist/cabal-config-flags b/dist/cabal-config-flags new file mode 100644 index 0000000..41b83a1 Binary files /dev/null and b/dist/cabal-config-flags differ diff --git a/sequelize.cabal b/sequelize.cabal index 3a02ff6..f31e07d 100644 --- a/sequelize.cabal +++ b/sequelize.cabal @@ -1,10 +1,10 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.33.0. +-- This file has been generated from package.yaml by hpack version 0.34.4. -- -- see: https://github.com/sol/hpack -- --- hash: 492410794b7d56b74a2a0cc2cb2d4ea37d2c1711251fc612e511aab5adfc35e6 +-- hash: 4f5036bc14bc846828e0e27dec4a5fcfc5a0c8d4b152212b5f5ea2a5cc045e66 name: sequelize version: 1.1.0.0 @@ -21,6 +21,7 @@ library exposed-modules: Sequelize Sequelize.Encode + Sequelize.SQLObject other-modules: Paths_sequelize hs-source-dirs: diff --git a/src/Sequelize.hs b/src/Sequelize.hs index 35b6924..cfa112e 100644 --- a/src/Sequelize.hs +++ b/src/Sequelize.hs @@ -71,6 +71,7 @@ import qualified GHC.Generics as G import GHC.Types (Type) import GHC.TypeLits (Symbol) import Named ((:!), (:?), arg, argF) +import Sequelize.SQLObject ---------------------------------------------------------------------------- -- Column @@ -97,13 +98,13 @@ isClausesToWhere :: WHERE be table -> Where be table isClausesToWhere = fmap (\(IS c v) -> Is c (Eq v)) data IS be table where - IS :: (ToJSON value, Ord value, EqValue be value, Show value) => Column table value -> value -> IS be table + IS :: (ToJSON value, Ord value, EqValue be value, Show value, ToSQLObject value) => Column table value -> value -> IS be table data Clause be (table :: (Type -> Type) -> Type) where And :: [Clause be table] -> Clause be table Or :: [Clause be table] -> Clause be table Is :: - (ToJSON value, Ord value, Show value) => + (ToJSON value, Ord value, Show value, ToSQLObject value) => Column table value -> Term be value -> Clause be table @@ -223,7 +224,7 @@ orderByQ (Desc column) item = data Set be table = forall value. - (B.BeamSqlBackendCanSerialize be value, ToJSON value) => + (B.BeamSqlBackendCanSerialize be value, ToJSON value, ToSQLObject value) => Set (Column table value) value | forall value. SetDefault (Column table value) @@ -287,7 +288,8 @@ instance ( c ~ 'G.MetaSel ('Just name) _u _s _d, HasTableField name table (Maybe value), B.BeamSqlBackendCanSerialize be (Maybe value), - ToJSON value + ToJSON value, + ToSQLObject (Maybe value) ) => GModelToSets be table (G.S1 c (G.Rec0 (Maybe value))) where @@ -303,7 +305,8 @@ instance ( c ~ 'G.MetaSel ('Just name) _u _s _d, HasTableField name table value, B.BeamSqlBackendCanSerialize be value, - ToJSON value + ToJSON value, + ToSQLObject value ) => GModelToSets be table (G.S1 c (G.Rec0 value)) where diff --git a/src/Sequelize/SQLObject.hs b/src/Sequelize/SQLObject.hs new file mode 100644 index 0000000..1ca159b --- /dev/null +++ b/src/Sequelize/SQLObject.hs @@ -0,0 +1,42 @@ +{-# LANGUAGE TypeApplications #-} +{-# OPTIONS_GHC -Wno-orphans #-} + +module Sequelize.SQLObject where + +import qualified Data.Aeson as A +import Data.Coerce (coerce) +import qualified Data.Vector as V +import Database.Beam.Backend +import qualified Database.Beam.Backend.SQL.AST as B +import Data.Text +import Data.Aeson +import qualified Data.Text as T + +data SQLObject a = SQLObjectValue Text | SQLObjectList [SQLObject a] + +instance ToJSON (SQLObject a) where + toJSON (SQLObjectValue a) = A.String a + toJSON (SQLObjectList as) = A.Array (V.fromList $ toJSON <$> as) + +class ToSQLObject a where + convertToSQLObject :: a -> SQLObject a + +instance HasSqlValueSyntax B.Value A.Value where + sqlValueSyntax = autoSqlValueSyntax + +instance HasSqlValueSyntax B.Value a => ToSQLObject a where + convertToSQLObject = SQLObjectValue . valueToText . sqlValueSyntax @B.Value + +-- FIXME remove overlapping if possible +instance {-# OVERLAPPING #-} ToSQLObject a => ToSQLObject [a] where + convertToSQLObject v = do + let sqlObjectsList = convertToSQLObject <$> v + SQLObjectList $ coerce @(SQLObject a) @(SQLObject [a]) <$> sqlObjectsList + +instance {-# OVERLAPPING #-} ToSQLObject a => ToSQLObject (Maybe a) where + convertToSQLObject mbA = case mbA of + Just a -> coerce @(SQLObject a) @(SQLObject (Maybe a)) $ convertToSQLObject a + Nothing -> coerce @(SQLObject SqlNull) @(SQLObject (Maybe a)) $ convertToSQLObject SqlNull + +valueToText :: B.Value -> Text +valueToText (B.Value v) = T.pack $ show v