about summary refs log tree commit diff
diff options
context:
space:
mode:
authortomberek <tomberek@gmail.com>2014-07-04 09:10:57 -0400
committertomberek <tomberek@gmail.com>2014-07-04 09:10:57 -0400
commit36426f2b49c9c709eba6363841c89674544502e4 (patch)
tree28d54c3afcbad7b1ba005ed1267ce7144b334bd9
parentf5a5f46b57f6411ab17324a4eb48e590a82361b9 (diff)
downloadnixlib-36426f2b49c9c709eba6363841c89674544502e4.tar
nixlib-36426f2b49c9c709eba6363841c89674544502e4.tar.gz
nixlib-36426f2b49c9c709eba6363841c89674544502e4.tar.bz2
nixlib-36426f2b49c9c709eba6363841c89674544502e4.tar.lz
nixlib-36426f2b49c9c709eba6363841c89674544502e4.tar.xz
nixlib-36426f2b49c9c709eba6363841c89674544502e4.tar.zst
nixlib-36426f2b49c9c709eba6363841c89674544502e4.zip
Initial additions
-rw-r--r--pkgs/development/libraries/haskell/haste-compiler/default.nix25
-rw-r--r--pkgs/development/libraries/haskell/haste-perch/default.nix14
-rw-r--r--pkgs/top-level/haskell-packages.nix4
3 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/libraries/haskell/haste-compiler/default.nix b/pkgs/development/libraries/haskell/haste-compiler/default.nix
new file mode 100644
index 000000000000..0f0af455c27e
--- /dev/null
+++ b/pkgs/development/libraries/haskell/haste-compiler/default.nix
@@ -0,0 +1,25 @@
+{ cabal, binary, blazeBuilder, bzlib, dataBinaryIeee754
+, dataDefault, executablePath, filepath, ghcPaths, HTTP, monadsTf
+, mtl, network, random, shellmate, systemFileio, tar, temporary
+, time, transformers, utf8String, websockets, zipArchive
+}:
+
+cabal.mkDerivation (self: {
+  pname = "haste-compiler";
+  version = "0.3";
+  sha256 = "0a0hyra1h484c404d95d411l7gddaazy1ikwzlgkgzaqzd7j7dbd";
+  isLibrary = true;
+  isExecutable = true;
+  buildDepends = [
+    binary blazeBuilder bzlib dataBinaryIeee754 dataDefault
+    executablePath filepath ghcPaths HTTP monadsTf mtl network random
+    shellmate systemFileio tar temporary time transformers utf8String
+    websockets zipArchive
+  ];
+  meta = {
+    homepage = "http://github.com/valderman/haste-compiler";
+    description = "Haskell To ECMAScript compiler";
+    license = self.stdenv.lib.licenses.bsd3;
+    platforms = self.ghc.meta.platforms;
+  };
+})
diff --git a/pkgs/development/libraries/haskell/haste-perch/default.nix b/pkgs/development/libraries/haskell/haste-perch/default.nix
new file mode 100644
index 000000000000..e9e1dfb6a259
--- /dev/null
+++ b/pkgs/development/libraries/haskell/haste-perch/default.nix
@@ -0,0 +1,14 @@
+{ cabal, hasteCompiler, mtl }:
+
+cabal.mkDerivation (self: {
+  pname = "haste-perch";
+  version = "0.1.0.0";
+  sha256 = "0g2ijb0mzqs2iq4i47biaxbsg4v15w9ky6yyz6wmngwf06rg4iwj";
+  buildDepends = [ hasteCompiler mtl ];
+  meta = {
+    homepage = "https://github.com/agocorona/haste-perch";
+    description = "Create dynamic HTML in the browser using blaze-html-style notation with Haste";
+    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 dd8255a87b33..b9740e509ee3 100644
--- a/pkgs/top-level/haskell-packages.nix
+++ b/pkgs/top-level/haskell-packages.nix
@@ -1016,6 +1016,10 @@ self : let callPackage = x : y : modifyPrio (newScope self x y); in
 
   hastache = callPackage ../development/libraries/haskell/hastache {};
 
+  hasteCompiler = callPackage ../development/libraries/haskell/haste-compiler {};
+
+  hastePerch = callPackage ../development/libraries/haskell/haste-perch {};
+
   hcltest = callPackage ../development/libraries/haskell/hcltest {};
 
   hedis = callPackage ../development/libraries/haskell/hedis {};