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: add overlay for convenient package usage #7078

Merged
merged 1 commit into from May 19, 2023

Conversation

happysalada
Copy link
Contributor

This just adds an overlay to the nix flake to make it convenient to use helix.

It's not a big change. I'm adding it since a feature I really want to try was merged yesterday (multiple lsps).

@yusdacra @archseer when you have a moment.

closes #7042

Copy link
Contributor

@yusdacra yusdacra left a comment

Choose a reason for hiding this comment

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

LGTM

@archseer archseer merged commit ff442ee into helix-editor:master May 19, 2023
6 checks passed
aotarola pushed a commit to aotarola/helix that referenced this pull request May 28, 2023
aotarola pushed a commit to aotarola/helix that referenced this pull request May 28, 2023
Triton171 pushed a commit to Triton171/helix that referenced this pull request Jun 18, 2023
wes-adams pushed a commit to wes-adams/helix that referenced this pull request Jul 4, 2023
@SmolPatches
Copy link

I don't know if this is the right place to put this but,
What would a sample helix overlay look like using the easyOverlay?

@happysalada happysalada deleted the nix_add_overlay branch July 23, 2023 02:10
@happysalada
Copy link
Contributor Author

if you are using the helix flake, in your configuration, you can add

      nixpkgs = {
        overlays = [
          helix.overlays.default
        ];
      };

(this nixpkgs option is available for both nixos and nix-darwin).

(helix comes from your flake inputs

    helix.url = "github:helix-editor/helix";

That would automatically give you the latest master as your pkgs.helix
hope this helps!

@SmolPatches
Copy link

This helps but what I meant by my question was, What attribute and sets from Helix package would this overlay allow someone to override within an overlay?

@happysalada
Copy link
Contributor Author

This overlay was made to use the helix version on master without having to pass the flake attribute everywhere.

If you want to override attributes, you most likely wont need this overlay. You have to look at the expression in nixpkgs and see which attributes you can override from there.

Im not sure what you want to override in particular, but you might be better off using the flake in the repo if you need a particular build.

@SmolPatches
Copy link

This overlay was made to use the helix version on master without having to pass the flake attribute everywhere.

If you want to override attributes, you most likely wont need this overlay. You have to look at the expression in nixpkgs and see which attributes you can override from there.

Im not sure what you want to override in particular, but you might be better off using the flake in the repo if you need a particular build.

I was planning on overriding in order to add a language setup for several languages configurations into the package and themes similar to the home-manager option. But I'll take a look at the nixpkgs defintion and see what can be done.

@happysalada
Copy link
Contributor Author

You dont need to override for that. You can define your own language.toml file and it will be merged with the default one.
There is an issue where people talk about tailwindcss if you want a reference.

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.

[nix]: add an overlay
5 participants