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

nix: make composable #45

Merged
merged 1 commit into from
Dec 27, 2019
Merged

nix: make composable #45

merged 1 commit into from
Dec 27, 2019

Conversation

zimbatm
Copy link
Contributor

@zimbatm zimbatm commented Dec 24, 2019

allow users to import the repo and then inject their own version of
nixpkgs.

For example with niv:

$ niv add juliosueiras/terraform-lsp

Then in the target project's overlay.nix:

self: super: {
  sources = import ./nix/sources.nix;
  terraform-lsp = self.callPackage sources.terraform-lsp {};
}

allow users to import the repo and then inject their own version of
nixpkgs.

For example with [niv][niv]:

    $ niv add juliosueiras/terraform-lsp

Then in the target project's overlay.nix:

    self: super: {
      sources = import ./nix/sources.nix;
      terraform-lsp = self.callPackage sources.terraform-lsp {};
    }

[niv]: https://github.com/nmattia/niv
@juliosueiras juliosueiras merged commit 66fb732 into juliosueiras:master Dec 27, 2019
@zimbatm zimbatm deleted the nix-composable branch December 27, 2019 11:41
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