{"action":"closed","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10864","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10864/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10864/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10864/events","html_url":"https://github.com/NixOS/nixpkgs/issues/10864","id":115671147,"number":10864,"title":"Rustc not supported on OS X?","user":{"login":"andrewrynhard","id":3383143,"avatar_url":"https://avatars.githubusercontent.com/u/3383143?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewrynhard","html_url":"https://github.com/andrewrynhard","followers_url":"https://api.github.com/users/andrewrynhard/followers","following_url":"https://api.github.com/users/andrewrynhard/following{/other_user}","gists_url":"https://api.github.com/users/andrewrynhard/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewrynhard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewrynhard/subscriptions","organizations_url":"https://api.github.com/users/andrewrynhard/orgs","repos_url":"https://api.github.com/users/andrewrynhard/repos","events_url":"https://api.github.com/users/andrewrynhard/events{/privacy}","received_events_url":"https://api.github.com/users/andrewrynhard/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/0.kind:%20bug","name":"0.kind: bug","color":"84b6eb"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20darwin","name":"6.topic: darwin","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-07T14:55:16Z","updated_at":"2016-04-22T10:29:14Z","closed_at":"2016-04-22T10:29:14Z","body":"I have the following `default.nix`\r\n````\r\nwith import <nixpkgs> {}; {\r\n  rustNightlyEnv = stdenv.mkDerivation {\r\n\t\tname = \"rust-nightly-env\";\r\n\r\n    shellHook = ''\r\n      export PS1=\"rust-nightly-env > \"\r\n    '';\r\n\r\n\t\tbuildInputs = [\r\n      rustc\r\n      cargo\r\n    ];\r\n  };\r\n}\r\n````\r\nand when invoking `nix-shell .` I get\r\n````\r\nnix-shell .\r\nerror: Package ‘rustc-1.3.0’ in ‘/nix/store/vgzx25pwvfagwzadszixah6a7nwy5p0w-nixpkgs-16.03pre71191.a946805/nixpkgs/pkgs/development/compilers/rustc/generic.nix:62’ is not supported on ‘x86_64-darwin’, refusing to evaluate.\r\nFor `nixos-rebuild` you can set\r\n  { nixpkgs.config.allowBroken = true; }\r\nin configuration.nix to override this.\r\nFor `nix-env` you can add\r\n  { allowBroken = true; }\r\nto ~/.nixpkgs/config.nix.\r\n\r\n(use ‘--show-trace’ to show detailed location information)\r\n````\r\n\r\nIs this a bug? How can I get rustc to work on OS X?"}}