Added a couple of web-programming-related Haskell packages.

svn path=/nixpkgs/trunk/; revision=22683
This commit is contained in:
Andres Löh 2010-07-21 09:41:12 +00:00
parent 7f3838c16a
commit df9f4a8696
9 changed files with 126 additions and 3 deletions

View File

@ -0,0 +1,12 @@
{cabal, transformers, extensibleExceptions} :
cabal.mkDerivation (self : {
pname = "MonadCatchIO-transformers";
version = "0.2.2.0";
sha256 = "7f3b45ac01ac98476d1305333435005a6876e5c04c562e94ad2426ee7ab6936d";
propagatedBuildInputs = [transformers extensibleExceptions];
meta = {
description = "Monad-transformer compatible version of the Control.Exception module";
};
})

View File

@ -0,0 +1,13 @@
{cabal, text}:
cabal.mkDerivation (self : {
pname = "blaze-html";
version = "0.1.2";
sha256 = "c1e65e3d23e90a3830ceee69ecfac65c7a8a045da06443fb7690609a59480f5f";
propagatedBuildInputs = [text];
meta = {
description = "A blazingly fast HTML combinator library";
license = "BSD";
maintainers = [self.stdenv.lib.maintainers.andres];
};
})

View File

@ -0,0 +1,12 @@
{cabal}:
cabal.mkDerivation (self : {
pname = "cereal";
version = "0.2";
sha256 = "aa00eb88cea5616a0eb9e4b6604cb164b8bef6e86b111cbb67d51d4d3441332b";
meta = {
description = "A binary serialization library";
license = "BSD";
maintainers = [self.stdenv.lib.maintainers.andres];
};
})

View File

@ -0,0 +1,13 @@
{cabal, blazeHtml, parsec, utf8String}:
cabal.mkDerivation (self : {
pname = "hamlet";
version = "0.4.0";
sha256 = "5e05879e734fc193acc48eda48dadbf53659e937543068bcc77dc7c394f6adcd";
propagatedBuildInputs = [blazeHtml parsec utf8String];
meta = {
description = "Haml-like template files that are compile-time checked";
license = "BSD";
maintainers = [self.stdenv.lib.maintainers.andres];
};
})

View File

@ -0,0 +1,17 @@
{cabal, blazeHtml, MonadCatchIOTransformers, parsec, text, transformers,
utf8String, webRoutesQuasi}:
cabal.mkDerivation (self : {
pname = "persistent";
version = "0.1.0";
sha256 = "32379f5ef937da1bf910cfaf9b6cce6326b8fba7554ef81159e6684c7ce2ca45";
propagatedBuildInputs = [
blazeHtml MonadCatchIOTransformers parsec text transformers
utf8String webRoutesQuasi
];
meta = {
description = "Type-safe, non-relational, multi-backend persistence";
license = "BSD";
maintainers = [self.stdenv.lib.maintainers.andres];
};
})

View File

@ -2,10 +2,10 @@
cabal.mkDerivation (self : {
pname = "transformers";
version = "0.1.4.0";
sha256 = "6d222d1cbed75063753a7c828d7f429f24974d261872c7b70fe90a003c93646d";
version = "0.2.1.0";
sha256 = "1ff9768e60130810e888452b6052d64998d0651fe2835902f032d8f8182a2c6d";
meta = {
description = "Concrete monad transformers";
description = "Concrete functor and monad transformers";
};
})

View File

@ -0,0 +1,13 @@
{cabal, webRoutes}:
cabal.mkDerivation (self : {
pname = "web-routes-quasi";
version = "0.5.0";
sha256 = "07ef2717b44f92bccee9af4b4d9a173c12ec3b3b1d49a8495811dad0af240673";
propagatedBuildInputs = [webRoutes];
meta = {
description = "Define data types and parse/build functions for web-routes via a quasi-quoted DSL";
license = "BSD";
maintainers = [self.stdenv.lib.maintainers.andres];
};
})

View File

@ -0,0 +1,13 @@
{cabal, network, parsec, utf8String}:
cabal.mkDerivation (self : {
pname = "web-routes";
version = "0.22.0";
sha256 = "6482ecba585cf7b1f32c29bfd5cb6f5e06dba72231e38ae5baa15b6b95f7c6c8";
propagatedBuildInputs = [network parsec utf8String];
meta = {
description = "Library for maintaining correctness and composability of URLs within an application";
license = "BSD";
maintainers = [self.stdenv.lib.maintainers.andres];
};
})

View File

@ -61,6 +61,10 @@ rec {
inherit cabal;
};
blazeHtml = import ../development/libraries/haskell/blaze-html {
inherit cabal text;
};
bytestring = import ../development/libraries/haskell/bytestring {
inherit cabal;
};
@ -73,6 +77,10 @@ rec {
inherit cabal;
};
cereal = import ../development/libraries/haskell/cereal {
inherit cabal;
};
cgi3001172 = import ../development/libraries/haskell/cgi/3001.1.7.2.nix {
inherit cabal mtl parsec xhtml;
network = network2217;
@ -251,6 +259,10 @@ rec {
inherit (pkgs) stdenv fetchurl pkgconfig gnome cairo;
};
hamlet = import ../development/libraries/haskell/hamlet {
inherit cabal blazeHtml parsec utf8String;
};
HAppSData = import ../development/libraries/haskell/HAppS/HAppS-Data.nix {
inherit cabal mtl sybWithClass HaXml HAppSUtil bytestring binary;
};
@ -518,6 +530,10 @@ rec {
inherit cabal mtl extensibleExceptions;
};
MonadCatchIOTransformers = import ../development/libraries/haskell/MonadCatchIO-transformers {
inherit cabal transformers extensibleExceptions;
};
monadlab = import ../development/libraries/haskell/monadlab {
inherit cabal parsec;
};
@ -615,6 +631,11 @@ rec {
inherit (pkgs) pcre;
};
persistent = import ../development/libraries/haskell/persistent {
inherit cabal blazeHtml MonadCatchIOTransformers parsec text
transformers utf8String webRoutesQuasi;
};
polyparse = import ../development/libraries/haskell/polyparse {
inherit cabal;
};
@ -890,6 +911,15 @@ rec {
inherit cabal utf8String terminfo;
};
webRoutes = import ../development/libraries/haskell/web-routes {
inherit cabal utf8String parsec;
network = network2217;
};
webRoutesQuasi = import ../development/libraries/haskell/web-routes-quasi {
inherit cabal webRoutes;
};
WebServer = import ../development/libraries/haskell/WebServer {
inherit cabal network mtl parsec;
inherit (pkgs) fetchgit;