Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/serokell/nix-npm-buildpackage

Build nix packages that use npm/yarn
https://github.com/serokell/nix-npm-buildpackage

nix npm yarn

Last synced: 3 months ago
JSON representation

Build nix packages that use npm/yarn

Awesome Lists containing this project

README

        

## Description

![CI](https://github.com/serokell/nix-npm-buildpackage/actions/workflows/test.yml/badge.svg?branch=master)

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

```nix
{ pkgs ? import {} }:
let
bp = pkgs.callPackage .../nix-npm-buildpackage {};
in ...
```

```nix
bp.buildNpmPackage { src = ./.; npmBuild = "npm run build"; }
```

```nix
bp.buildYarnPackage { src = ./.; }
```

## About Serokell

`nix-npm-buildpackage` is maintained and funded with :heart: by
[Serokell](https://serokell.io/). The names and logo for Serokell are trademark
of Serokell OÜ.

We love open source software! See [our other
projects](https://serokell.io/community?utm_source=github) or [hire
us](https://serokell.io/hire-us?utm_source=github) to design, develop and grow
your idea!