From 8bb3f19c6b5ed7e68332a6e565773008c16def6a Mon Sep 17 00:00:00 2001 From: Mihaly Barasz Date: Fri, 25 Apr 2014 16:19:12 +0200 Subject: [PATCH] Add tz Haskell package --- .../libraries/haskell/tz/default.nix | 23 +++++++++++++++++++ pkgs/top-level/haskell-packages.nix | 4 ++++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/libraries/haskell/tz/default.nix diff --git a/pkgs/development/libraries/haskell/tz/default.nix b/pkgs/development/libraries/haskell/tz/default.nix new file mode 100644 index 000000000000..5239578f05a6 --- /dev/null +++ b/pkgs/development/libraries/haskell/tz/default.nix @@ -0,0 +1,23 @@ +{ cabal, binary, bindingsPosix, deepseq, HUnit, QuickCheck +, testFramework, testFrameworkHunit, testFrameworkQuickcheck2 +, testFrameworkTh, time, tzdata, vector +, pkgs_tzdata +}: + +cabal.mkDerivation (self: { + pname = "tz"; + version = "0.0.0.5"; + sha256 = "03s5vs08dj3r7rq78ncya6x6dazvr93gfylyynwybpai09l2y89v"; + buildDepends = [ binary deepseq time tzdata vector ]; + preCheck = "export TZDIR=${pkgs_tzdata}/share/zoneinfo"; + testDepends = [ + bindingsPosix HUnit QuickCheck testFramework testFrameworkHunit + testFrameworkQuickcheck2 testFrameworkTh time tzdata + ]; + meta = { + homepage = "https://github.com/nilcons/haskell-tz"; + description = "Efficient time zone handling"; + license = self.stdenv.lib.licenses.asl20; + platforms = self.ghc.meta.platforms; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 1bec85d14391..096d3bef2319 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -2620,6 +2620,10 @@ let result = let callPackage = x : y : modifyPrio (newScope result.finalReturn x typeLevelNaturalNumber = callPackage ../development/libraries/haskell/type-level-natural-number {}; + tz = callPackage ../development/libraries/haskell/tz { + pkgs_tzdata = pkgs.tzdata; + }; + tzdata = callPackage ../development/libraries/haskell/tzdata {}; unbound = callPackage ../development/libraries/haskell/unbound {};