Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 652 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 652 Bytes

nix-npm-overlay

This repository is a Nix overlay for NPM, PNPM, and Yarn. It is used in Nixpacks.

Nix derivations for these package managers are automatically generated for the latest versions.

Usage

{ pkgs ? import <nixpkgs> {} }:

let
  npmOverlay = import (builtins.fetchTarball "https://github.com/railwayapp/nix-npm-overlay/archive/main.tar.gz");
  pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz") {
    overlays = [ npmOverlay ];
  };
in
pkgs.buildEnv {
  name = "npm-overlay-env";
  paths = with pkgs; [
    nodejs_20
    pnpm-9_x
  ];
}