Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/serokell/nix-npm-buildpackage
- Owner: serokell
- License: gpl-3.0
- Created: 2018-10-12T13:55:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-09-30T23:45:26.000Z (about 1 year ago)
- Last Synced: 2024-05-31T08:32:02.147Z (5 months ago)
- Topics: nix, npm, yarn
- Language: Nix
- Homepage:
- Size: 810 KB
- Stars: 97
- Watchers: 23
- Forks: 32
- Open Issues: 28
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!