{"action":"closed","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6081","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6081/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6081/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6081/events","html_url":"https://github.com/NixOS/nixpkgs/issues/6081","id":56138675,"number":6081,"title":"cabal-install 1.18.0.3 installation fails because of missing `network-uri` build dependency","user":{"login":"geraldus","id":744471,"avatar_url":"https://avatars.githubusercontent.com/u/744471?v=3","gravatar_id":"","url":"https://api.github.com/users/geraldus","html_url":"https://github.com/geraldus","followers_url":"https://api.github.com/users/geraldus/followers","following_url":"https://api.github.com/users/geraldus/following{/other_user}","gists_url":"https://api.github.com/users/geraldus/gists{/gist_id}","starred_url":"https://api.github.com/users/geraldus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geraldus/subscriptions","organizations_url":"https://api.github.com/users/geraldus/orgs","repos_url":"https://api.github.com/users/geraldus/repos","events_url":"https://api.github.com/users/geraldus/events{/privacy}","received_events_url":"https://api.github.com/users/geraldus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/haskell","name":"haskell","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-31T20:44:03Z","updated_at":"2015-02-13T14:35:03Z","closed_at":"2015-02-13T14:35:03Z","body":"I'm on NixOS 14.12\r\n```bash\r\nBuilding cabal-install-1.18.0.3...\r\nPreprocessing executable 'cabal' for cabal-install-1.18.0.3...\r\n\r\nDistribution/Client/Types.hs:31:8:\r\n    Could not find module ‘Network.URI’\r\n    It is a member of the hidden package ‘network-uri-2.6.0.1’.\r\n    Perhaps you need to add ‘network-uri’ to the build-depends in your .cabal file.\r\n    Use -v to see a list of the files searched for.\r\n```\r\nI suppose this could be easily fixed [[1]](https://github.com/NixOS/nixpkgs/blob/release-14.12/pkgs/tools/package-management/cabal-install/1.18.0.3.nix#L15):\r\n```\r\nbuildDepends = [\r\n  Cabal filepath HTTP mtl network network-uri random stm time zlib\r\n];\r\n```\r\nI use version 1.18, because `ghc-mod` does not work with cabal 1.22 and GHC 7.8.3. I've noticed that there is also cabal-install ver.1.20, I'll try it now _(hope ghc-mod will work!)_."}}