digitallyinduced / digitallyinduced/ihp
Problem first use of ihp-new on Windows 10
- Dominant language
- Haskell
- Stars
- 5.4k
- Forks
- 225
- Avg merge
- 14h 56m
- Merged PRs (30d)
- 20
Description
Hello,
I tried to install IHP on windows 10 using the doc : https://ihp.digitallyinduced.com/Guide/installation.html
I installed :
- WSL
- Ubuntu 20.04
- Made : sudo update and sudo upgrade then sudo apt install git curl make xdg-utils -y
- Created : sudo mkdir -p /etc/nix
- Created : /etc/nix/nix.conf
- Installed IHP : curl -L https://nixos.org/nix/install | sh
Everything ok up to here.
Then I started a project :
- ihp-new blog
That made that error :
**propagated-build-inputs: /nix/store/z856a8dzgp75jaswjsh0bw77svsd9jxh-wai-cors-0.2.7/nix-support/propagated-build-inputs
ghc-pkg: Couldn't open database /nix/store/31170mzlvjrhhl380kv4lj66dqpgpzxa-ghc-8.10.4-with-packages/lib/ghc-8.10.4/package.conf.d for modification: {handle: /nix/store/31170mzlvjrhhl380kv4lj66dqpgpzxa-ghc-8.10.4-with-packages/lib/ghc-8.10.4/package.conf.d/package.cache.lock}: hLock: invalid argument (Invalid argument)
builder for '/nix/store/rk3331w92vvkwkdaq35360bb7yd603b6-ghc-8.10.4-with-packages.drv' failed with exit code 1
error: build of '/nix/store/rk3331w92vvkwkdaq35360bb7yd603b6-ghc-8.10.4-with-packages.drv' failed**
What is the problem ? Is it a bug ?
The documentation is great but the part of installation which is not at the same great level of the rest.
Any help should be appreciated.
===========================
Below you can read the log of ihp-new blog
```
DIRENV MISSING
IHP uses direnv to manage env variables.
Learn more about direnv here: https://direnv.net/
We will install direnv for you now. Continue? (Type y to proceed)
y
installing 'direnv-2.28.0'
these paths will be fetched (2.05 MiB download, 7.21 MiB unpacked):
/nix/store/7xp1yxk8d67ik4rfcbxxjrfv6fnch0p5-iana-etc-20210225
/nix/store/lw11rwn4di70vzdafaajjx49yva8ahj8-direnv-2.28.0
/nix/store/qd3g8rk5hx5zkb70idjh6fa12sh6bipg-mailcap-2.1.53
copying path '/nix/store/7xp1yxk8d67ik4rfcbxxjrfv6fnch0p5-iana-etc-20210225' from 'https://cache.nixos.org'...
copying path '/nix/store/qd3g8rk5hx5zkb70idjh6fa12sh6bipg-mailcap-2.1.53' from 'https://cache.nixos.org'...
copying path '/nix/store/lw11rwn4di70vzdafaajjx49yva8ahj8-direnv-2.28.0' from 'https://cache.nixos.org'...
building '/nix/store/s68v371s4xariyk9lnyxwx1kwy650jq9-user-environment.drv'...
created 42 symlinks in user environment
Direnv needs to be hooked into your shell. Please follow the steps below:
Bash: Add eval "$(direnv hook bash)" to ~/.bashrc
ZSH: Add eval "$(direnv hook zsh)" to ~/.zshrc
Other shells: See https://direnv.net/#README
Have you hooked direnv into your shell? [y/n]
y
Great!
CACHIX MISSING
IHP uses cachix as a binary cache.
Learn more about cachix here: https://cachix.org/
We will install cachix for you now. Continue? (Type y to proceed)
y
installing 'cachix-0.6.1'
these paths will be fetched (5.95 MiB download, 30.46 MiB unpacked):
/nix/store/0x0200j6wwsj5my4yghyb1np9wg4p07r-libsodium-1.0.18
/nix/store/45n5l14bls47s0k500jwghikjh886icx-s2n-tls-1.0.16
/nix/store/4cbkwa7rzin5ispab5zj25bsfiwbh5n5-aws-c-event-stream-0.2.7
/nix/store/56hqzx21179pphz30ccmfskrs7w3a09z-nix-2.3.15-man
/nix/store/6fr58pqy02hmgw1h7b9nqmv7vlp3v346-nix-2.3.15
/nix/store/7ll2jfpb8ypiqzynll74a671r4x0dfn5-busybox-static-x86_64-unknown-linux-musl-1.33.1
/nix/store/80kn131d7zwg8yk4q966vh2m5v32nal0-aws-c-io-0.10.5
/nix/store/9fww6aaldssd57fvnb8yhp3hinnfc9kw-aws-sdk-cpp-1.8.130
/nix/store/9xhmj95cj7d0f6vq1k7q8hm9rcf139az-editline-1.17.1
/nix/store/di1qkgj1lri5n7v65495pmi8ys2mz5q6-aws-c-cal-0.5.11
/nix/store/dxrlrj14q3girml89waw10a4hddavqqf-cachix-0.6.1
/nix/store/ggr0zp820i0ph2x33cm9c47fgf52j1cp-boehm-gc-8.0.4
/nix/store/nn3q0xxsy91nf2y23mjl5680n1isin6l-aws-c-common-0.6.9
/nix/store/qqf1wpz29d1lffm59xw4dgfi0qriq3a1-gmp-6.2.1
/nix/store/zcmfdl6cl0x60skqdfii5c0x08im88iy-aws-checksums-0.1.11
copying path '/nix/store/7ll2jfpb8ypiqzynll74a671r4x0dfn5-busybox-static-x86_64-unknown-linux-musl-1.33.1' from 'https://cache.nixos.org'...
copying path '/nix/store/nn3q0xxsy91nf2y23mjl5680n1isin6l-aws-c-common-0.6.9' from 'https://cache.nixos.org'...
copying path '/nix/store/ggr0zp820i0ph2x33cm9c47fgf52j1cp-boehm-gc-8.0.4' from 'https://cache.nixos.org'...
copying path '/nix/store/di1qkgj1lri5n7v65495pmi8ys2mz5q6-aws-c-cal-0.5.11' from 'https://cache.nixos.org'...
copying path '/nix/store/zcmfdl6cl0x60skqdfii5c0x08im88iy-aws-checksums-0.1.11' from 'https://cache.nixos.org'...
copying path '/nix/store/9xhmj95cj7d0f6vq1k7q8hm9rcf139az-editline-1.17.1' from 'https://cache.nixos.org'...
copying path '/nix/store/qqf1wpz29d1lffm59xw4dgfi0qriq3a1-gmp-6.2.1' from 'https://cache.nixos.org'...
copying path '/nix/store/0x0200j6wwsj5my4yghyb1np9wg4p07r-libsodium-1.0.18' from 'https://cache.nixos.org'...
copying path '/nix/store/56hqzx21179pphz30ccmfskrs7w3a09z-nix-2.3.15-man' from 'https://cache.nixos.org'...
copying path '/nix/store/45n5l14bls47s0k500jwghikjh886icx-s2n-tls-1.0.16' from 'https://cache.nixos.org'...
copying path '/nix/store/80kn131d7zwg8yk4q966vh2m5v32nal0-aws-c-io-0.10.5' from 'https://cache.nixos.org'...
copying path '/nix/store/4cbkwa7rzin5ispab5zj25bsfiwbh5n5-aws-c-event-stream-0.2.7' from 'https://cache.nixos.org'...
copying path '/nix/store/9fww6aaldssd57fvnb8yhp3hinnfc9kw-aws-sdk-cpp-1.8.130' from 'https://cache.nixos.org'...
copying path '/nix/store/6fr58pqy02hmgw1h7b9nqmv7vlp3v346-nix-2.3.15' from 'https://cache.nixos.org'...
copying path '/nix/store/dxrlrj14q3girml89waw10a4hddavqqf-cachix-0.6.1' from 'https://cache.nixos.org'...
building '/nix/store/rk0y9snspxgca6c8maflaz492m20d5zp-user-environment.drv'...
created 47 symlinks in user environment
We will now create your new IHP. This may take up to 30 seconds.
/nix/store/nsizdicw5gb7anjn62yik8iy2kicb4b5-retry-0.8.1.2/nix-support:
propagated-build-inputs: /nix/store/z856a8dzgp75jaswjsh0bw77svsd9jxh-wai-cors-0.2.7/nix-support/propagated-build-inputs
/nix/store/hy57533ijbvhm825938k27icmxj47q5a-raw-strings-qq-1.1/nix-support:
propagated-build-inputs: /nix/store/z856a8dzgp75jaswjsh0bw77svsd9jxh-wai-cors-0.2.7/nix-support/propagated-build-inputs
/nix/store/8k1vsmarg4zxf4asjlk65ja0cwbq17zg-mtl-compat-0.2.2/nix-support:
propagated-build-inputs: /nix/store/z856a8dzgp75jaswjsh0bw77svsd9jxh-wai-cors-0.2.7/nix-support/propagated-build-inputs
/nix/store/0j67yqxfra1jiqrj3hda263yar65w0gq-protolude-0.3.0/nix-support:
propagated-build-inputs: /nix/store/z856a8dzgp75jaswjsh0bw77svsd9jxh-wai-cors-0.2.7/nix-support/propagated-build-inputs
/nix/store/1hfyg4ffy3qz185mayb2dkc560s5p470-ini-0.4.1/nix-support:
propagated-build-inputs: /nix/store/z856a8dzgp75jaswjsh0bw77svsd9jxh-wai-cors-0.2.7/nix-support/propagated-build-inputs
.......
propagated-build-inputs: /nix/store/z856a8dzgp75jaswjsh0bw77svsd9jxh-wai-cors-0.2.7/nix-support/propagated-build-inputs
/nix/store/9mzvvqn4mdr0d54x40skx204xhywzm13-aeson-pretty-0.8.8/nix-support:
propagated-build-inputs: /nix/store/z856a8dzgp75jaswjsh0bw77svsd9jxh-wai-cors-0.2.7/nix-support/propagated-build-inputs
/nix/store/f18pwxhycvvnsim59bzrnspgzcbq82dw-haskell-language-server-1.2.0.0/nix-support:
propagated-build-inputs: /nix/store/z856a8dzgp75jaswjsh0bw77svsd9jxh-wai-cors-0.2.7/nix-support/propagated-build-inputs
/nix/store/kp4hnhfkd7c6gf3fnb8z897nwnpvg5w7-ghc-8.10.4/nix-support:
propagated-build-inputs: /nix/store/z856a8dzgp75jaswjsh0bw77svsd9jxh-wai-cors-0.2.7/nix-support/propagated-build-inputs
ghc-pkg: Couldn't open database /nix/store/31170mzlvjrhhl380kv4lj66dqpgpzxa-ghc-8.10.4-with-packages/lib/ghc-8.10.4/package.conf.d for modification: {handle: /nix/store/31170mzlvjrhhl380kv4lj66dqpgpzxa-ghc-8.10.4-with-packages/lib/ghc-8.10.4/package.conf.d/package.cache.lock}: hLock: invalid argument (Invalid argument)
builder for '/nix/store/rk3331w92vvkwkdaq35360bb7yd603b6-ghc-8.10.4-with-packages.drv' failed with exit code 1
error: build of '/nix/store/rk3331w92vvkwkdaq35360bb7yd603b6-ghc-8.10.4-with-packages.drv' failed
```
Contributor guide
Assessment
This issue has not been assessed yet.