1{
2 lib,
3 buildNpmPackage,
4 fetchurl,
5 version,
6 hash,
7 npmDepsHash,
8 packageLockFile,
9}:
10
11buildNpmPackage rec {
12 pname = "lerna";
13 inherit version;
14
15 src = fetchurl {
16 url = "https://registry.npmjs.org/lerna/-/lerna-${version}.tgz";
17 inherit hash;
18 };
19
20 postPatch = ''
21 ln -s ${packageLockFile} package-lock.json
22 '';
23
24 inherit npmDepsHash;
25 dontNpmBuild = true;
26
27 meta = {
28 description = "Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository";
29 homepage = "https://lerna.js.org/";
30 changelog = "https://github.com/lerna/lerna/blob/v${version}/CHANGELOG.md";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ ThaoTranLePhuong ];
33 };
34}