{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/21495","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/21495/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/21495/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/21495/events","html_url":"https://github.com/NixOS/nixpkgs/issues/21495","id":197996485,"number":21495,"title":"`intero` is broken:  `stack` cannot run `intero` ","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":[{"id":99513706,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20haskell","name":"6.topic: haskell","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-12-29T11:57:11Z","updated_at":"2016-12-30T20:48:29Z","closed_at":null,"body":"## Issue description\r\nThe `emacs` / `intero` integration is broken. \r\n\r\n### Steps to reproduce\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 exec intero\r\nerror: Nix database directory ‘/nix/var/nix/db’ is not writable: Permission denied\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\r\n## Technical details\r\n\r\n* System: 17.03.git.09af945 (Gorilla) (unrelated changes atop `de99dc50495e0fb75a039586b882d1cd1b51eb0b`)\r\n* Nix version: nix-env (Nix) 1.11.4\r\n* Nixpkgs version: \"17.03.git.09af945e3fM\" (unrelated changes atop `de99dc50495e0fb75a039586b882d1cd1b51eb0b`)"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/269820220","html_url":"https://github.com/NixOS/nixpkgs/issues/21495#issuecomment-269820220","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/21495","id":269820220,"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-30T20:48:29Z","updated_at":"2016-12-30T20:48:29Z","body":"@bennofs, with nixpkgs commit `96e1220813888f8870de6c3f323db4435f38e849` (`2016-12-02`):\r\n```\r\ndeepfire@andromedae:~/src/tmp$ cat shell.nix\r\nwith import <nixpkgs> {};\r\n\r\nlet\r\n  interoEmacs = (emacsPackagesNgGen emacs).emacsWithPackages (epkgs: [\r\n    epkgs.melpaPackages.intero\r\n  ]);\r\nin stdenv.mkDerivation {\r\n  name = \"shell-env\";\r\n  src = null;\r\n  buildInputs = [ interoEmacs stack nix ];\r\n\r\n  shellHook = ''\r\n    export NIX_REMOTE=daemon\r\n    export HOME=\"${builtins.toString ./env-home}\"\r\n    mkdir -p $HOME\r\n  '';\r\n}\r\n\r\ndeepfire@andromedae:~/src/tmp$ stack --version | grep -v -\r\nVersion 1.3.0 x86_64\r\nCompiled with:\r\n\r\ndeepfire@andromedae:~/src/tmp$ 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\ndeepfire@andromedae:~/src/tmp$ nix-shell --pure\r\n\r\n[nix-shell:/home/deepfire/src/tmp]$ ../core/nix/intero-installed-p\r\nLoading /nix/store/ripfwjzy29h45nl8y8bbdlf1aj0kvyxy-emacs-25.1/share/emacs/site-lisp/site-start.el (source)...\r\nLoading intero...\r\nintero: not-installed\r\n\r\n[nix-shell:/home/deepfire/src/tmp]$ cat ../core/nix/intero-installed-p\r\n#!/bin/sh\r\n\r\nemacs --batch --no-init \\\r\n--eval '(load-library \"intero\")' \\\r\n--eval '(message \"intero: %s\" (intero-installed-p))'\r\n```"}}
{"actor":{"display_login":"deepfire"}}