From 01d171e81192ff4e5c69a59c538d8d78f9e0fba7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andres=20L=C3=B6h?= Date: Thu, 13 May 2010 16:21:38 +0000 Subject: [PATCH] Added vector library for Haskell. svn path=/nixpkgs/trunk/; revision=21765 --- .../libraries/haskell/primitive/default.nix | 13 +++++++++++++ .../libraries/haskell/vector/default.nix | 14 ++++++++++++++ pkgs/top-level/haskell-packages.nix | 8 ++++++++ 3 files changed, 35 insertions(+) create mode 100644 pkgs/development/libraries/haskell/primitive/default.nix create mode 100644 pkgs/development/libraries/haskell/vector/default.nix diff --git a/pkgs/development/libraries/haskell/primitive/default.nix b/pkgs/development/libraries/haskell/primitive/default.nix new file mode 100644 index 000000000000..ea2de19592f4 --- /dev/null +++ b/pkgs/development/libraries/haskell/primitive/default.nix @@ -0,0 +1,13 @@ +{cabal}: + +cabal.mkDerivation (self : { + pname = "primitive"; + version = "0.3"; + sha256 = "b63cb5dd3417433429b3ad5489791bddd0973b96b7c3314a4ecc9e6a68b2a35d"; + meta = { + description = "Wrappers for primitive operations"; + license = "BSD"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/development/libraries/haskell/vector/default.nix b/pkgs/development/libraries/haskell/vector/default.nix new file mode 100644 index 000000000000..bf9dbd818edd --- /dev/null +++ b/pkgs/development/libraries/haskell/vector/default.nix @@ -0,0 +1,14 @@ +{cabal, primitive}: + +cabal.mkDerivation (self : { + pname = "vector"; + version = "0.6.0.1"; + sha256 = "b0cba9b3aa94688321a2ec7b4fb4b41781073b2605584ad41957ba1c6892acce"; + propagatedBuildInputs = [primitive]; + meta = { + description = "Efficient arrays"; + license = "BSD"; + maintainers = [self.stdenv.lib.maintainers.andres]; + }; +}) + diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 78da26b35e2e..a04ba8919f7a 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -562,6 +562,10 @@ rec { inherit cabal binary; }; + primitive = import ../development/libraries/haskell/primitive { + inherit cabal; + }; + QuickCheck = QuickCheck1; QuickCheck1 = import ../development/libraries/haskell/QuickCheck { @@ -782,6 +786,10 @@ rec { inherit cabal vacuum gtk2hs parallel strictConcurrency; }; + vector = import ../development/libraries/haskell/vector { + inherit cabal primitive; + }; + vty = import ../development/libraries/haskell/vty { inherit cabal utf8String terminfo; };