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 only works in develop environment? #48

Closed
someodd opened this issue Mar 15, 2024 · 4 comments
Closed

nix build only works in develop environment? #48

someodd opened this issue Mar 15, 2024 · 4 comments

Comments

@someodd
Copy link
Owner

someodd commented Mar 15, 2024

➜  burrow git:(master) nix run .#burrow -- build
burrow: data/fonts/basicthorpe.bmf: hGetContents: invalid argument (invalid byte sequence)
➜  burrow git:(master) nix run .#burrow -- build
➜  burrow git:(master) vim data/
➜  burrow git:(master) nix develop
tilde@framework:~/Projects/burrow$ nix run .#burrow -- build
tilde@framework:~/Projects/burrow$ ls
app           burrowsrc      data           flake.nix  README.md  templates
built         cabal.project  dist-newstyle  LICENSE    result
burrow.cabal  CHANGELOG.md   flake.lock     Makefile   src
tilde@framework:~/Projects/burrow$ 
@someodd
Copy link
Owner Author

someodd commented Mar 15, 2024

➜  burrow git:(master) cabal run . -- build
Resolving dependencies...
Build profile: -w ghc-8.10.7 -O1
In order, the following will be built (use -v for more details):
 - burrow-0.1.14.0 (lib) (file README.md changed)
 - burrow-0.1.14.0 (exe:burrow) (dependency rebuilt)
Preprocessing library for burrow-0.1.14.0..
Building library for burrow-0.1.14.0..
Preprocessing executable 'burrow' for burrow-0.1.14.0..
Building executable 'burrow' for burrow-0.1.14.0..

@someodd
Copy link
Owner Author

someodd commented Mar 15, 2024

  • Can run just using cabal run . -- build outside of the Nix environment/nix develop
  • Can run using nix run .#burrow -- build inside of the Nix environment
  • Cannot run using nix run .#burrow -- build inside of the Nix environment
  • Can run cabal run . -- build inside the Nix env

The error that comes up when I use nix run .#burrow -- build outside the Nix environment is:

➜  burrow git:(master) nix run . -- build
burrow: data/fonts/basicthorpe.bmf: hGetContents: invalid argument (invalid byte sequence)

@someodd
Copy link
Owner Author

someodd commented Mar 16, 2024

@someodd
Copy link
Owner Author

someodd commented Jun 28, 2024

Not using Nix for this project anymore.

@someodd someodd closed this as completed Jun 28, 2024
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