| 1 Dec 2023 |
Nicola Squartini |
Why are you modifying the buildPhase
if I remove that
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/nix/store/45wvk1m5j03v8la99fw7pilyh79yyvaf-salesforce-cli-2.17.14/libexec/@salesforce/cli/deps/@salesforce/cli/dist/flags.js' imported from /nix/store/45wvk1m5j03v8la99fw7pilyh79yyvaf-salesforce-cli-2.17.14/libexec/@salesforce/cli/deps/@salesforce/cli/bin/run.js
mkYarnPackage doesn't have a default build phase
| 14:47:51 |
Lily Foster | In reply to @tensor5:matrix.org
Can someone help with this
mkYarnPackage {
src = fetchFromGitHub {
owner = "salesforcecli";
repo = "cli";
rev = "2.17.14";
hash = "sha256-lliHmc/LJCEkZcxBdnSAqpYpnz7R/g6Q2Oi7hIB04B4=";
};
buildPhase = ''
runHook preBuild
yarn --offline build
runHook postBuild
'';
postBuild = "npm prune --omit=dev";
doDist = false;
}
the problem I'm trying to solve is pruning devDependencies
just use yarn install --offline --frozen-lockfile --ignore-engines rather than trying to yarn build and then using npm | 16:06:03 |
Lily Foster | In reply to @tensor5:matrix.org
Can someone help with this
mkYarnPackage {
src = fetchFromGitHub {
owner = "salesforcecli";
repo = "cli";
rev = "2.17.14";
hash = "sha256-lliHmc/LJCEkZcxBdnSAqpYpnz7R/g6Q2Oi7hIB04B4=";
};
buildPhase = ''
runHook preBuild
yarn --offline build
runHook postBuild
'';
postBuild = "npm prune --omit=dev";
doDist = false;
}
the problem I'm trying to solve is pruning devDependencies
* just use yarn install --offline --frozen-lockfile --ignore-engines rather than trying to yarn build + npm prune | 16:06:12 |
Nicola Squartini | In reply to @lily:lily.flowers just use yarn install --offline --frozen-lockfile --ignore-engines rather than trying to yarn build and then using npm no luck
[] 0/1376error Can't make a request in offline mode ("https://registry.yarnpkg.com/got/-/got-11.8.6.tgz")
| 18:31:58 |
Lily Foster | In reply to @tensor5:matrix.org
no luck
[] 0/1376error Can't make a request in offline mode ("https://registry.yarnpkg.com/got/-/got-11.8.6.tgz")
ugh yarn2nix makes me sad. i'll look at the yarn2nix code in a bit and get back to you | 18:44:33 |
| 3 Dec 2023 |
| @ThorHop:matrix.org changed their display name from hopland (valorent vicky) to hopland (meticulous montesquieu). | 14:08:31 |
| 5 Dec 2023 |
| Federico Damián Schonborn changed their profile picture. | 00:38:02 |
| 8 Dec 2023 |
| fwam left the room. | 06:53:36 |
| 10 Dec 2023 |
Emma [it/its] ⚡️ | i wonder if theres a better way to do package nodejs apps... | 19:59:02 |
Emma [it/its] ⚡️ | https://github.com/spacebarchat/server/blob/dev/nix/flake.nix#L24-L57 | 19:59:31 |