Skip to content

Only provide builtins is the corresponding experimental feature is enabled - #6314

Merged
edolstra merged 3 commits into
NixOS:masterfrom
edolstra:experimental-primop
Mar 25, 2022
Merged

edolstra merged 3 commits into
NixOS:masterfrom
edolstra:experimental-primop

Conversation

@edolstra

Copy link
Copy Markdown
Member

This allows writing fallback code like

if builtins ? fetchClosure then
  builtins.fetchClose { ... }
else
  builtins.storePath ...

…erimental feature is enabled

This allows writing fallback code like

  if builtins ? fetchClosure then
    builtins.fetchClose { ... }
  else
    builtins.storePath ...
@edolstra
edolstra merged commit 1844172 into NixOS:master Mar 25, 2022
@edolstra
edolstra deleted the experimental-primop branch March 25, 2022 15:16
@Ma27

Ma27 commented Mar 26, 2022

Copy link
Copy Markdown
Member

@edolstra @Ericson2314 didn't we have this discussion about experimental settings vs. builtins in #5301 (comment) already? I still think that this is rather confusing to someone who's e.g. new to Nix.

@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/tweag-nix-dev-update-27/18433/1

@nixos-discourse

Copy link
Copy Markdown

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nix-2-8-0-released/18714/14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants