-
-
Notifications
You must be signed in to change notification settings - Fork 35
Running out of memory doing: nix-store --add /tmp/../stack2nix-output.nix #103
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
Comments
Hey Ben, can you check in If yes, that will be the reason: I have yesterday found one such case as well. In a correctly generated file, |
That will do it :-) But I also have:
Where |
I'm calling this https://github.com/cdodev/rapid/blob/master/default.nix from this file in my example (which I'll push shortly)
and I'm using this command: |
Ugh... I was passing the That seems to have fixed it |
That makes sense! |
But:
Looks like I'm trying to build in a store path when I get past this point... |
Is there a reason why we have to use stack for all this? Could I use |
I tried using |
@commandodev On --- a/default.nix
+++ b/default.nix
@@ -2,8 +2,8 @@
#
# $(nix-build --no-link -A fullBuildScript)
{
- pkgName,
+ pkgName ? "rapid",
- projectDir ? toString "./.",
+ projectDir ? ./.,
compiler ? "ghc865", # matching stack.yaml
stack2nix-output-path ? "./rapid-output.nix"
}: it starts building for me (not finished yet so I cannot tell yet if it will be fully successful).
The use of |
OK, it built all the way to
You removed the $ $(nix-build --no-link default.nix -A fullBuildScript --argstr projectDir $PWD)
... build output
/nix/store/z7j8w0k8mbc9fzi5zvdgsbasixm3gaav-rapid-0.1.0.0 So that builds. It doesn't currently build a static exe though because that's commented out in your |
Thanks Niklas! I don't think I was clear before. I'm actually trying to run this from the https://github.com/cdodev/rapid-example/blob/master/default.nix The idea is that it's calling rapid's The error here seems to be when stack is trying to clone rapid:
edit
|
fixed by adding
|
Boom! Working:
Thanks for the help @nh2! |
👍 |
Happy New Year @nh2. Thanks again for the help. Looking to release |
To you too @commandodev! Sounds great. With nh2/stack2nix#1 we're also getting closer to support more current LTSs in |
I'm pulling in an external package via a git entry in
extra-deps
. This was working when the thing I'm building was in a directory inside the thing I'm pulling in...The text was updated successfully, but these errors were encountered: