2023-04-12 12:48:02 +00:00
|
|
|
{ lib, buildNpmPackage, fetchFromGitHub }:
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "pnpm-lock-export";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "unstable-2023-07-31";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-08-04 22:07:22 +00:00
|
|
|
owner = "adamcstephens";
|
2023-04-12 12:48:02 +00:00
|
|
|
repo = "pnpm-lock-export";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "a7ede6d96f9d273b6b495718b85ed40f432c34ba";
|
|
|
|
hash = "sha256-RQGyUQOyFZW7UbIPRRlZu8FKcZN2kO0DcPfB8uLFFg4=";
|
2023-04-12 12:48:02 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
npmDepsHash = "sha256-1VTXzlafuI+dU4k1JyZPVI5/5h0gt/eggPPXKYxKsbs=";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = ./update.sh;
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Utility for converting pnpm-lock.yaml to other lockfile formats";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "pnpm-lock-export";
|
2023-04-12 12:48:02 +00:00
|
|
|
homepage = "https://github.com/cvent/pnpm-lock-export";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ ambroisie ];
|
|
|
|
};
|
|
|
|
}
|