Yarn must the same package as language definition.
Inherit a package, so that we do not end up with different versions of Node.js as default is whatever is marked as stable in Nixpkgs.
error: syntax error, unexpected '=', expecting ';'
This example seems to fail: https://github.com/cachix/devenv/actions/runs/9872750941/job/27263894731?pr=1325#step:7:29
Ping
We ended with a configuration like this, but this is mostly because the project uses a lot of packages and there were issues with resolving correct ESM/non-ESM packages that older versions of Yarn had.
{
inputs,
...
}: let
nixpkgs-2405 = import inputs.nixpkgs-2405 {system = pkgs.stdenv.system;};
node-20 = nixpkgs-2405.nodejs_20;
yarn-422 = nixpkgs-2405.yarn-berry.override {
nodejs = node-20;
};
in {
packages = with nixpkgs-2405; [
yarn-422
node-20
];
languages.javascript.package = node-20;
}
Let's wait on the CI
@dz0ny can you rebase?