Skip to content

feat: add Nix flake for package distribution#27

Closed
PJalv wants to merge 3 commits intotheDakshJaitly:mainfrom
PJalv:main
Closed

feat: add Nix flake for package distribution#27
PJalv wants to merge 3 commits intotheDakshJaitly:mainfrom
PJalv:main

Conversation

@PJalv
Copy link
Copy Markdown
Contributor

@PJalv PJalv commented Apr 12, 2026

Summary

  • Adds Nix flake for installing mex without requiring npx
  • Enables direct integration into NixOS configurations

Features

  • buildNpmPackage derivation for the CLI
  • NixOS module for easy system integration (programs.mex.enable = true)
  • Dev shell with Node.js 22
  • Overlay for use in other flakes

Usage

NixOS Configuration

{
  inputs.mex.url = "github:PJalv/mex";
  
  outputs = { nixpkgs, mex, ... }: {
    nixosConfigurations.your-system = nixpkgs.lib.nixosSystem {
      modules = [
        mex.nixosModules.default
        { programs.mex.enable = true; }
      ];
    };
  };
}

Ad-hoc Usage

nix run github:PJalv/mex

Dev Shell

nix develop github:PJalv/mex

Enables installation via NixOS configuration without requiring npx.
Includes:
- buildNpmPackage derivation for the CLI
- NixOS module for easy system integration
- Dev shell with Node.js 22
- Overlay for use in other flakes
@PJalv
Copy link
Copy Markdown
Contributor Author

PJalv commented Apr 12, 2026

Closing - created with wrong account

@PJalv PJalv closed this Apr 12, 2026
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