{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/intero/issues/341","repository_url":"https://api.github.com/repos/commercialhaskell/intero","labels_url":"https://api.github.com/repos/commercialhaskell/intero/issues/341/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/intero/issues/341/comments","events_url":"https://api.github.com/repos/commercialhaskell/intero/issues/341/events","html_url":"https://github.com/commercialhaskell/intero/issues/341","id":198031234,"number":341,"title":"`intero` integration with Nix is broken.","user":{"login":"deepfire","id":452652,"avatar_url":"https://avatars.githubusercontent.com/u/452652?v=3","gravatar_id":"","url":"https://api.github.com/users/deepfire","html_url":"https://github.com/deepfire","followers_url":"https://api.github.com/users/deepfire/followers","following_url":"https://api.github.com/users/deepfire/following{/other_user}","gists_url":"https://api.github.com/users/deepfire/gists{/gist_id}","starred_url":"https://api.github.com/users/deepfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepfire/subscriptions","organizations_url":"https://api.github.com/users/deepfire/orgs","repos_url":"https://api.github.com/users/deepfire/repos","events_url":"https://api.github.com/users/deepfire/events{/privacy}","received_events_url":"https://api.github.com/users/deepfire/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-29T16:17:50Z","updated_at":"2016-12-29T16:18:29Z","closed_at":null,"body":"In very fresh nixpkgs, the following fails:\r\n```\r\n[nix-shell:~/src/tmp]$ cat ~/.stack/config.yaml\r\nnix:\r\n  enable: true\r\n\r\ndeepfire@andromedae:~/src/tmp$ cat > shell.nix\r\n{ nixpkgs ? import <nixpkgs> {}, pkgs ? nixpkgs.pkgs }:\r\n(pkgs.haskellPackages.callPackage\r\n  ({ mkDerivation\r\n   , emacs\r\n   , intero\r\n   , stack\r\n   , nix\r\n   }:\r\n   mkDerivation {\r\n     pname = \"foo\";\r\n     version = \"0.0.1\";\r\n     src = ./.;\r\n     isLibrary = false;\r\n     isExecutable = true;\r\n     executableHaskellDepends = [\r\n          ((pkgs.emacsPackagesNgGen pkgs.emacs).emacsWithPackages\r\n\t   (epkgs: [ epkgs.melpaPackages.intero ]))\r\n\t  intero\r\n   \t  stack\r\n   \t  nix\r\n     ];\r\n     description = \"Foo\";\r\n     license = \"foo\";\r\n   })\r\n  {}).env\r\n\r\ndeepfire@andromedae:~/src/tmp$ nix-shell --pure\r\n[nix-shell:~/src/tmp]$ emacs --no-init --batch --eval '(load-library \"intero\")' --eval '(message \"intero: %s\" (intero-installed-p))'\r\nLoading /nix/store/yl5mbp2k0gh8fh2l4z9xix4i6kfr9r7p-emacs-25.1/share/emacs/site-lisp/site-start.el (source)...\r\nLoading intero...\r\nintero: not-installed\r\n\r\n[nix-shell:~/src/tmp]$ stack --nix exec intero\r\nerror: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied\r\n\r\n[nix-shell:~/src/tmp]$ export NIX_REMOTE=daemon\r\n\r\n[nix-shell:~/src/tmp]$ stack --nix exec intero\r\nExecutable named intero not found on path: [\"/home/deepfire/.stack/global-project/.stack-work/install/x86_64-linux-nix/lts-7.9/8.0.1/bin\",\"/home/deepfire/.stack/snapshots/x86_64-linux-nix/lts-7.9/8.0.1/bin\",\"/nix/store/i7vid8fncc8k521ag0akr92mws6v0vs6-ghc-8.0.1/bin\",\"/nix/store/f1ba8h5f8zwpl0ff32f755y8bp297yq5-patchelf-0.9/bin\",\"/nix/store/9xiq017g22sp5aawphkya2wyfiwslnj9-paxctl-0.9/bin\",\"/nix/store/cymbr3a1s7d1zj4073mb85hb0vdrr4la-coreutils-8.26/bin\",\"/nix/store/r2g04csk4flx3v9kf5g0i3h6j7m5wfq1-findutils-4.6.0/bin\",\"/nix/store/4l6izrwsf5kxjacy4382mlvpqhfb5z2b-diffutils-3.5/bin\",\"/nix/store/64xlllqh7gak9kf7g608ck5axd29r98k-gnused-4.2.2/bin\",\"/nix/store/rff8mpdyx6782qr12y65vc05f7n16qhb-gnugrep-2.27/bin\",\"/nix/store/ls5w3k30k9f7vvg46wv43zhy7nvaam7y-gawk-4.1.3/bin\",\"/nix/store/lsbbm5734yyga96xq4sjkgi3gvmqhwh6-gnutar-1.29/bin\",\"/nix/store/gb1z43qn3qm8ybhw8wqbrwvvcmn160hc-gzip-1.8/bin\",\"/nix/store/2m5r1yjck44b7fccqdif89wz30rxhw0q-bzip2-1.0.6.0.1-bin/bin\",\"/nix/store/f0mycwxbzgj50p6958gd9n7mnx9cxk4i-gnumake-4.2.1/bin\",\"/nix/store/hs9zk8bc1w6hc8s8k7hyl5p0sx02l25w-bash-4.3-p46/bin\",\"/nix/store/f2bv1zcjdab3jhqa2p51vdkp6v03ia11-patch-2.7.5/bin\",\"/nix/store/0bwaf47jwaikrgpnklxa2l9p7blq1yzj-xz-5.2.2-bin/bin\"]\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/commercialhaskell/intero/issues/comments/269653455","html_url":"https://github.com/commercialhaskell/intero/issues/341#issuecomment-269653455","issue_url":"https://api.github.com/repos/commercialhaskell/intero/issues/341","id":269653455,"user":{"login":"deepfire","id":452652,"avatar_url":"https://avatars.githubusercontent.com/u/452652?v=3","gravatar_id":"","url":"https://api.github.com/users/deepfire","html_url":"https://github.com/deepfire","followers_url":"https://api.github.com/users/deepfire/followers","following_url":"https://api.github.com/users/deepfire/following{/other_user}","gists_url":"https://api.github.com/users/deepfire/gists{/gist_id}","starred_url":"https://api.github.com/users/deepfire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepfire/subscriptions","organizations_url":"https://api.github.com/users/deepfire/orgs","repos_url":"https://api.github.com/users/deepfire/repos","events_url":"https://api.github.com/users/deepfire/events{/privacy}","received_events_url":"https://api.github.com/users/deepfire/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T16:18:29Z","updated_at":"2016-12-29T16:18:29Z","body":"The sister-bug in the nixpkgs repository is: https://github.com/NixOS/nixpkgs/issues/21495"}}
{"actor":{"display_login":"deepfire"}}