From 8e7b6ef079cabf904e48cbe9a6e9e12ac07f382c Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Mon, 20 Jul 2020 07:16:41 -0400 Subject: [PATCH] Add Nix support This allows you to build the project with `nix-build`, as well as drop into a dev shell via `nix-shell`. --- default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..805106c --- /dev/null +++ b/default.nix @@ -0,0 +1,11 @@ +let + pkgs = import { }; +in + pkgs.haskellPackages.developPackage { + root = ./.; + modifier = drv: + pkgs.haskell.lib.addBuildTools drv (with pkgs.haskellPackages; + [ cabal-install + ghcid + ]); + }