[Nix-dev] [PATCH] Extra libraries required for web dev with Snap

Daniel Santa Cruz dstcruz at gmail.com
Thu Aug 2 03:13:27 CEST 2012


---
 pkgs/development/libraries/haskell/snap/loader-dynamic.nix | 14 ++++++++++++++
 pkgs/top-level/haskell-packages.nix                        |  2 ++
 2 files changed, 16 insertions(+)
 create mode 100644 pkgs/development/libraries/haskell/snap/loader-dynamic.nix

diff --git a/pkgs/development/libraries/haskell/snap/loader-dynamic.nix b/pkgs/development/libraries/haskell/snap/loader-dynamic.nix
new file mode 100644
index 0000000..5815496
--- /dev/null
+++ b/pkgs/development/libraries/haskell/snap/loader-dynamic.nix
@@ -0,0 +1,14 @@
+{ cabal, directoryTree, hint, mtl, snapCore, time }:
+
+cabal.mkDerivation (self: {
+  pname = "snap-loader-dynamic";
+  version = "0.9.0";
+  sha256 = "1pbpvi20an077klvha1dflnlxpfb6m81n9d50hjhidf6430cmmhm";
+  buildDepends = [ directoryTree hint mtl snapCore time ];
+  meta = {
+    homepage = "http://snapframework.com/";
+    description = "Snap: A Haskell Web Framework: dynamic loader";
+    license = self.stdenv.lib.licenses.bsd3;
+    platforms = self.ghc.meta.platforms;
+  };
+})
diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix
index 97b1782..5485622 100644
--- a/pkgs/top-level/haskell-packages.nix
+++ b/pkgs/top-level/haskell-packages.nix
@@ -1325,6 +1325,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y);
 
   snapCore = callPackage ../development/libraries/haskell/snap/core.nix {};
 
+  snapLoaderDynamic = callPackage ../development/libraries/haskell/snap/loader-dynamic {};
+
   snapLoaderStatic = callPackage ../development/libraries/haskell/snap/loader-static.nix {};
 
   snapServer = callPackage ../development/libraries/haskell/snap/server.nix {};
-- 
1.7.11.3



More information about the nix-dev mailing list