karakeep: pass patches directly to fetchPnpmDeps (#535920)
This commit is contained in:
@@ -52,18 +52,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
];
|
||||
|
||||
pnpmDeps = fetchPnpmDeps {
|
||||
inherit (finalAttrs) pname version;
|
||||
inherit (finalAttrs)
|
||||
pname
|
||||
version
|
||||
src
|
||||
patches
|
||||
;
|
||||
pnpm = pnpm_9;
|
||||
|
||||
# We need to pass the patched source code, so pnpm sees the patched version
|
||||
src = stdenv.mkDerivation {
|
||||
name = "${finalAttrs.pname}-patched-source";
|
||||
inherit (finalAttrs) src patches;
|
||||
installPhase = ''
|
||||
cp -pr --reflink=auto -- . $out
|
||||
'';
|
||||
};
|
||||
|
||||
fetcherVersion = 3;
|
||||
hash = "sha256-aT4JPx3iYw4kw8GHXKWMnelSVT0q2S3PK8DgSCQCyKQ=";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user