someodd / burrow

Static gopherhole generator.
https://www.someodd.zip/showcase/burrow/
GNU General Public License v3.0
13 stars 1 forks source link

nix build only works in develop environment? #48

Closed someodd closed 3 months ago

someodd commented 6 months ago
➜  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 commented 6 months ago
➜  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 commented 6 months ago

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 commented 6 months ago

Posted here: https://discourse.nixos.org/t/encoding-error-only-occurs-when-nix-run-outside-env/41568

someodd commented 3 months ago

Not using Nix for this project anymore.