{"id":13440880,"url":"https://github.com/nzbr/pnpm2nix-nzbr","last_synced_at":"2025-04-06T22:12:17.048Z","repository":{"id":136879298,"uuid":"593121264","full_name":"nzbr/pnpm2nix-nzbr","owner":"nzbr","description":"Build packages using pnpm with nix","archived":false,"fork":false,"pushed_at":"2025-03-29T05:54:01.000Z","size":161,"stargazers_count":66,"open_issues_count":15,"forks_count":27,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T06:28:35.171Z","etag":null,"topics":["javascript","nix","nixos","node","nodejs","pnpm"],"latest_commit_sha":null,"homepage":"","language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nzbr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-25T09:38:10.000Z","updated_at":"2025-02-27T17:32:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a56257b-3992-4518-b4ae-7e762ebf632a","html_url":"https://github.com/nzbr/pnpm2nix-nzbr","commit_stats":{"total_commits":43,"total_committers":5,"mean_commits":8.6,"dds":0.4651162790697675,"last_synced_commit":"0366b7344171accc2522525710e52a8abbf03579"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzbr%2Fpnpm2nix-nzbr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzbr%2Fpnpm2nix-nzbr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzbr%2Fpnpm2nix-nzbr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nzbr%2Fpnpm2nix-nzbr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nzbr","download_url":"https://codeload.github.com/nzbr/pnpm2nix-nzbr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247557770,"owners_count":20958047,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript","nix","nixos","node","nodejs","pnpm"],"created_at":"2024-07-31T03:01:27.397Z","updated_at":"2025-04-06T22:12:17.014Z","avatar_url":"https://github.com/nzbr.png","language":"Nix","funding_links":[],"categories":["HarmonyOS"],"sub_categories":["Windows Manager"],"readme":"# pnpm2nix\n\nProvides a `mkPnpmPackage` function that can be used to build a pnpm package with nix.\n\nThe function can be accessed either by importing this repo as a flake input or though `pkgs.callPackage /path/to/this/repo/derivation.nix {}`.\n\nIn addition to all arguments accepted by `stdenv.mkDerivation`, the `mkPnpmPackage` function accepts the following arguments:\n\n| argument                 | description                                                                 | default                      |\n| ------------------------ | --------------------------------------------------------------------------- | ---------------------------- |\n| `src`                    | The path to the package sources (required)                                  |                              |\n| `packageJSON`            | Override the path to `package.json`                                         | `${src}/package.json`        |\n| `pnpmLockYaml`           | Override the path to `pnpm-lock.yaml`                                       | `${src}/pnpm-lock.yaml`      |\n| `pname`                  | Override the package name                                                   | read from `package.json`     |\n| `version`                | Override the package version                                                | read from `package.json`     |\n| `name`                   | Override the combined package name                                          | `${pname}-${version}`        |\n| `nodejs`                 | Override the nodejs package that is used                                    | `pkgs.nodejs`                |\n| `pnpm`                   | Override the pnpm package that is used                                      | `pkgs.nodejs.pkgs.pnpm`      |\n| `registry`               | The registry where the dependencies are downloaded from                     | `https://registry.npmjs.org` |\n| `script`                 | The npm script that is executed                                             | `build`                      |\n| `distDir`                | The directory that should be copied to the output                           | `dist`                       |\n| `installInPlace`         | Run `pnpm install` in the source directory instead of a separate derivation | `false`                      |\n| `installEnv`             | Environment variables that should be present during `pnpm install`          | `{}`                         |\n| `noDevDependencies`      | Only download and install `dependencies`, not `devDependencies`             | `false`                      |\n| `extraNodeModuleSources` | Additional files that should be available during `pnpm install`             | `[]`                         |\n| `copyPnpmStore`          | Copy the pnpm store into the build directory instead of linking it          | `true`                       |\n| `copyNodeModules`        | Copy the `node_modules` into the build directory instead of linking it      | `false`                      |\n| `extraBuildInputs`       | Additional entries for `nativeBuildInputs`                                  | `[]`                         |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnzbr%2Fpnpm2nix-nzbr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnzbr%2Fpnpm2nix-nzbr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnzbr%2Fpnpm2nix-nzbr/lists"}