From a50a9481f90b933cecb6a23eb37c7aed6a15096a Mon Sep 17 00:00:00 2001 From: Mathijs Kwik Date: Fri, 16 Aug 2013 15:51:24 +0200 Subject: [PATCH] new package: haskell-pcap --- .../development/libraries/haskell/pcap/default.nix | 14 ++++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 pkgs/development/libraries/haskell/pcap/default.nix diff --git a/pkgs/development/libraries/haskell/pcap/default.nix b/pkgs/development/libraries/haskell/pcap/default.nix new file mode 100644 index 000000000000..694e648a5126 --- /dev/null +++ b/pkgs/development/libraries/haskell/pcap/default.nix @@ -0,0 +1,14 @@ +{ cabal, network, time, libpcap }: + +cabal.mkDerivation (self: { + pname = "pcap"; + version = "0.4.5.2"; + sha256 = "0pydw62qqw61sxfd8x9vvwgpgl3zp6mqv8rm4c825ymzyipjxsg7"; + buildDepends = [ network time libpcap ]; + meta = { + homepage = "https://github.com/bos/pcap"; + description = "A system-independent interface for user-level packet capture"; + 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 e63b2b006946..aff069882ec0 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -1574,6 +1574,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); pathtype = callPackage ../development/libraries/haskell/pathtype {}; + pcap = callPackage ../development/libraries/haskell/pcap {}; + pcreLight = callPackage ../development/libraries/haskell/pcre-light {}; pem = callPackage ../development/libraries/haskell/pem {};