Skip to content
build nix packages that use npm/yarn packages
Nix JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.nix
.travis.yml
LICENSE
README.md
default.nix
mknpmcache.js
mkyarncache.js
mkyarnjson.js

README.md

Description

nix-npm-buildpackage - build nix packages that use npm/yarn packages

You can use buildNpmPackage/buildYarnPackage to:

  • use a packages-lock.json/yarn.lock file to:
    • download the dependencies to the nix store
    • build an offline npm/yarn cache that uses those
  • build a nix package from the npm/yarn package

Examples

{ pkgs ? import <nixpkgs> {} }:
let
  bp = pkgs.callPackage .../nix-npm-buildpackage {};
in ...
bp.buildNpmPackage { src = ./.; }
bp.buildYarnPackage { src = ./.; }

About Serokell

nix-npm-buildpackage is maintained and funded with ❤️ by Serokell. The names and logo for Serokell are trademark of Serokell OÜ.

We love open source software! See our other projects or hire us to design, develop and grow your idea!

You can’t perform that action at this time.