From af454ea92e2e20a48c9c4efbdb657e71896ac95c Mon Sep 17 00:00:00 2001 From: Mathieu Boespflug Date: Sun, 20 Dec 2015 18:35:22 +0100 Subject: [PATCH] Add nix section to stack.yaml (disabled by default). This makes it possible to build and install Stack on systems where the system dependencies (namely zlib) are not present or not installed at the location GHC/Cabal expects them (e.g NixOS). --- stack.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/stack.yaml b/stack.yaml index 123994f29c..e23f646ca5 100644 --- a/stack.yaml +++ b/stack.yaml @@ -4,3 +4,9 @@ image: base: "fpco/ubuntu-with-libgmp:14.04" entrypoints: - stack + +nix: + # --nix on the command-line to enable. + enable: false + packages: + - zlib