Giter Club home page Giter Club logo

pnpm2nix-nzbr's Introduction

pnpm2nix

Provides a mkPnpmPackage function that can be used to build a pnpm package with nix.

The function can be accessed either by importing this repo as a flake input or though pkgs.callPackage /path/to/this/repo/derivation.nix {}.

In addition to all arguments accepted by stdenv.mkDerivation, the mkPnpmPackage function accepts the following arguments:

argument description default
src The path to the package sources (required)
packageJSON Override the path to package.json ${src}/package.json
pnpmLockYaml Override the path to pnpm-lock.yaml ${src}/pnpm-lock.yaml
pname Override the package name read from package.json
version Override the package version read from package.json
name Override the combined package name ${pname}-${version}
nodejs Override the nodejs package that is used pkgs.nodejs
pnpm Override the pnpm package that is used pkgs.nodejs.pkgs.pnpm
registry The registry where the dependencies are downloaded from https://registry.npmjs.org
script The npm script that is executed build
distDir The directory that should be copied to the output dist
installInPlace Run pnpm install in the source directory instead of a separate derivation false
copyPnpmStore Copy the pnpm store into the build directory instead of linking it true
copyNodeModules Copy the node_modules into the build directory instead of linking it false
extraNodeModuleSources Additional files that should be available during pnpm install []
extraBuildInputs Additional entries for nativeBuildInputs []

pnpm2nix-nzbr's People

Contributors

nzbr avatar renovate[bot] avatar steinuil avatar gtrunsec avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.