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 {};