% nix error: no subcommand specified
Try ‘nix --help’ for more information.
% nix search hello error: experimental Nix feature ’ nix-command ’ is disabled; use '–extra-experimental-features nix-command ’ to override
% nix-env -i java-hello
installing ‘java-hello-1.0’
these 247 derivations will be built:
/nix/store/0076j8lvybr9qajc63mh9kxxpfzn77dz-maven-jar-plugin-2.4.jar.drv
/nix/store/008dfgyckv80i9a1sbh9m1fmmvkz119l-maven-compiler-plugin-3.1.jar.drv
/nix/store/02kz2vsm2zv99c3f959k05pr5qrgy2f0-backport-util-concurrent-3.1.pom.drv
/nix/store/04q9iq74km1dags22az7fmgpqn3h8js7-apache-4.pom.drv
/nix/store/09afxkn3jlhqx7wwlkbhknjr31f0h8yw-doxia-1.0-alpha-7.pom.drv
…
/nix/store/zqaxh7hrx7ncv99nhawwryqldvi6v7fs-maven-plugins-22.pom.drv
/nix/store/zwn8lxawxj74jcrf6i7hs9fl7a381j76-plexus-containers-1.5.5.pom.drv
/nix/store/q2h1qg6b0xx4ghvw4szxf9bg4y1qqvlx-mvn2nix-repository.drv
/nix/store/hb9sl8p5bpfx3lfwfbvy667m60zkzs6y-java-hello-1.0.drv
error: opening directory ‘/nix/store/4la0z6j0ks5hxpjqi1ngpdy29dmq8pbn-surefire-api-2.12.4.pom’: Too many open files
The last error occurs unconditionally when there is a lot of installation. Even if I set the macos max file configuration on the internet, it didn’t solve it, so I reinstalled nix, but the same.
I split the package and processed it,
In my personal project like java-hello, the build fails. Use mvn2nix. Perhaps the mvn2nix developers or several other developers will have to look after them.