snack
snack copied to clipboard
Nix-based incremental build tool for Haskell projects
Minimal example package.yaml to reproduce: ``` name: haskell-nix-minimal version: 22 dependencies: - aeson library: source-dirs: - library ``` or clone this [repo on the try-snack branch](https://github.com/codygman/haskell-nix-min-repro/tree/try-snack) and run `snack build`...
This adds support for hie-bios. Since hie-bios can't call a program with arguments (https://github.com/mpickering/hie-bios/issues/158), the following files are needed in the project: `hie.yaml`: ``` cradle: {bios: {program: ".hie-bios"}} ``` `.hie-bios`:...
Maybe we can pass it as a file instead of as a string.
Currently the only way to get access to other Nix values from a package.nix is by importing them from the repository. This works fine as long as a package is...
Currently error messages that are printed during parsing imports only show the Nix store path of the offending file.
For easy use with hie and ghcide, it would be great if snack added support for [hie-bios](https://github.com/mpickering/hie-bios). My understanding is that for this it needs to be able to output...
IDK that this is related to #188 or not! BTW, I'm using Nix 2.3.3 and `snack build` inside nix-shell exits with the following error: ```bash error: cannot coerce a set...
Snack doesn't include build-tools specified in `package.yaml` into the build environment. As an example: ```yaml library: source-dirs: src ghc-options: - -F - -pgmF=record-dot-preprocessor dependencies: - record-hasfield build-tools: - record-dot-preprocessor ```...
Cf our discussions in https://github.com/nmattia/snack/issues/179 you said it shouldn't be mandatory, but it is, otherwise the error is: ``` [nix-shell:~/code/foobar]$ snack run error: undefined variable 'pkgs' at /home/sir4ur0n/code/foobar/snack.nix:5:21 snack: Ran...