Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable implicit nixpkgs config file #83

Merged
merged 2 commits into from
Jun 3, 2019
Merged

Disable implicit nixpkgs config file #83

merged 2 commits into from
Jun 3, 2019

Conversation

guibou
Copy link
Contributor

@guibou guibou commented Jun 2, 2019

This is a breaking change

By default, nixpkgs will read a global configuration file, by default
~/.config/nixpkgs/config.nix. This leads to reproducibility issues
if the configuration is different between users of the repository.

Users of nixpkgs_packages must set the nix_file_deps argument
with all the files used by the nix process.

We were previously accepting a global nixpkgs configuration file as
implicit dependency, but this commit now disallow that. User must
explicitly set its own nixpkgs configuration, such as:

import nixpkgs_path { config = {}; };

*This is a breaking change*

By default, nixpkgs will read a global configuration file, by default
`~/.config/nixpkgs/config.nix`. This leads to reproducibility issues
if the configuration is different between users of the repository.

Users  of `nixpkgs_packages` must set the `nix_file_deps` argument
with all the files used by the nix process.

We were previously accepting a global nixpkgs configuration file as
implicit dependency, but this commit now disallow that. User must
explicitly set its own nixpkgs configuration, such as:

```
import nixpkgs_path { config = {}; };
```
@guibou guibou requested review from mboes, aherrmann and Profpatsch June 2, 2019 13:56
Copy link
Member

@aherrmann aherrmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should also set overlays = [];.

@guibou
Copy link
Contributor Author

guibou commented Jun 3, 2019

@aherrmann Done, thank you.

@mboes mboes merged commit 61f838a into master Jun 3, 2019
@mboes mboes deleted the no_nixpkgs_config branch June 3, 2019 08:36
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.

3 participants