about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Charles <ollie@ocharles.org.uk>2014-07-05 10:59:22 +0100
committerOliver Charles <ollie@ocharles.org.uk>2014-07-05 10:59:22 +0100
commit6365987e539a2bfe079df24b8b8362364fbb2ca8 (patch)
tree5ec80c326cd487daeeed6f9095d12ec3f102b7ba
parent2fc5d3c243440cf006b7effbff43565d756915f0 (diff)
parentce5c883ecfad7b837c16c6da0c48902371c17fea (diff)
downloadnixlib-6365987e539a2bfe079df24b8b8362364fbb2ca8.tar
nixlib-6365987e539a2bfe079df24b8b8362364fbb2ca8.tar.gz
nixlib-6365987e539a2bfe079df24b8b8362364fbb2ca8.tar.bz2
nixlib-6365987e539a2bfe079df24b8b8362364fbb2ca8.tar.lz
nixlib-6365987e539a2bfe079df24b8b8362364fbb2ca8.tar.xz
nixlib-6365987e539a2bfe079df24b8b8362364fbb2ca8.tar.zst
nixlib-6365987e539a2bfe079df24b8b8362364fbb2ca8.zip
Merge pull request #3178 from tomberek/haskell_hastePerch
Haskell haste perch
-rw-r--r--pkgs/development/libraries/haskell/haste-compiler/default.nix25
-rw-r--r--pkgs/development/libraries/haskell/haste-perch/default.nix15
-rw-r--r--pkgs/top-level/haskell-packages.nix4
3 files changed, 44 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..3fb7f0499c03
--- /dev/null
+++ b/pkgs/development/libraries/haskell/haste-perch/default.nix
@@ -0,0 +1,15 @@
+{ cabal, hasteCompiler, mtl }:
+
+cabal.mkDerivation (self: {
+  pname = "haste-perch";
+  version = "0.1.0.0";
+  sha256 = "0g2ijb0mzqs2iq4i47biaxbsg4v15w9ky6yyz6wmngwf06rg4iwj";
+  buildDepends = [ hasteCompiler mtl ];
+  jailbreak = true;
+  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 {};