-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkgsStatic.cachix
fails to build
#188401
Comments
Duplicates cachix/cachix#184 |
Anyone from @NixOS/static have any idea what could be going on here? The definition of Plus this override:
|
The issue is that Cabal ignores the Edit: Nevermind what I said, we do tell Cabal about pkg-config via |
I've determined that the actual culprit for the immediate failure is hercules-ci/hercules-ci-agent#447. To confirm this, I've made an incorrect & quick workaround which reveals the next problem: Nix doesn't seem to install its libraries when built statically, so even if we have the correct pkg-config executable, finding the required libraries will fail. See also NixOS/nix#7021. |
Progress at hercules-ci/hercules-ci-agent#447 (comment) |
@domenkozar
|
Might this patch help? I've had no success testing it for other reasons, but considering the error message above, it might be the only blocker this time. |
It will still break once you try to compile TH statically. We're waiting for NixOS/nix#8699 |
Ohh right, ignore my previous "the only blocker". |
@domenkozar Is there anyway to do a slim install (e.g. without pulling in gcc and such), until this is fixed? |
Not really, but we're quite close to fixing it. |
@domenkozar Is there an issue for tracking the fix? |
I'd like to have a static build of cachix.
When invoking
nix-build -A pkgsStatic.cachix
from nixpkgs, I get the following error:So the error is
pkg-config: readCreateProcess: posix_spawnp: does not exist (No such file or directory)
in/nix/store/2k9bmprkqzbkygdfi6qcc7924dq94kc4-hercules-ci-cnix-store-static-x86_64-unknown-linux-musl-0.3.3.1.drv
.hercules-ci-cnix-store seems to link against Nix' libstore, so getting this to work might be more complicated, but it'd be very nice to have a static
cachix
binary.The text was updated successfully, but these errors were encountered: