Skip to content

Commit

Permalink
nixpkgs_flake_package() supplies `--experimental-features 'nix-comm…
Browse files Browse the repository at this point in the history
…and flakes'` in case someone's local `nix.conf` hasn't enabled them.
  • Loading branch information
rickvanprim committed Dec 11, 2023
1 parent 98cab56 commit 3962b20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/nixpkgs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ def _nixpkgs_flake_package_impl(repository_ctx):
extra_msg = "See: https://nixos.org/nix/",
)

_nixpkgs_build_and_symlink(repository_ctx, [nix_path, "build"], expr_args, build_file_content)
_nixpkgs_build_and_symlink(repository_ctx, [nix_path, "--experimental-features", "nix-command flakes", "build"], expr_args, build_file_content)

_nixpkgs_flake_package = repository_rule(
implementation = _nixpkgs_flake_package_impl,
Expand Down

0 comments on commit 3962b20

Please sign in to comment.