[Nix-dev] [PATCH] Extra libraries required for web dev with Snap
Shea Levy
shea at shealevy.com
Thu Aug 2 12:07:42 CEST 2012
Hi Daniel,
Is this patch related to https://github.com/NixOS/nixpkgs/pull/74, or
are they completely orthogonal?
Cheers,
Shea
On 08/01/2012 09:13 PM, Daniel Santa Cruz wrote:
> ---
> 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 {};
More information about the nix-dev
mailing list