summaryrefslogtreecommitdiff
path: root/stack.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-09-15 15:20:50 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-09-15 15:20:50 +0200
commitb8821e100e0d8b02cde5392a2bb7d5f71428de87 (patch)
treeb6375df34485b19845709020781411b45b490e12 /stack.nix
parent42cd5f4a218be39b90a37d94eb5cdb6570ad2ab2 (diff)
downloadbar-b8821e100e0d8b02cde5392a2bb7d5f71428de87.tar
bar-b8821e100e0d8b02cde5392a2bb7d5f71428de87.tar.gz
bar-b8821e100e0d8b02cde5392a2bb7d5f71428de87.tar.bz2
bar-b8821e100e0d8b02cde5392a2bb7d5f71428de87.tar.xz
bar-b8821e100e0d8b02cde5392a2bb7d5f71428de87.zip
Disable thermoprint via flag
Diffstat (limited to 'stack.nix')
-rw-r--r--stack.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/stack.nix b/stack.nix
new file mode 100644
index 0000000..98b31c1
--- /dev/null
+++ b/stack.nix
@@ -0,0 +1,14 @@
1{ ghc, nixpkgs ? (import <nixos> {}) }:
2
3let
4 inherit (nixpkgs) haskell pkgs;
5 haskellPackages = if ghc.version == pkgs.haskellPackages.ghc.version then pkgs.haskellPackages else pkgs.haskell.packages."ghc${builtins.replaceStrings ["."] [""] ghc.version}";
6in haskell.lib.buildStackProject {
7 inherit ghc;
8 name = "stackenv";
9 buildInputs = (with pkgs;
10 [ postgresql zlib
11 ]) ++ (with haskellPackages;
12 [ yesod-bin
13 ]);
14}