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

fix: make sure corepack uses same node version #150

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

sectore
Copy link
Contributor

@sectore sectore commented Aug 2, 2024

No description provided.

@tim-smart
Copy link
Owner

You can replace the flake with this:

{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
  };
  outputs = {nixpkgs, ...}: let
    forAllSystems = function:
      nixpkgs.lib.genAttrs nixpkgs.lib.systems.flakeExposed
      (system: function nixpkgs.legacyPackages.${system});
  in {
    formatter = forAllSystems (pkgs: pkgs.alejandra);
    devShells = forAllSystems (pkgs: {
      default = pkgs.mkShell {
        packages = with pkgs; [
          corepack
          nodejs_22
        ];
      };
    });
  };
}

@tim-smart tim-smart merged commit 5559b6b into tim-smart:main Aug 2, 2024
3 checks passed
@sectore sectore deleted the fix/flake-node branch August 2, 2024 11:16
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