biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / web / pnpm-lock-export / default.nix
blob093a1da2d0d455d944dad23711c8ddd4f1c791e6
1 { lib, buildNpmPackage, fetchFromGitHub }:
2 buildNpmPackage rec {
3   pname = "pnpm-lock-export";
4   version = "unstable-2023-07-31";
6   src = fetchFromGitHub {
7     owner = "adamcstephens";
8     repo = "pnpm-lock-export";
9     rev = "a7ede6d96f9d273b6b495718b85ed40f432c34ba";
10     hash = "sha256-RQGyUQOyFZW7UbIPRRlZu8FKcZN2kO0DcPfB8uLFFg4=";
11   };
13   npmDepsHash = "sha256-1VTXzlafuI+dU4k1JyZPVI5/5h0gt/eggPPXKYxKsbs=";
15   postPatch = ''
16     cp ${./package-lock.json} package-lock.json
17     # Make the executable get installed to `bin/` instead of `bin/@cvent`
18     substituteInPlace package.json --replace "@cvent/pnpm-lock-export" "pnpm-lock-export"
19   '';
21   passthru = {
22     updateScript = ./update.sh;
23   };
25   meta = with lib; {
26     description = "Utility for converting pnpm-lock.yaml to other lockfile formats";
27     mainProgram = "pnpm-lock-export";
28     homepage = "https://github.com/cvent/pnpm-lock-export";
29     license = licenses.mit;
30     maintainers = with maintainers; [ ambroisie ];
31   };