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

Split utility functions out from default.nix #38

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

madeline-os
Copy link
Contributor

nix-thunk has two consumers: those who want to build the tool as such,
and those who want to use its nix functions to manipulate thunks. The
latter have been split out into lib.nix.

See #16

@madeline-os madeline-os force-pushed the mh-split-lib branch 2 times, most recently from c83dc7a to d160c3f Compare August 22, 2022 02:23
nix-thunk has two consumers: those who want to build the tool as such,
and those who want to use its nix functions to manipulate thunks. The
utility nix functions have been split out into `lib.nix`.
@Ericson2314
Copy link
Member

Should we move the deprecated functions too? I think so, though it is nice for lib.nix to "start nice" from the get-go.

inherit (import ./dep/gitignore.nix { inherit (pkgs) lib; }) gitignoreSource;
lib = pkgs.callPackage ./lib.nix {
inherit gitignoreSource;
inherit (pkgs) fetchgitPrivate;
Copy link
Member

Choose a reason for hiding this comment

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

Is this needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yea, idk why. i know fetchgitPrivate has since been removed, but it should still show up w/ callPackage on our checkout. I wanted to look further into this.

lib.nix Outdated Show resolved Hide resolved
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