You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried compiling nix from source on Alpine Linux, which uses musl libc.
It looks like there's two problems in affinity.cc that's causing the compile to fail: the sched_getcpu function is glibc-specific, and there's an error about memsetnot being defined.
I added #include <string.h> into affinity.cc and that seemed to fix the memset problem (though I don't know if that's really the correct fix or not).
Also had to add -lcrypto to the link because of who knows? Anyway, I now have nix working under apline linux. (Well, now I have to bootstrap. That's going to be the real adventure.)
Activity
gitfoxi commentedon Jun 29, 2015
I am exactly where you were in February. Did you figure it out?
gitfoxi commentedon Jun 29, 2015
This got me over that hurdle:
I guess configure assumes that any linux has it. Should be a conf-test is the bug.
gitfoxi commentedon Jun 29, 2015
Also had to add
-lcryptoto the link because of who knows? Anyway, I now have nix working under apline linux. (Well, now I have to bootstrap. That's going to be the real adventure.)dkubb commentedon Aug 14, 2015
@gitfoxi do you have a script or Dockerfile that shows the process you went through to build nix on top of alpine linux?
dkubb commentedon Aug 17, 2015
@gitfoxi @jprjr I ended up working through it myself and made a Dockerfile that shows how I compile nix with musl libc: https://github.com/dkubb/dockerfiles/blob/master/alpine-nix/Dockerfile
I'm curious to know if our processes differ at all, and if you have any suggestions on how I can improve things.
For instance, I know we must differ in some way since I never needed to specify
-lcryptoanywhere.edef1c commentedon Feb 29, 2016
I've got an Alpine package for Nix here: https://code.nathan7.eu/nathan7/alpine-nix
(and to bring us full circle: apk-tools for Nix)
edef1c commentedon Mar 3, 2016
Note that this actually being fixed is pending the next stable musl release, but that places the ball firmly in their court.
Merge pull request NixOS#469 from DeterminateSystems/improve-show-path