Skip to content

Overlay to fix Nix versions of NPM, PNPM, and Yarn

Notifications You must be signed in to change notification settings

railwayapp/nix-npm-overlay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  ];
}

About

Overlay to fix Nix versions of NPM, PNPM, and Yarn

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 56.3%
  • Nix 42.6%
  • Shell 1.1%