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

Namespace the Nix-related things #151

Merged
merged 1 commit into from
Oct 13, 2023
Merged

Conversation

thufschmitt
Copy link
Member

@thufschmitt thufschmitt commented Sep 29, 2023

Organist isn't just a Nix framework, so we want to make sure that it
is possible to add stuff that's not strictly Nix-related to it, and have
it feel first-class.
So move most of the Nix-related stuff in its own namespace to clear up
some real estate for the rest.

Yet another step toward #58

buildInputs.gcc = organist.lib.import_nix "nixpkgs#gcc",
buildInputs.coreutils = organist.lib.import_nix "nixpkgs#coreutils",
buildInputs.bash = organist.lib.import_nix "nixpkgs#bash",
buildInputs.gcc = organist.nix.builtins.import_nix "nixpkgs#gcc",
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is a lot of boilerplate (it was before too, I must say). Note how the list says “Nix” 3 times! Is this something that we expect to be often part of an Organist project description?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's indeed quite wordy for something that's bound to be rather common. Let me re-export that from the toplevel of organist, it should already make it more tractable

Copy link
Member Author

Choose a reason for hiding this comment

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

Improved in 7355cf0

@thufschmitt thufschmitt force-pushed the move-nix-one-layer-down branch 2 times, most recently from 4e2a16c to b245eb9 Compare October 13, 2023 07:20
@thufschmitt thufschmitt marked this pull request as ready for review October 13, 2023 07:24
@thufschmitt thufschmitt enabled auto-merge October 13, 2023 07:24
Organist isn't _just_ a Nix framework, so we want to make sure that it
is possible to add stuff that's not strictly Nix-related to it, and have
it feel first-class.
So move most of the Nix-related stuff in its own namespace to clear up
some real estate for the rest.
@thufschmitt thufschmitt force-pushed the move-nix-one-layer-down branch from b245eb9 to f70e53b Compare October 13, 2023 08:44
@thufschmitt thufschmitt added this pull request to the merge queue Oct 13, 2023
Merged via the queue into main with commit a417d1c Oct 13, 2023
@thufschmitt thufschmitt deleted the move-nix-one-layer-down branch October 13, 2023 09:07
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.

2 participants