mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 02:09:26 +08:00
packages.mkPnpmPackage: fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
{ lib, remarshal, fetchurl, runCommand, nodejs, stdenv, pkg-config, writeText }:
|
{ lib, yq, fetchurl, runCommand, nodejs, stdenv, pkg-config, writeText }:
|
||||||
{
|
{
|
||||||
src,
|
src,
|
||||||
lockFile ? "${src}/pnpm-lock.yaml",
|
lockFile ? "${src}/pnpm-lock.yaml",
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
originalLock = builtins.fromJSON
|
originalLock = builtins.fromJSON
|
||||||
(builtins.readFile (runCommand "toJSON" { } "${remarshal}/bin/yaml2json ${lockFile} $out"));
|
(builtins.readFile (runCommand "toJSON" { } "cat ${lockFile} | ${yq}/bin/yq > $out"));
|
||||||
patchedLock = originalLock
|
patchedLock = originalLock
|
||||||
// {
|
// {
|
||||||
packages = lib.mapAttrs
|
packages = lib.mapAttrs
|
||||||
|
|||||||
Reference in New Issue
Block a user