From c4f66df29a21beeaa64da62ac7f97aeab3eb95e2 Mon Sep 17 00:00:00 2001 From: Tom Dimiduk Date: Thu, 1 May 2014 07:52:21 -0400 Subject: [PATCH] add zeromq4 and zeromq4-haskell --- .../haskell/zeromq4-haskell/default.nix | 20 +++++++++++++++++++ pkgs/development/libraries/zeromq/4.x.nix | 18 +++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + pkgs/top-level/haskell-packages.nix | 2 ++ 4 files changed, 41 insertions(+) create mode 100644 pkgs/development/libraries/haskell/zeromq4-haskell/default.nix create mode 100644 pkgs/development/libraries/zeromq/4.x.nix diff --git a/pkgs/development/libraries/haskell/zeromq4-haskell/default.nix b/pkgs/development/libraries/haskell/zeromq4-haskell/default.nix new file mode 100644 index 000000000000..e9a19c8fb970 --- /dev/null +++ b/pkgs/development/libraries/haskell/zeromq4-haskell/default.nix @@ -0,0 +1,20 @@ +{ cabal, async, exceptions, QuickCheck, semigroups, tasty +, tastyHunit, tastyQuickcheck, transformers, zeromq +}: + +cabal.mkDerivation (self: { + pname = "zeromq4-haskell"; + version = "0.5"; + sha256 = "1gimkcaa1n9c85v44yl4n3ljh0xv23pwgbds5g1x8n47x8s0ak9g"; + buildDepends = [ async exceptions semigroups transformers ]; + testDepends = [ + async QuickCheck tasty tastyHunit tastyQuickcheck + ]; + pkgconfigDepends = [ zeromq ]; + meta = { + homepage = "http://github.com/twittner/zeromq-haskell/"; + description = "Bindings to ZeroMQ 4.x"; + license = self.stdenv.lib.licenses.mit; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/development/libraries/zeromq/4.x.nix b/pkgs/development/libraries/zeromq/4.x.nix new file mode 100644 index 000000000000..f06f0b5fbec7 --- /dev/null +++ b/pkgs/development/libraries/zeromq/4.x.nix @@ -0,0 +1,18 @@ +{stdenv, fetchurl, libuuid}: + +stdenv.mkDerivation rec { + name = "zeromq-4.0.4"; + + src = fetchurl { + url = "http://download.zeromq.org/${name}.tar.gz"; + sha256 = "1ef71d46e94f33e27dd5a1661ed626cd39be4d2d6967792a275040e34457d399"; + }; + + buildInputs = [ libuuid ]; + + meta = { + branch = "4"; + homepage = "http://www.zeromq.org"; + description = "The Intelligent Transport Layer"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 55bdd52635ce..69c1a6734bdc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6165,6 +6165,7 @@ let zeromq2 = callPackage ../development/libraries/zeromq/2.x.nix {}; zeromq3 = callPackage ../development/libraries/zeromq/3.x.nix {}; + zeromq4 = callPackage ../development/libraries/zeromq/4.x.nix {}; ### DEVELOPMENT / LIBRARIES / JAVA diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index be46cb9ca7f0..847194b4d21a 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -2887,6 +2887,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x zeromq3Haskell = callPackage ../development/libraries/haskell/zeromq3-haskell { zeromq = pkgs.zeromq3; }; + zeromq4Haskell = callPackage ../development/libraries/haskell/zeromq4-haskell { zeromq = pkgs.zeromq4; }; + zipArchive = callPackage ../development/libraries/haskell/zip-archive {}; zipper = callPackage ../development/libraries/haskell/zipper {};