From 1ab407c2bf4fb5001c3b821f644fceac6353084d Mon Sep 17 00:00:00 2001 From: "Julian K. Arni" Date: Mon, 2 Mar 2015 13:12:38 +0100 Subject: [PATCH] Add default.nix --- default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 default.nix diff --git a/default.nix b/default.nix new file mode 100644 index 00000000..e35097aa --- /dev/null +++ b/default.nix @@ -0,0 +1,12 @@ + +{ pkgs ? import { config.allowUnfree = true; } +, src ? builtins.filterSource (path: type: + type != "unknown" && + baseNameOf path != ".git" && + baseNameOf path != "result" && + baseNameOf path != "dist") ./. +}: +pkgs.haskellPackages.buildLocalCabalWithArgs { + name = "servant"; + inherit src; +}