packages.mkPnpmPackage: fix

This commit is contained in:
2024-11-06 20:54:40 +08:00
parent 1988bc65b1
commit fc44aba8d4

View File

@@ -1,4 +1,4 @@
{ lib, remarshal, fetchurl, runCommand, nodejs, stdenv, pkg-config, writeText }:
{ lib, yq, fetchurl, runCommand, nodejs, stdenv, pkg-config, writeText }:
{
src,
lockFile ? "${src}/pnpm-lock.yaml",
@@ -13,7 +13,7 @@
}:
let
originalLock = builtins.fromJSON
(builtins.readFile (runCommand "toJSON" { } "${remarshal}/bin/yaml2json ${lockFile} $out"));
(builtins.readFile (runCommand "toJSON" { } "cat ${lockFile} | ${yq}/bin/yq > $out"));
patchedLock = originalLock
// {
packages = lib.mapAttrs