{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11334","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11334/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11334/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11334/events","html_url":"https://github.com/NixOS/nixpkgs/issues/11334","id":119319895,"number":11334,"title":"Missing dependencies in Haskell environment for clash-prelude","user":{"login":"Ericson2314","id":1055245,"avatar_url":"https://avatars.githubusercontent.com/u/1055245?v=3","gravatar_id":"","url":"https://api.github.com/users/Ericson2314","html_url":"https://github.com/Ericson2314","followers_url":"https://api.github.com/users/Ericson2314/followers","following_url":"https://api.github.com/users/Ericson2314/following{/other_user}","gists_url":"https://api.github.com/users/Ericson2314/gists{/gist_id}","starred_url":"https://api.github.com/users/Ericson2314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ericson2314/subscriptions","organizations_url":"https://api.github.com/users/Ericson2314/orgs","repos_url":"https://api.github.com/users/Ericson2314/repos","events_url":"https://api.github.com/users/Ericson2314/events{/privacy}","received_events_url":"https://api.github.com/users/Ericson2314/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-28T21:51:02Z","updated_at":"2015-11-29T22:40:11Z","closed_at":"2015-11-29T15:02:22Z","body":"When trying to make a nix environment for this repo on master, I get missing dependencies.\r\n\r\n- At the moment, master points to this commit: https://github.com/clash-lang/clash-prelude/commit/48409067850b23d6f69d8261d90b11540d88d4a0\r\n\r\n- I am on nixos-unstable which is at https://github.com/NixOS/nixpkgs-channels/commit/7ae05edcdd14f6ace83ead9bf0d114e97c89a83a\r\n\r\n- `cabal2nix ./. > default.nix` is:\r\n  ```nix\r\n{ mkDerivation, array, base, data-default, doctest, ghc-prim\r\n, ghc-typelits-extra, ghc-typelits-natnormalise, Glob, integer-gmp\r\n, lens, QuickCheck, reflection, singletons, stdenv\r\n, template-haskell, th-lift\r\n}:\r\nmkDerivation {\r\n  pname = \"clash-prelude\";\r\n  version = \"0.10.3\";\r\n  src = ./.;\r\n  libraryHaskellDepends = [\r\n    array base data-default ghc-prim ghc-typelits-extra\r\n    ghc-typelits-natnormalise integer-gmp lens QuickCheck reflection\r\n    singletons template-haskell th-lift\r\n  ];\r\n  testHaskellDepends = [ base doctest Glob ];\r\n  homepage = \"http://www.clash-lang.org/\";\r\n  description = \"CAES Language for Synchronous Hardware - Prelude library\";\r\n  license = stdenv.lib.licenses.bsd2;\r\n}\r\n  ```\r\n\r\n- I run `nix-shell -E '(import <nixpkgs> {}).haskellPackages.callPackage ./. {}'` to get in the shell, but `cabal configure` complains:\r\n  ```\r\ncabal: At least the following dependencies are missing:\r\nQuickCheck >=2.7 && <2.9,\r\ndata-default >=0.5.3,\r\nghc-typelits-extra >=0.1,\r\nghc-typelits-natnormalise >=0.3,\r\nlens >=4.9,\r\nreflection >=2,\r\nsingletons >=1.0 && <3.0,\r\nth-lift >=0.5.6\r\n  ```\r\n\r\n- `ghc-pkg list` in shell:\r\n  ```\r\n/nix/store/i4rq67jd9bzbhkqzfyhfdz1pja9fapl4-ghc-7.10.2/lib/ghc-7.10.2/package.conf.d:\r\n    Cabal-1.22.4.0\r\n    array-0.5.1.0\r\n    base-4.8.1.0\r\n    bin-package-db-0.0.0.0\r\n    binary-0.7.5.0\r\n    rts-1.0\r\n    bytestring-0.10.6.0\r\n    containers-0.5.6.2\r\n    deepseq-1.4.1.1\r\n    directory-1.2.2.0\r\n    filepath-1.4.0.0\r\n    (ghc-7.10.2)\r\n    ghc-prim-0.4.0.0\r\n    haskeline-0.7.2.1\r\n    hoopl-3.10.0.2\r\n    hpc-0.6.0.2\r\n    integer-gmp-1.0.0.0\r\n    pretty-1.1.2.0\r\n    process-1.2.3.0\r\n    template-haskell-2.10.0.0\r\n    terminfo-0.4.0.1\r\n    time-1.5.0.1\r\n    transformers-0.4.2.0\r\n    unix-2.7.1.0\r\n    xhtml-3000.2.1\r\n```"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/160478527","html_url":"https://github.com/NixOS/nixpkgs/issues/11334#issuecomment-160478527","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/11334","id":160478527,"user":{"login":"Ericson2314","id":1055245,"avatar_url":"https://avatars.githubusercontent.com/u/1055245?v=3","gravatar_id":"","url":"https://api.github.com/users/Ericson2314","html_url":"https://github.com/Ericson2314","followers_url":"https://api.github.com/users/Ericson2314/followers","following_url":"https://api.github.com/users/Ericson2314/following{/other_user}","gists_url":"https://api.github.com/users/Ericson2314/gists{/gist_id}","starred_url":"https://api.github.com/users/Ericson2314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ericson2314/subscriptions","organizations_url":"https://api.github.com/users/Ericson2314/orgs","repos_url":"https://api.github.com/users/Ericson2314/repos","events_url":"https://api.github.com/users/Ericson2314/events{/privacy}","received_events_url":"https://api.github.com/users/Ericson2314/received_events","type":"User","site_admin":false},"created_at":"2015-11-29T22:40:11Z","updated_at":"2015-11-29T22:40:11Z","body":"Ah, I forgot had forgotten the `.env` in my `nix-shell` invocation. Out of curiosity, know why it makes such a difference? I thought the differences between the shell environment and normal derivation were minimal/uninteresting."}}