- rP550026: Add Nix, a purely functional package manager
Apply the patch.
Run the following commands:
host# poudriere testport -j 120a -o sysutils/nix -I host# jexec 120a-default-n env -i TERM=$TERM /usr/bin/login -fp root jail# make -C /usr/ports/sysutils/nix test
At the moment it fails in the configure phase as it cannot find libcrypto.
Interestingly, if we add autoreconf to USES then it cannot find OPENSSL. It probably has something to do with the bootstrap.sh script mentioned in the manual here: https://nixos.org/nix/manual/#sec-building-source
- Update to 2.2.2
- Build fails with:
LD src/libutil/libnixutil.so /usr/bin/ld: error: /usr/lib:1: unknown directive: >>> /D2libregex_p.a2libmenuw_p.a2libprivatessh.so.52libsmb.so2libssl.so2pam_tacplus.so.62crtbeginT.o2libprivateldns_p.a2libdevinfo_p.a2libkiconv.a >>> ^ c++: error: linker command failed with exit code 1 (use -v to see invocation) gmake: *** [mk/lib.mk:104: src/libutil/libnixutil.so] Error 1
This part of the manual says that you need X nixbld users if you want to build X packages concurrently. I'd say that we might want to just provide a script wrapper for creating users or add a note to pkg-message. The number of users depends heavily on user's use case...
BTW I've added some references to the description of this differential revision.
I think this should be left to the operator to create, as the number of packages you can build at the same time depends on your CPU, and can range from 1 to a hundred.
Maybe provide a script to create the users and add a note to it in pkg-message.