diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-15 15:20:50 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-15 15:20:50 +0200 |
commit | b8821e100e0d8b02cde5392a2bb7d5f71428de87 (patch) | |
tree | b6375df34485b19845709020781411b45b490e12 /stack.nix | |
parent | 42cd5f4a218be39b90a37d94eb5cdb6570ad2ab2 (diff) | |
download | bar-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.nix | 14 |
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 | |||
3 | let | ||
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}"; | ||
6 | in haskell.lib.buildStackProject { | ||
7 | inherit ghc; | ||
8 | name = "stackenv"; | ||
9 | buildInputs = (with pkgs; | ||
10 | [ postgresql zlib | ||
11 | ]) ++ (with haskellPackages; | ||
12 | [ yesod-bin | ||
13 | ]); | ||
14 | } | ||