{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/7005","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/7005/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/7005/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/7005/events","html_url":"https://github.com/NixOS/nixpkgs/issues/7005","id":64572966,"number":7005,"title":"Haskell NG GHCjs attribute 'version' missing","user":{"login":"tel","id":1141,"avatar_url":"https://avatars.githubusercontent.com/u/1141?v=3","gravatar_id":"","url":"https://api.github.com/users/tel","html_url":"https://github.com/tel","followers_url":"https://api.github.com/users/tel/followers","following_url":"https://api.github.com/users/tel/following{/other_user}","gists_url":"https://api.github.com/users/tel/gists{/gist_id}","starred_url":"https://api.github.com/users/tel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tel/subscriptions","organizations_url":"https://api.github.com/users/tel/orgs","repos_url":"https://api.github.com/users/tel/repos","events_url":"https://api.github.com/users/tel/events{/privacy}","received_events_url":"https://api.github.com/users/tel/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":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-26T16:27:05Z","updated_at":"2015-03-27T19:50:21Z","closed_at":null,"body":"Consider the following `shell.nix`\r\n\r\n```nix\r\nlet\r\n  pkgs = import <nixpkgs> {};\r\n  hEnv = pkgs.haskell-ng.packages.ghc7101.ghcWithPackages (p: with p; [\r\n    async attoparsec case-insensitive fgl haskell-src\r\n  ]);\r\nin\r\n  pkgs.myEnvFun {\r\n    name = \"my-haskell-project\";\r\n    buildInputs = with pkgs; [\r\n        hEnv\r\n      ];\r\n    }\r\n```\r\n\r\nIt appears to work fine if I call `nix-shell` in a directory containing this file. However, if we update the third line to read\r\n\r\n```\r\n  hEnv = pkgs.haskell-ng.packages.ghcjs.ghcWithPackages (p: with p; [\r\n```\r\n\r\nand thus to target GHCjs then `nix-shell --show-trace` fails with the following message\r\n\r\n```\r\n$ nix-shell --show-trace                                                                                               [12:26:32]\r\nerror: while evaluating the attribute ‘nativeBuildInputs’ of the derivation ‘env-my-haskell-project’ at \"/Users/tel/src/nixpkgs/pkgs/misc/my-env/default.nix\":71:3:\r\nwhile evaluating ‘ghcWithPackages’ at \"/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/default.nix\":57:27, called from \"/Users/tel/tmp/zippppc/shell.nix\":3:10:\r\nwhile evaluating ‘callPackage’ at \"/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/default.nix\":50:26, called from \"/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/default.nix\":57:33:\r\nwhile evaluating ‘callPackageWithScope’ at \"/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/default.nix\":45:42, called from \"/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/default.nix\":50:32:\r\nwhile evaluating ‘callPackageWith’ at \"/Users/tel/src/nixpkgs/lib/customisation.nix\":104:35, called from \"/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/default.nix\":45:49:\r\nwhile evaluating ‘makeOverridable’ at \"/Users/tel/src/nixpkgs/lib/customisation.nix\":56:24, called from \"/Users/tel/src/nixpkgs/lib/customisation.nix\":106:5:\r\nwhile evaluating anonymous function at \"/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/with-packages-wrapper.nix\":1:1, called from \"/Users/tel/src/nixpkgs/lib/customisation.nix\":58:12:\r\nwhile evaluating ‘versionOlder’ at \"/Users/tel/src/nixpkgs/lib/strings.nix\":184:22, called from \"/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/with-packages-wrapper.nix\":4:8:\r\nattribute ‘version’ missing, at \"/Users/tel/src/nixpkgs/pkgs/development/haskell-modules/with-packages-wrapper.nix\":4:39\r\n```"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/87070195","html_url":"https://github.com/NixOS/nixpkgs/issues/7005#issuecomment-87070195","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/7005","id":87070195,"user":{"login":"cstrahan","id":143982,"avatar_url":"https://avatars.githubusercontent.com/u/143982?v=3","gravatar_id":"","url":"https://api.github.com/users/cstrahan","html_url":"https://github.com/cstrahan","followers_url":"https://api.github.com/users/cstrahan/followers","following_url":"https://api.github.com/users/cstrahan/following{/other_user}","gists_url":"https://api.github.com/users/cstrahan/gists{/gist_id}","starred_url":"https://api.github.com/users/cstrahan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cstrahan/subscriptions","organizations_url":"https://api.github.com/users/cstrahan/orgs","repos_url":"https://api.github.com/users/cstrahan/repos","events_url":"https://api.github.com/users/cstrahan/events{/privacy}","received_events_url":"https://api.github.com/users/cstrahan/received_events","type":"User","site_admin":false},"created_at":"2015-03-27T19:50:21Z","updated_at":"2015-03-27T19:50:21Z","body":"@luite recently pushed a bunch of commits to get GHCJS working with GHC 7.10 RC3 (thanks Luite!), and I'm currently running a build to test it out. Shouldn't be much longer before we have GHCJS set up properly :)."}}