typeable / stackage2nix

Generate Nix build instructions from a Stack file
BSD 3-Clause "New" or "Revised" License
49 stars 18 forks source link

`nix-build nix/stackage2nix` fails with could not resolve github.com? #40

Open MartinPotier opened 6 years ago

MartinPotier commented 6 years ago
$ nix-build nix/stackage2nix
these derivations will be built:
  /nix/store/6zycxh4iczz9qxzffyb7ickackcjl68f-stm-2.4.4.1.drv
  /nix/store/02n9vy745g7ca51b9ifaiw44pfml1ng9-stm-chans-3.0.0.4.drv
  /nix/store/6gpzsb5lp646frvl83jsgzpfp1jbadnm-text-1.2.2.2.drv
  /nix/store/83jx78vanwx9j4hn52qnp01rda2iz2yh-hashable-1.2.6.1.drv
  /nix/store/79h11zq7mdpd4ik5bk4vzbcpwg22qr8n-unordered-containers-0.2.8.0.drv
  /nix/store/59ilnzy1c77z2ig2sr8i99kn56mpp1ri-integer-logarithms-1.0.2.drv
  /nix/store/6dfwf8vmp5abfa924a7dpq244y32fp9a-primitive-0.6.2.0.drv
  /nix/store/aqf8b6wp7r9xb9vsiq7abll5rhfr2yik-scientific-0.3.5.1.drv
  /nix/store/97kaqsfl3il3pifkigxkji1nvcygn85c-attoparsec-0.13.1.0.drv
  /nix/store/bfxckvbg6ibi6awz1d2sfy7axsh22nl9-base-compat-0.9.3.drv
  /nix/store/flbxmyh9la7jx7nv20wp4k34jw46qsz8-dlist-0.8.0.3.drv
  /nix/store/dj2d4f7c6112vnd1jmyka8aix6pn7jk2-transformers-compat-0.5.1.4.drv
  /nix/store/k1b5ji03kfv5f0nl6jyyyhvjlkqkm1s7-tagged-0.8.5.drv
  /nix/store/1rlaxsp2kjmb4nwizcsw0hfc638rd9x0-random-1.1.drv
  /nix/store/pvn3rsrsrln55phn6vi0x7dydv1n380j-uuid-types-1.0.3.drv
  /nix/store/ynyk5nzy2kdv2vz8kx33128mkk95zssm-vector-0.12.0.1.drv
  /nix/store/zqql05y47bhjdfffrd0pvryjh02mz6n3-time-locale-compat-0.1.1.3.drv
  /nix/store/06s32wzjs27f58al4zg15jb5xk6y2q80-aeson-1.1.2.0.drv
  /nix/store/2wkw2f3clwx08yg8h0y62s2mpdvx76zr-semigroups-0.18.3.drv
  /nix/store/r3kxi73kffxz64qjyrflsgi0194frdyj-Cabal-2.0.0.2.drv
  /nix/store/4sa45wqk2213xxmj3f7hijxk6yy7s5kc-cabal-doctest-1.0.2.drv
  /nix/store/azsyk8m2zzj2wf9a0lxn9rw34arm9mpw-void-0.7.2.drv
  /nix/store/m6qiscrf0gg5h76dfplcs8xbsf5m5ixx-StateVar-1.1.0.4.drv
  /nix/store/mdb7chd4fvkr84j1kznyg1r36pgrp4jh-contravariant-1.4.drv
  /nix/store/md4cx8jvd3lbmfv3lv4dz7ch6kvn56sy-base-orphans-0.6.drv
  /nix/store/x8v1j8cjqcd4jmclqk1d4zg88p5gns39-distributive-0.5.3.drv
  /nix/store/gd8m915f4m0c5zrwg7fzqdl1i2z6v3xr-comonad-5.0.2.drv
  /nix/store/kzpa2zvll0zpfbhn7f5ir5sylkiiy3fy-bifunctors-5.4.2.drv
  /nix/store/0m8490795rpjir2fa03ddfvsj22d3rsi-semigroupoids-5.2.1.drv
  /nix/store/0nk0wfddzmf003qixfh272blwnn9aq5a-chunked-data-0.3.0.drv
  /nix/store/7mlnrwhzwc4p7rfi59c1xm6h94lqp82b-data-default-class-0.1.2.0.drv
  /nix/store/0pqmx9pi0gqsnhmr7g5hjsvvcr7mnc1h-data-default-instances-dlist-0.0.1.drv
  /nix/store/0yap0x6jkz6d6pn7vhi03dbrz9qq2if6-network-2.6.3.2.drv
  /nix/store/jhmkwg125lhwlfmgrda2s9mspb2s9d3y-blaze-builder-0.4.0.2.drv
  /nix/store/vv3yf3vyi6m88pfcfgbik3wvmnycm9d6-case-insensitive-1.2.0.10.drv
  /nix/store/7q74dl584jdv8w8fr05n008qg51hmpcm-http-types-0.9.1.drv
  /nix/store/78chwa6qcq7cc18lpa9rp3132ib6j5dl-mtl-2.2.1.drv
  /nix/store/jgs2fbmngvk810cak6qhb8dyjv6v5mn0-hourglass-0.2.10.drv
  /nix/store/r1rbzqsbx8y0glpw7smfrifb2k7yc7j7-foundation-0.0.13.drv
  /nix/store/llv0l7z41b0khkhri635j24sm0m1rim6-memory-0.14.6.drv
  /nix/store/8dm2vd8a5rdvjfqisvj5ikm4vljvrziw-asn1-types-0.3.2.drv
  /nix/store/b24nmsfdxdvkfgp1990240p662gmg6kw-base64-bytestring-1.0.0.1.drv
  /nix/store/fhn6fn1bh5dd36lszzx9faqhzrz3wbra-pem-0.2.2.drv
  /nix/store/jilvhxlbv4dawi3bzdcslh8isr77wpws-cryptonite-0.23.drv
  /nix/store/l3x19zmgqzj1vxm7nwjmifzqk6qw1rxw-asn1-encoding-0.9.5.drv
  /nix/store/d6i83sg6l2irdhkcqq59wh7jcslilcxi-asn1-parse-0.9.4.drv
  /nix/store/msfp7ix1zm8d5c81gdkv4ph03804jc2m-x509-1.7.2.drv
  /nix/store/vhj6k0c4j52advy36ljq0b6sg2hh5izd-byteable-0.1.1.drv
  /nix/store/xynl3s92ps1l2aw7y0a9hs4gsdc54ng1-x509-store-1.6.5.drv
  /nix/store/brvp9kqndmy220a4zv9zy5dxjswhanhw-x509-validation-1.6.9.drv
  /nix/store/7qdngh258hysr0v5d7xqcg0239z4yi8l-async-2.1.1.1.drv
  /nix/store/kxahwll55m2jj0qcxfi3nxrd1qrdkxbf-cereal-0.5.4.0.drv
  /nix/store/j4hm14lv1iyadk3821bacfx7ifv9403l-tls-1.3.11.drv
  /nix/store/p0mym6g5lcfy9yjbcz8hzvacqxvisls7-x509-system-1.6.6.drv
  /nix/store/whlixph5cjz3lm30ag0xi683yllfqhwp-socks-0.5.5.drv
  /nix/store/agm308j5pbmx2j3mqzq12zx9b4rrp4ka-connection-0.2.8.drv
  /nix/store/2682xmgv02kx90gb3p2f7av3pq66ba0i-parsec-3.1.11.drv
  /nix/store/scw359xv57l54gagdg00mzlkg4a4d012-network-uri-2.6.1.0.drv
  /nix/store/hghb6k3sqc1zdjnfm90nrk31qld35nvz-old-locale-1.0.0.7.drv
  /nix/store/v3fjllzlrkvhq5zrlrzd8ziz1q5sibdz-cookie-0.4.2.1.drv
  /nix/store/xdha9kp44fdh2vvmfss5ng04zbzykf2j-mime-types-0.1.0.7.drv
  /nix/store/y9gnggwwpi9686lyacpmd9baycmvlkgk-exceptions-0.8.3.drv
  /nix/store/jhrr5vw65qsgmlmdz95bsy7rxmdkffhz-zlib-0.6.1.2.drv
  /nix/store/z0wkdd6q5c8rax4nwnd4kqc9akn738rx-streaming-commons-0.1.17.drv
  /nix/store/pa0jzgfyi7hi2njj9ha7h55gjqdy5bzy-http-client-0.5.7.0.drv
  /nix/store/0pw650gcz8bgwjr2hc6xl45iww5in8mi-http-client-tls-0.3.5.1.drv
  /nix/store/0s1k09fb57ibc1r84x64yn7hh6878dia-say-0.1.0.0.drv
  /nix/store/0s9i7y0fv61bakd3b8gfghsmagfg53xj-call-stack-0.1.0.drv
  /nix/store/0zwmff0pvcj5vng1c209nqw6pissllqr-unix-compat-0.4.3.1.drv
  /nix/store/dhw3iikr3q2yndmr02qmp1z1k3j937xv-th-lift-0.7.7.drv
  /nix/store/i69sx7g5ib8x7024cck0400cxkx1vkph-syb-0.7.drv
  /nix/store/f2r1bd31lbbpgl6a2fiz9h267qgxj14i-th-expand-syns-0.4.3.0.drv
  /nix/store/zlrm7gxsba9ld9v1kj6k14a5d8ssjvd5-safe-0.3.15.drv
  /nix/store/v2irjmkalvnias2kp3p7q5vghdpg39bc-th-reify-many-0.1.8.drv
  /nix/store/w6n1ww4jr9vprjr89hg2072bxbxbbhmk-th-lift-instances-0.1.11.drv
  /nix/store/14s4cnszaah7r3yvp3pwynwxpdkz33s9-th-orphans-0.13.4.drv
  /nix/store/1dhlgdn8rrsv7gn9i83zsadsykd5560s-auto-update-0.1.4.drv
  /nix/store/1g5sfnh80pwqr9minz7qdnavdg79qgj2-ini-0.3.5.drv
  /nix/store/26z1j2rm75qcyfcjwjg3lrxaq4pmx3z8-vector-th-unbox-0.2.1.6.drv
  /nix/store/b16jpby4cq6a44v30919iwb88ycmlw90-math-functions-0.2.1.0.drv
  /nix/store/54n4svvjjll08v05b8c8xrr8dw3iaxsm-mwc-random-0.13.6.0.drv
  /nix/store/ilidnmw41phk4177a1pabi56imzailfj-vector-algorithms-0.7.0.1.drv
  /nix/store/mi055wcdn7qpw95swyg8j3bsra65m7g6-split-0.2.3.2.drv
  /nix/store/yxpgvm9nij2g93f777c4pxdag3mhm618-mono-traversable-1.0.2.1.drv
  /nix/store/30p20xhzr291fm0nvxxg55jhflyi1s92-mutable-containers-0.3.3.drv
  /nix/store/5mxlmk7wgbvlz62z970whbwjm2rj5bvv-system-filepath-0.4.13.4.drv
  /nix/store/g6ypwp2nz82jvqx8lvy2i052fm55vrv8-ReadArgs-1.2.3.drv
  /nix/store/g6mnn5l0x2fgxdy25xrfhwymd87dq8ma-transformers-base-0.4.4.drv
  /nix/store/7vkbpvixgdb3pgqbdkpy808g7a3dqljg-monad-control-1.0.2.2.drv
  /nix/store/zkx4cirk13nqwdvb8npczfl1ddlp1al7-lifted-base-0.2.3.11.drv
  /nix/store/43b6424ykcfxxy57a10sfdj6bssih021-basic-prelude-0.6.1.1.drv
  /nix/store/4853zhh6h35sgszg5wwyhdb9q920i5n2-safe-exceptions-0.1.6.0.drv
  /nix/store/6kamx2vx7r1qi87sg3359s8d2b9v7bjr-dlist-instances-0.1.1.1.drv
  /nix/store/3212xrhipmfyqdjwns52bqr3bpfiix86-fail-4.9.0.0.drv
  /nix/store/ij0dk86abq8pnwzv26ssxbhj7f2s7n7w-profunctors-5.2.1.drv
  /nix/store/6zyf1zgkmxyxzpzcp6nzsyzc05k42jnq-prelude-extras-0.4.0.3.drv
  /nix/store/k59s76glcns065wlxp12008783l0036p-free-4.12.4.drv
  /nix/store/4x2jx1cizz3ahkdmajhnpqgp121qniyp-adjunctions-4.3.drv
  /nix/store/28pn32bi0fzxngpg1fcq16845agyhbvr-kan-extensions-5.0.2.drv
  /nix/store/5z1b8whs55xfqb9g3bqnd8i87bn7a5nc-pointed-5.drv
  /nix/store/pqkbrb5ribn4by0b8hrkxlcibd0d1zg1-keys-3.11.drv
  /nix/store/sds26gq0z9k0vfsfrss9vpxg54bsg7fq-vector-instances-3.4.drv
  /nix/store/hpn8yds1i68axa20j56394rcvlj4pnm7-mono-traversable-instances-0.1.0.0.drv
  /nix/store/y2npy2wkj113ci5dacnrbm6xrq8wxql6-constraints-0.9.1.drv
  /nix/store/hpsp43g8fivgispw05rcxzgjzz4h6pv9-lifted-async-0.9.3.drv
  /nix/store/ihfcqkhn660ngn671wmf0gaa4drpsk53-monad-unlift-0.2.0.drv
  /nix/store/1gyy6ywmsv90a76j86rpnqx6vfmkv4qq-classy-prelude-1.2.0.1.drv
  /nix/store/699paaw6a0pqpl85ivlp1dcn8vmf3qn2-mmorph-1.0.9.drv
  /nix/store/ciy9g8ycwyfh0ilzrql3m0552m6djx0d-resourcet-1.1.9.drv
  /nix/store/f531fq152mzrj5pgxvxbnik4vvafxvfh-conduit-1.2.11.drv
  /nix/store/6pzplvkpc627slncw6lk3a42fc9ainrm-conduit-extra-1.1.16.drv
  /nix/store/zj823fxnz9y7x1j393c74dzpfkv2038y-base16-bytestring-0.1.1.6.drv
  /nix/store/2672i97dg3vfawsm5yrd0farn4h69w7b-conduit-combinators-1.1.1.drv
  /nix/store/5na51pqqjpa746qzb7dd8hmjm9gf5z01-reflection-2.1.2.drv
  /nix/store/7954ds8zszkqxwyxs8bhhl4i3i55rvhp-parallel-3.2.1.1.drv
  /nix/store/xm1whqz16h12ins9vk5yrcmsj9yda8ih-th-abstraction-0.2.5.0.drv
  /nix/store/389vgrk8nnnv5kjwkrv0f5z7qfmbnsw9-lens-4.15.4.drv
  /nix/store/40k13qgdarzls63spxjsghghv7cysz9d-cryptohash-0.11.9.drv
  /nix/store/4p9wwcpfbm015pbn68rywwakq44b9dw7-temporary-1.2.1.1.drv
  /nix/store/6bw6cr8lw1wi97js0ly2sh5g43i1bf37-monad-unlift-ref-0.2.0.drv
  /nix/store/77g9vq2h2qlki065vz6gqypqpvsal80k-utf8-string-1.0.1.1.drv
  /nix/store/fbi30ya80php3260qx8c3bxy83nm76dm-retry-0.7.4.2.drv
  /nix/store/j5wrsglvia1ay55szdsam5x78fladm43-http-conduit-2.2.3.2.drv
  /nix/store/aslkfjsj4dxqfij9rplpwibi1h0w40fd-blaze-markup-0.8.0.0.drv
  /nix/store/mdq13v7lh70wj7mc0cin9d7y82v7qly3-data-default-instances-old-locale-0.0.1.drv
  /nix/store/nplg7r4az598s5ircpy5bf2wnzryfc3w-data-default-instances-containers-0.0.1.drv
  /nix/store/dgr4vv4qgvzw6gy41yr8j5f69djgg5s0-data-default-0.7.1.1.drv
  /nix/store/w37lzj787qpg831qzs7j8maqwil7cmi8-blaze-html-0.9.0.1.drv
  /nix/store/wa1w711cn7i26xvg1xfz5blz1cvcsg4s-xml-types-0.3.6.drv
  /nix/store/nd2926fvls9qxg6x4v6m8dxxgggpi09s-xml-conduit-1.5.1.drv
  /nix/store/igg4xf1x83jdwzyxnqwyyzwfzdlwrkl0-amazonka-core-1.4.5.drv
  /nix/store/93mkz9961ib0qr313cqb9i7k8nck8500-amazonka-1.4.5.drv
  /nix/store/d4x4a5nknp73lcf1nxfx1qmr2qh34f1r-amazonka-s3-1.4.5.drv
  /nix/store/frcw9j7105b6rzw3cwx0k6in1hiipgdi-stackage-curator-0.15.0.0.tar.gz.drv
  /nix/store/hznpmkhy04y6xrnjzd2bi71i2b7ljih4-system-fileio-0.3.16.3.drv
  /nix/store/dqw03hivmmvpxwgjg7fk6w9xxa3xc8kg-ansi-terminal-0.6.3.1.drv
  /nix/store/88l88451if9qvyw943gd5cbblsdzjg5i-ansi-wl-pprint-0.6.7.3.drv
  /nix/store/i2nshh74bfvisw2fzmpw1kd127nz6xaq-optparse-applicative-0.13.2.0.drv
  /nix/store/9wqjvh0vsl3ycdf2dbpjcrsbx0dqckd8-setenv-0.1.1.3.drv
  /nix/store/j9iy2ra8k1rk6y4j9ggjyqmmfqy2z4br-HUnit-1.5.0.0.drv
  /nix/store/qan9f64n1hjck64gc1grh6qcr6y3qpwy-tf-random-0.5.drv
  /nix/store/spid89prvsbp4n7qzk7f54v7dwxnz3dw-QuickCheck-2.9.2.drv
  /nix/store/jgh9ads9fmqlk7bf5dwbi52wv4hgbv86-quickcheck-io-0.2.0.drv
  /nix/store/jyvw6pb4qqx7a1syx859giwcndby4fis-hspec-expectations-0.8.2.drv
  /nix/store/ahzc2s0gdqyymjwcmhbh7r0qm49s6r0z-hspec-core-2.4.4.drv
  /nix/store/jy9c3h9ppg4di2smyr5cwa1j91q5n0cc-hspec-discover-2.4.4.drv
  /nix/store/4pq6zc40nyasiyjambvq2jxq0cym7fmw-hspec-2.4.4.drv
  /nix/store/zcyrszqygfbwrv3n8alcsgmldwqi1gpf-logict-0.6.0.2.drv
  /nix/store/has0l7nq36q5vikd8ya09ymmf56fasxl-smallcheck-1.1.2.drv
  /nix/store/9ic9w2ly64wc9d41lbc8bsn8rsbn6kyz-hspec-smallcheck-0.4.2.drv
  /nix/store/d02axp1s3g8nfpczsvpvj60rnm7m23si-th-utilities-0.2.0.1.drv
  /nix/store/wqpgqvyrf3pgnlwhxx51px0ajfjyipv0-store-core-0.4.1.drv
  /nix/store/k5lsnhgif9vw565s82bbmna29q4dq2lr-store-0.4.3.1.drv
  /nix/store/lj9x45y1xccbzv68907hnq8i8jsy6dbj-tar-0.5.0.3.drv
  /nix/store/mda89jjx8a4dn5qfrc2pg813fscln6al-yaml-0.8.23.3.drv
  /nix/store/nhnyd07nmdv3r0y07hjziv0jkq4sxj56-classy-prelude-conduit-1.2.0.drv
  /nix/store/bx0s51fklvjj0lr5mycnskfpfzwpdkk4-tagstream-conduit-0.5.5.3.drv
  /nix/store/qmxwf73dbysjqmahmvp7ghvqlc5n8da6-html-conduit-1.2.1.1.drv
  /nix/store/bfkk31sp1jpnhimvdpl6ql8b2zvkh96g-gitrev-1.3.1.drv
  /nix/store/jmf8p29lmmh6if9zzab29zv356g5fln4-MonadRandom-0.5.1.drv
  /nix/store/g7mqrf8gjsn74mr8g5p9v61ms5hnamqq-either-4.4.1.1.drv
  /nix/store/qvllyjh0n9v04dczdch4c76q61pws49k-optparse-simple-0.0.3.drv
  /nix/store/r49xzyj8hyfbz888hm4p402dwkd3xvnz-cryptohash-conduit-0.1.1.drv
  /nix/store/zi2klxbj9fhlwabjvhj3fnw7nchjgj8b-lucid-2.9.8.1.drv
  /nix/store/4fnj3dcamgi5hk1j8v1zxhfypxakbnbp-stackage-curator-0.15.0.0.drv
  /nix/store/40vrd1f1acqmdhd66pmjq080m39451r8-hackage-db-1.22.drv
  /nix/store/k6bd8mvwb7gdd45dnls1k1yiljn52qgw-abstract-par-0.3.3.drv
  /nix/store/7b8x1jkijh8dbi3vc3968h7m0vl4f46b-monad-par-extras-0.3.3.drv
  /nix/store/dlw0w4n1lph48ldkyj30rc6199i0skcn-language-nix-2.1.0.1.drv
  /nix/store/qqvdw1c7rqr2vvkfx50zpiykcj69yl5h-hopenssl-2.2.1.drv
  /nix/store/8yd6w83cs61x0w1jmqmv83hwcvrcpgz5-abstract-deque-0.3.drv
  /nix/store/xkkqm39w1qqv7bmlw19bn4z0vjzgf11w-monad-par-0.3.4.8.drv
  /nix/store/zxp395af5c063a7ryx7q6ch465imfmdk-distribution-nixpkgs-1.1.drv
  /nix/store/5xj72cpxi55q9770vzm3ydffj1bwwf5a-cabal2nix-2.5.drv
  /nix/store/mjacmdc9nq7zvd4gkqgf3ffjpgs4g24p-megaparsec-5.3.1.drv
  /nix/store/81hvjxp883fdkm5zamsh0x9kdvyhi2hb-inflections-0.3.0.0.drv
  /nix/store/4snbd8zn6rhxdkcsjsfii8n16pl25c1j-text-icu-0.7.0.1.drv
  /nix/store/ndxcf0krd068mbpffa4an23prf9dbwba-old-time-1.1.0.3.drv
  /nix/store/4399zl8plqyqs1lw5n8f645wnd27kkdi-unix-time-0.3.7.drv
  /nix/store/9avbmi44g1dq2h5rpazb5q1lqp1bg9xr-easy-file-0.2.1.drv
  /nix/store/629gz76cqcffzd8gwdvhm8p9bf1am5f8-fast-logger-2.4.10.drv
  /nix/store/6l42i389fyg4z60blbf96c2s81frv862-monad-loops-0.4.3.drv
  /nix/store/a0wz84w4k6ap6vig2dv7dgv8kcn7gc08-cereal-conduit-0.7.3.drv
  /nix/store/996vf4mn39y61drr8p3q77d70qc69m0z-stm-conduit-3.0.0.drv
  /nix/store/6967bczrmcpgpnajfj54458lkzidnz3y-bindings-DSL-1.0.23.drv
  /nix/store/sblamis2l18cjn0k551fxkz4hvimij6s-hlibgit2-0.18.0.16.drv
  /nix/store/w6r64a5s54spijk9hmplc3nm2fyr237i-gitlib-3.1.1.drv
  /nix/store/9k77w3g5lvvxa8rfwfwbvfjfzqjfrhzm-gitlib-libgit2-3.1.1.drv
  /nix/store/3lg21a2l6wsxlzhp33wzcmxfdy78rndb-stackage2nix-0.3.0.drv
  /nix/store/6z50cz9l2ps94i8mvlljjaaz1q0hdfjd-stackage-nightly.drv
  /nix/store/k6qw32xy0b4gb5qlzn4zi3ja760iw9qw-stackage-lts.drv
  /nix/store/5s74xb2s5kg63c7jdrnnh1jqb7jvz5aq-stackage-all.drv
  /nix/store/rl8n5pz6y2nq8rzk1jdzx4h7h6wxza69-all-cabal-hashes.drv
  /nix/store/ziy2p3q73lh6kg4vpk68b6b1zf7y6xdn-hackage-db.drv
  /nix/store/xdbacsmnyxjkqgxxkyxklxg1f7g75cy4-stackage2nix-0.3.0.drv
these paths will be fetched (0.14 MiB download, 0.14 MiB unpacked):
  /nix/store/q02w0q7j3880wqpp7x7x2pqn2kgibhdp-zlib-0.6.1.2.tar.gz
building path(s) ‘/nix/store/3x0pigmmsvh37h7blakdf3cxl7r45am8-all-cabal-hashes’
building path(s) ‘/nix/store/iiia53r08hc9av9m3l7cxjligp9a7z4d-hackage-db’
building path(s) ‘/nix/store/zh0fqh4wxw2q3p4058gnlpi055ss4sn4-Cabal-2.0.0.2’
building path(s) ‘/nix/store/swwgy9k9vaa2q94hhmndy0snacrsnlzc-stackage-lts’
installing
Cloning into '/nix/store/3x0pigmmsvh37h7blakdf3cxl7r45am8-all-cabal-hashes'...
fatal: unable to access 'https://github.com/commercialhaskell/all-cabal-hashes.git/': Could not resolve host: github.com
installing
/nix/store/iiia53r08hc9av9m3l7cxjligp9a7z4d-hackage-db /tmp/nix-build-hackage-db.drv-0
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (6) Could not resolve host: hackage.haskell.org
setupCompilerEnvironmentPhase
Build with /nix/store/d6if3dbbw34vpl6hp6bm3jnrsb2iypil-ghc-8.0.2.
unpacking sources
unpacking source archive /nix/store/x80cka53xqlvzyl7qlln7wcdhqh98llf-Cabal-2.0.0.2.tar.gz
installing
Cloning into '/nix/store/swwgy9k9vaa2q94hhmndy0snacrsnlzc-stackage-lts'...
fatal: unable to access 'https://github.com/fpco/lts-haskell.git/': Could not resolve host: github.com
builder for ‘/nix/store/rl8n5pz6y2nq8rzk1jdzx4h7h6wxza69-all-cabal-hashes.drv’ failed with exit code 128
builder for ‘/nix/store/ziy2p3q73lh6kg4vpk68b6b1zf7y6xdn-hackage-db.drv’ failed with exit code 6
builder for ‘/nix/store/k6qw32xy0b4gb5qlzn4zi3ja760iw9qw-stackage-lts.drv’ failed with exit code 128
cannot build derivation ‘/nix/store/xdbacsmnyxjkqgxxkyxklxg1f7g75cy4-stackage2nix-0.3.0.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/xdbacsmnyxjkqgxxkyxklxg1f7g75cy4-stackage2nix-0.3.0.drv’ failed
MartinPotier commented 6 years ago

Why is it so? github.com and hackage.haskell.org are indeed accessible.

4e6 commented 6 years ago

As I see it, nix/stackage2nix builder is trying to clone github.com/fpco/lts-haskell and git is unable to resolve the hostname. I can't reproduce it with nixpkgs pinned to fresh 17.09 version:

nix-build nix/stackage2nix -I nixpkgs='https://github.com/NixOS/nixpkgs/archive/c3d4871340a0d89550c089fb24ddf3688fe6687e.tar.gz' 

Do you have some specific network setup (like proxy or something) that might block apps from the internet access?

MartinPotier commented 6 years ago

Damn that's weird. I tried with the line you provided and I get the same error. I've tried that on two different networks (DNS, IPs, Firewalls, etc. are different). Turning my firewall off did not change anything. Not using proxies or anything.

What I don't get is: what's different when I run nix-build? Those two websites are accessible without problem in my user environment. Maybe a DNS problem, but why?

4e6 commented 6 years ago

please check if nix-prefetch-git works for you

nix-shell --pure -p nix-prefetch-scripts --run 'nix-prefetch-git --url https://github.com/fpco/lts-haskell.git --rev refs/heads/master'
MartinPotier commented 6 years ago

This seems to run, on the network side at least:

$ nix-shell --pure -p nix-prefetch-scripts --run 'nix-prefetch-git --url https://github.com/fpco/lts-haskell.git --rev refs/heads/master'
Initialized empty Git repository in /run/user/1000/git-checkout-tmp-0rLa4rKM/lts-haskell/.git/
remote: Counting objects: 368, done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 368 (delta 352), reused 338 (delta 325), pack-reused 0Receiving objects: 100% (368/368), 36.86 MiB | 92.00 KiB/s, done.
Resolving deltas: 100% (352/352), done.
From https://github.com/fpco/lts-haskell
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
Switched to a new branch 'fetchgit'removing `.git'...
error: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied
4e6 commented 6 years ago

You can try to add impureEnvVars attribute to mkDerivation functions in lib.nix, as it is done in fetchgit/default.nix and see if that helps.

MartinPotier commented 6 years ago

Hmm, but GIT_PROXY_COMMAND and SOCKS_SERVER are not set in my environment. Do you really think that would help?

4e6 commented 6 years ago

There are other env variables defined in proxyImpureEnvVars that are inherited from the user. And it is the main difference I see between nix-prefetch-git and my custom fetcher. The other thing they do is setting http.proxy to git config from env variable. But that should not matter because git should understand env variables.

MartinPotier commented 6 years ago

So, adding impureEnvVars = stdenv.lib.fetchers.proxyImpureEnvVars; to mkDerivation funs in lib.nix did not change the output.

MartinPotier commented 6 years ago

Could this come from a SSL certificate problem? I'm really perplexed by this error.

4e6 commented 6 years ago

This is very peculiar indeed. I don't think it's related to SSL because first, it should resolve the hostname, and only then perform an SSL handshake. I returned to your error log and noticed that curl fails with the same issue.

curl: (6) Could not resolve host: hackage.haskell.org

For any reason, do you run this on NixOS? Does nix-builder process runs on the same machine? I have a feeling that nix-builder is aware of some particular configuration parameter, which is passed to built-in fetchers making them work. And we are just unaware of this mechanics. But that's all just speculations.

Anyway, let's check that git and curl works in pure nix shell

nix-shell --pure -p git --run 'git clone --depth 1 https://github.com/fpco/lts-haskell.git'
nix-shell --pure -p curl --run 'curl hackage.haskell.org/timestamp.json'

If it works, maybe look for env variables that were inherited from your environment, and try to pass them to mkDerivation function. If it doesn't (yay, we're able to reproduce the issue) then you can log in pure nix-shell and try to figure out the reason, it should be easier to do in an interactive environment.

MartinPotier commented 6 years ago

Both git and curl run without trouble in a pure nix-shell. Let's look at env comparisons: in a nix-shell --pure -p git:

CONFIG_SHELL=/nix/store/hqi64wjn83nw4mnf9a5z9r4vmpl72j3r-bash-4.4-p12/bin/bash
DISPLAY=:0.0
HOME=/home/eeva
IN_NIX_SHELL=1
LOGNAME=eeva
NIX_BUILD_CORES=1
NIX_BUILD_TOP=/run/user/1000
NIX_ENFORCE_NO_NATIVE=1
NIX_LDFLAGS=-rpath /nix/store/1mms40ghqrbfzb951fxxrhx23wkkpxns-shell/lib64 -rpath /nix/store/1mms40ghqrbfzb951fxxrhx23wkkpxns-shell/lib 
NIX_STORE=/nix/store
PAGER=less -R
PATH=/nix/store/mgzvk5q1cm7nyw673wysd7vxy8i7z12z-git-2.15.0/bin:/nix/store/f1wh87ibiw3nwxhcv0g9g5wy4khxs78c-patchelf-0.9/bin:/nix/store/0ns4r436sp18fgjf3njp7965j44z327y-paxctl-0.9/bin:/nix/store/r90xqqmd36fv3s53bf92s3vxhdnbwfn7-coreutils-8.28/bin:/nix/store/02xjvflg03d9wlzdw1ig54rgwa32jwxq-findutils-4.6.0/bin:/nix/store/3g6pn4wkpkyh6d0xld9jwjmmr5iw675w-diffutils-3.6/bin:/nix/store/j4rqdjgf0im2dv7gycg80hplnjrnawxx-gnused-4.4/bin:/nix/store/wia9b594w2ghzhpcjdi9mnlf8j24nm3i-gnugrep-3.1/bin:/nix/store/7c056l4rs55pbfcpcxhir7b5rmg96fwx-gawk-4.1.4/bin:/nix/store/yc6lrl2rqysl2hahd4la5zyg2yq0sqdq-gnutar-1.29/bin:/nix/store/675h774wq8zcqjg5j9f6yfshjjzcc9gi-gzip-1.8/bin:/nix/store/hckln844gfn5x44gnmfsx871f0rhkch2-bzip2-1.0.6.0.1-bin/bin:/nix/store/k6m8sdv51rkwkhhayhwh2hz4sp81i2g9-gnumake-4.2.1/bin:/nix/store/hqi64wjn83nw4mnf9a5z9r4vmpl72j3r-bash-4.4-p12/bin:/nix/store/9zmrqqm34c7g2023342ca74s5a1y5fqc-patch-2.7.5/bin:/nix/store/4ijcflvcra3s3y2iigv96w56vv7sw6zb-xz-5.2.3-bin/bin
PWD=/tmp
SHELL=/nix/store/hqi64wjn83nw4mnf9a5z9r4vmpl72j3r-bash-4.4-p12/bin/bash
SHLVL=1
SOURCE_DATE_EPOCH=1
TEMP=/run/user/1000
TEMPDIR=/run/user/1000
TERM=xterm-kitty
TMP=/run/user/1000
TMPDIR=/run/user/1000
USER=eeva
_=/nix/store/r90xqqmd36fv3s53bf92s3vxhdnbwfn7-coreutils-8.28/bin/env
_PATH=/nix/store/mgzvk5q1cm7nyw673wysd7vxy8i7z12z-git-2.15.0/bin:/nix/store/f1wh87ibiw3nwxhcv0g9g5wy4khxs78c-patchelf-0.9/bin:/nix/store/0ns4r436sp18fgjf3njp7965j44z327y-paxctl-0.9/bin
__ETC_PROFILE_SOURCED=1
buildCommand=
buildInputs=/nix/store/mgzvk5q1cm7nyw673wysd7vxy8i7z12z-git-2.15.0
builder=/nix/store/hqi64wjn83nw4mnf9a5z9r4vmpl72j3r-bash-4.4-p12/bin/bash
configureFlags=
name=shell
nativeBuildInputs=
out=/nix/store/1mms40ghqrbfzb951fxxrhx23wkkpxns-shell
passAsFile=buildCommand
propagatedBuildInputs=
propagatedNativeBuildInputs=
shell=/nix/store/hqi64wjn83nw4mnf9a5z9r4vmpl72j3r-bash-4.4-p12/bin/bash
stdenv=/nix/store/3il50zdnyw2hws9nxw6s5yjzfkppm2aj-stdenv
system=x86_64-linux

Whereas in your builder:

propagatedBuildInputs=
stdenv=/nix/store/066fqdvgfnzdr27i1ffz7cghf8r89glg-stdenv
TZ=UTC
version=0
out=/nix/store/f1rlw0mr9jrwl2wdpm2nnhfzg6splp53-all-cabal-hashes
CONFIG_SHELL=/nix/store/hqi64wjn83nw4mnf9a5z9r4vmpl72j3r-bash-4.4-p12/bin/bash
buildInputs=/nix/store/mgzvk5q1cm7nyw673wysd7vxy8i7z12z-git-2.15.0
builder=/nix/store/hqi64wjn83nw4mnf9a5z9r4vmpl72j3r-bash-4.4-p12/bin/bash
CC=gcc
STRIP=strip
OBJCOPY=objcopy
propagatedNativeBuildInputs=
system=x86_64-linux
PWD=/tmp/nix-build-all-cabal-hashes.drv-0
phases=installPhase
HOME=/homeless-shelter
TMP=/tmp/nix-build-all-cabal-hashes.drv-0
NIX_ENFORCE_NO_NATIVE=1
RANLIB=ranlib
AS=as
AR=ar
SSL_CERT_FILE=/nix/store/z7r8sgk8y7s5r24vrzf2h1dkqcbw4nwj-nss-cacert-3.32.1/etc/ssl/certs/ca-bundle.crt
NIX_CC=/nix/store/dvh411w314lvqvdlrf1m76jxq8mh207g-gcc-wrapper-6.4.0
NIX_STORE=/nix/store
NIX_CC_WRAPPER_x86_64_unknown_linux_gnu_TARGET_HOST=1
configureFlags=
_PATH=/nix/store/mgzvk5q1cm7nyw673wysd7vxy8i7z12z-git-2.15.0/bin:/nix/store/f1wh87ibiw3nwxhcv0g9g5wy4khxs78c-patchelf-0.9/bin:/nix/store/0ns4r436sp
MartinPotier commented 6 years ago

That was it. For now I can build if I set the nix sandbox config option to false.