nixpkgs/pkgs/development/web/pnpm-lock-export/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
958 B
Nix
Raw Normal View History

2023-04-01 15:37:49 +02:00
{ lib, buildNpmPackage, fetchFromGitHub }:
buildNpmPackage rec {
pname = "pnpm-lock-export";
version = "unstable-2023-07-31";
2023-04-01 15:37:49 +02:00
src = fetchFromGitHub {
owner = "adamcstephens";
2023-04-01 15:37:49 +02:00
repo = "pnpm-lock-export";
rev = "cc03755d6718a9c0d268d0f375907328ac15dc92";
hash = "sha256-9OlFgmdKjvz4pB36Wm/fUAQDsD8zs32OSA3m2IAgrH8=";
2023-04-01 15:37:49 +02:00
};
npmDepsHash = "sha256-nqkH7vFD78YvYr9Klguk2o7qHr5wr3ZjaywUKRRRjJo=";
2023-04-01 15:37:49 +02: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; {
description = "A utility for converting pnpm-lock.yaml to other lockfile formats";
homepage = "https://github.com/cvent/pnpm-lock-export";
license = licenses.mit;
maintainers = with maintainers; [ ambroisie ];
};
}