pkgs: add pnpm-lock-export

This commit is contained in:
Bruno BELANYI 2023-03-25 14:32:10 +01:00
parent 5d9524dbdf
commit 281d98b295
4 changed files with 9924 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{ lib, buildNpmPackage, fetchFromGitHub }:
buildNpmPackage rec {
pname = "pnpm-lock-export";
version = "0.4.0";
src = fetchFromGitHub {
owner = "cvent";
repo = "pnpm-lock-export";
rev = "v${version}";
hash = "sha256-vS6AW3R4go1Fdr3PBOCnuN4JDrDkl1lWVF7q+q+xDGg=";
};
npmDepsHash = "sha256-3uW/lzB+UDhFQtRb3X8szNlgAWTcSdwVdtyZvLu+cjI=";
postPatch = ''
cp ${./package-lock.json} package-lock.json
# Make the executable get installed to `bin/` instead of `bin/@cvent`
substituteInPlace package.json --replace "@cvent/pnpm-lock-export" "pnpm-lock-export"
'';
meta = with lib; {
description = "A utility for converting pnpm-lock.yaml to other lockfile formats";
homepage = "https://github.com/cvent/pnpm-lock-export";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ ambroisie ];
};
}