yarn-plugin-nixify
yarn-plugin-nixify copied to clipboard
Option to skip-build
While trying to package https://backstage.io/ I ran into a lot of issues related to dependencies that fail to build, most importantly ssh2
requires /usr/bin/env
.
The package itself isn't really needed by anything I'm using right now afaict, but it requires that I either:
- switch to
nodeLinker: pnp
, separatessh2
in its own build and patch it (this doesn't work, because for some reason the typescript stuff goes insane with pnp). - Set
--mode=skip-build
on theyarn install
step, but there's no clean way to modify options without replacing the wholeconfigurePhase
, in which case i lose references tomkCacheBuilderForDrvs
,cacheDrvs
,yarnPath
, andcacheFolder
. - Manually patch the
yarn-project.nix
after every yarn execution.
So I think the best option would be to offer some way to augment the yarn invocation with additional flags.