Skip to content
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

nix build fails with code 1, but build results are in the nix store #1

Open
MatrixManAtYrService opened this issue Jul 12, 2023 · 0 comments

Comments

@MatrixManAtYrService
Copy link

First of all, thanks for making this. I think it will be useful. I'm not a nix expert and I'm very new to nim, so please forgive me if I'm asking in the wrong place here.


I want to use nimble2nix with nimwave starter. I've integrated the two with this commit.

When I run nix build, I see error: builder for '/nix/store/nhnbqrvxydzlyn352mml54y71h8j5chl-nimwave_starter-0.1.drv' failed with exit code 1 (logs here)

When I dig through those logs, I see references to this file: /nix/store/...-nimwave_starter-0.1/bin/tui which I can run, and it works as expected.

I guess the tui build target is succeeding and the gui target is failing, and since one of the two is failing, nix build is failing. From the nimwave_starter readme, these are typically built with separate commands:

nimble build tui -d:release
nimble build gui -d:release --app:gui

How can I make these into separate flake outputs so that I can use nix build and nix run on the one that works without getting tangled up with the one that doesn't?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant