aboutsummaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/default.nix b/default.nix
new file mode 100644
index 0000000..6bd2d86
--- /dev/null
+++ b/default.nix
@@ -0,0 +1,20 @@
+{ pkgs ? import <nixpkgs> { } }:
+let
+ haskellPackages = pkgs.haskellPackages.override {
+ overrides = self: super: {
+ json2sql = self.callCabal2nix "json2sql" ./. { };
+ };
+ };
+in
+rec {
+ inherit (haskellPackages) json2sql;
+ shell = haskellPackages.shellFor {
+ packages = _: [ json2sql ];
+ buildInputs = [
+ haskellPackages.cabal-install
+ haskellPackages.ormolu
+ ];
+ withHoogle = true;
+ withHaddock = true;
+ };
+}