Skip to content

Commit

Permalink
Merge pull request #465 from ConsumingChaos/flake_experimental_features
Browse files Browse the repository at this point in the history
`nixpkgs_flake_package()` supplies `--experimental-features 'nix-command flakes'` in case someone's local `nix.conf` hasn't enabled them.
  • Loading branch information
layus authored Dec 14, 2023
2 parents 1ad0bd9 + 7a832ba commit 244ae50
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, "--extra-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 244ae50

Please sign in to comment.