Merge pull request #296857 from doronbehar/docs/mkYarnPackage.doDist

doc/mkYarnPackage: document better distPhase and doDist
This commit is contained in:
Lily Foster 2024-03-18 07:59:29 -07:00 committed by GitHub
commit a29a5a60bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -315,10 +315,10 @@ buildPhase = ''
'';
```
The dist phase is also trying to build a binary, the only way to override it is with:
The `distPhase` is packing the package's dependencies in a tarball using `yarn pack`. You can disable it using:
```nix
distPhase = "true";
doDist = false;
```
The configure phase can sometimes fail because it makes many assumptions which may not always apply. One common override is: