Generating a Nix package from a stack project
I have a software application that can be built and installed with stack . I would like to offer a binary package as well for Linux and Mac. For this purpose I'm considering nix , since, among other things, it can be used in Linux and Mac. This will save me the trouble of having to maintain two package types. After reading about how nix packages are defined, I would expect that a stack based project could be built with a configuration that would look like: { stdenv, fetchurl, stack }: # we need to depend on stack stdenv.mkDerivation { name = "some-haskell-package-0.1"; builder = ./builder.sh;