I want nix to build software on a non-standard store directory, not on /nix.
Also, the software that is build should be relocatable in different machines, of course all with the same base storage path.
I tried myself and I failed over and over.
Fundamental packages like go don’t build (don’t pass tests).
Packages that are built, are not relocatable.
I want nix to build software on a non-standard store directory, not on /nix.
Also, the software that is build should be relocatable in different machines, of course all with the same base storage path.
Fundamental packages like go don’t build (don’t pass tests).
Packages that are built, are not relocatable.
I think it could be a good idea to post which subset of Nixpkgs you need most; I would expect people to be more interested if the packages in question are the ones they understand and use.
(I am a bit surprised that building Nix from source with a different prefix and bootstrapping from scratch did not work out, to be honest, but when I did such things I did not need any Go)
I am building a software stack.
So I will need compilers, fundamental libraries, and pretty much whatever is needed to run a production and a dev environment.
To be honest, pretty much everything.
But all the tools should already be in nixpkg, they just don’t always build right, or if they build are not relocatable in a new machine…
Depending if you compile with sandboxed build or not, you may have issues. libuv, for example, compiles within sandboxed build with a custom store but fails when the sandbox is disabled.
For Go, my overlay for a host with a custom nix store looks like this:
On my desktop, the filesystem is ZFS. On the hosts the store is mostly in NFS (it may sometimes be in a Lustre FS (a parallel filesystem posix compliant)).
does nfs /nix/store actuall work very well? does nfs actually work well for anything?
i’d be interested to hear what results you are getting, and how you have it setup.
How are you trying to use a non-standard store directory?
The last time I tried was ~3 years ago, building Nix from source on Debian. I don’t remember the exact commands I used though. The main issue I had was that rebuilding everything from source is slow, and Nix rebuilds things a lot more often than other package managers that rely on semver. I didn’t try copying anything to another machine though.