stack2nix icon indicating copy to clipboard operation
stack2nix copied to clipboard

Generate nix expressions for Haskell projects

Results 45 stack2nix issues
Sort by recently updated
recently updated
newest added

Based on #1 by @qrilka, but I cannot push commits on that branch. Seems to work!

- You get a very unhelpful error if your resolver file does not have a `name:` field _Originally posted by @codygman in https://github.com/input-output-hk/haskell.nix/issues/1157#issuecomment-873181947_ Maybe we should make it optional?

Hi all, this tool was written back in 2018 mostly in anger, to transfer dependency pinning from Stack to Nix. With all its warts (known from the beginning) it's now...

I'm aware this project is not maintained anymore nor is my branch in a merge-worthy state I feel but opening a PR in case anyone else finds this work useful....

Resolves the below error when building on OSX: ``` ❯ nix-build error: anonymous function at ~/Work/stack2nix/stack2nix.nix:16465:10 called without required argument 'CoreServices', at /nix/store/shm5fcq49wnwgjhpn4l05jzg53wm0h2b-nixpkgs-18.09pre151052.4477cf04b67/nixpkgs/pkgs/development/haskell-modules/make-package-set.nix:88:27 (use '--show-trace' to show detailed location information)...

when I run `nix-build` in the project root I get: ``` error: anonymous function at /Users//code/stack2nix/stack2nix.nix:15630:10 called without required argument 'CoreServices', at /nix/store/ydnxlkpdy47jffbb9sim11hb43xjrnhr-872502aa56bd4d574fcfe9cfef9066c9e8ee2894.tar.gz-unpacked/pkgs/development/haskell-modules/make-package-set.nix:87:27 (use '--show-trace' to show detailed location information)...

See #84, #167. Done for https://github.com/nh2/static-haskell-nix/issues/53

Custom setups in the .cabal file don't quite work right. As an example, projects using proto-lens won't find proto-lens-protoc, complain about it, and fail. So perhaps a way to run...

stack-2.1.1 was released on Hackage. ``` Building library for stack2nix-0.2.3.. [ 1 of 11] Compiling Paths_stack2nix ( dist/build/autogen/Paths_stack2nix.hs, dist/build/Paths_stack2nix.o ) [ 2 of 11] Compiling Stack2nix.External.Util ( src/Stack2nix/External/Util.hs, dist/build/Stack2nix/External/Util.o )...

bug

Using `nix-env -I stack2nix` gives ``` Warning: This package indirectly depends on multiple versions of the same package. This is very likely to cause a compile failure. package stack (stack-1.7.1-pJfC6X4Hzp7NYWygtKpAw)...