{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nix/issues/1844","repository_url":"https://api.github.com/repos/NixOS/nix","labels_url":"https://api.github.com/repos/NixOS/nix/issues/1844/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nix/issues/1844/comments","events_url":"https://api.github.com/repos/NixOS/nix/issues/1844/events","html_url":"https://github.com/NixOS/nix/pull/1844","id":294589050,"number":1844,"title":"Add user-defined extra builtins.","user":{"login":"shlevy","id":487050,"avatar_url":"https://avatars3.githubusercontent.com/u/487050?v=4","gravatar_id":"","url":"https://api.github.com/users/shlevy","html_url":"https://github.com/shlevy","followers_url":"https://api.github.com/users/shlevy/followers","following_url":"https://api.github.com/users/shlevy/following{/other_user}","gists_url":"https://api.github.com/users/shlevy/gists{/gist_id}","starred_url":"https://api.github.com/users/shlevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlevy/subscriptions","organizations_url":"https://api.github.com/users/shlevy/orgs","repos_url":"https://api.github.com/users/shlevy/repos","events_url":"https://api.github.com/users/shlevy/events{/privacy}","received_events_url":"https://api.github.com/users/shlevy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-02-06T00:19:39Z","updated_at":"2018-02-13T16:46:02Z","closed_at":"2018-02-13T16:23:08Z","author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/NixOS/nix/pulls/1844","html_url":"https://github.com/NixOS/nix/pull/1844","diff_url":"https://github.com/NixOS/nix/pull/1844.diff","patch_url":"https://github.com/NixOS/nix/pull/1844.patch"},"body":"To enable quick iteration on builtin functions, or adding builtins\r\nthat aren't suitable for inclusion upstream (due to limited audience\r\nor proprietary code), without the security concerns entailed by\r\nenabling 'allow-unsafe-native-code-during-evaluation', users can now\r\ndefine a function in a nix expression at the path specified by the\r\n'extra-builtins-file' nix setting (default\r\n$NIX_CONF_DIR/extra-builtins.nix). That function takes a set\r\ncontaining at least the 'exec' and 'importNative' attributes,\r\ncorresponding to the relevant builtins, even when\r\n'allow-unsafe-native-code-during-evaluation' is false, and the result\r\nis available as 'builtins.extraBuiltins'.\r\n\r\nSee tests/extra-builtins/extra-builtins.nix for an example, and the\r\nnix manual for full details."},"comment":{"url":"https://api.github.com/repos/NixOS/nix/issues/comments/365327060","html_url":"https://github.com/NixOS/nix/pull/1844#issuecomment-365327060","issue_url":"https://api.github.com/repos/NixOS/nix/issues/1844","id":365327060,"user":{"login":"shlevy","id":487050,"avatar_url":"https://avatars3.githubusercontent.com/u/487050?v=4","gravatar_id":"","url":"https://api.github.com/users/shlevy","html_url":"https://github.com/shlevy","followers_url":"https://api.github.com/users/shlevy/followers","following_url":"https://api.github.com/users/shlevy/following{/other_user}","gists_url":"https://api.github.com/users/shlevy/gists{/gist_id}","starred_url":"https://api.github.com/users/shlevy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shlevy/subscriptions","organizations_url":"https://api.github.com/users/shlevy/orgs","repos_url":"https://api.github.com/users/shlevy/repos","events_url":"https://api.github.com/users/shlevy/events{/privacy}","received_events_url":"https://api.github.com/users/shlevy/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T16:46:02Z","updated_at":"2018-02-13T16:46:02Z","author_association":"MEMBER","body":"Oops, sorry, thanks!"}}
{"actor":{"display_login":"shlevy"}}