From b8821e100e0d8b02cde5392a2bb7d5f71428de87 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 15 Sep 2018 15:20:50 +0200 Subject: Disable thermoprint via flag --- stack.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 stack.nix (limited to 'stack.nix') diff --git a/stack.nix b/stack.nix new file mode 100644 index 0000000..98b31c1 --- /dev/null +++ b/stack.nix @@ -0,0 +1,14 @@ +{ ghc, nixpkgs ? (import {}) }: + +let + inherit (nixpkgs) haskell pkgs; + haskellPackages = if ghc.version == pkgs.haskellPackages.ghc.version then pkgs.haskellPackages else pkgs.haskell.packages."ghc${builtins.replaceStrings ["."] [""] ghc.version}"; +in haskell.lib.buildStackProject { + inherit ghc; + name = "stackenv"; + buildInputs = (with pkgs; + [ postgresql zlib + ]) ++ (with haskellPackages; + [ yesod-bin + ]); +} -- cgit v1.2.3