From 8b678d5308a74cc85b402dfdc5a412ee18aa8088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andres=20L=C3=B6h?= Date: Sun, 19 Apr 2009 16:26:27 +0000 Subject: [PATCH] Added final(?) set of Haskell Platform packages. svn path=/nixpkgs/trunk/; revision=15160 --- pkgs/development/libraries/haskell/GLUT/default.nix | 12 ++++++++++++ .../development/libraries/haskell/OpenAL/default.nix | 12 ++++++++++++ pkgs/top-level/haskell-packages.nix | 10 ++++++++++ 3 files changed, 34 insertions(+) create mode 100644 pkgs/development/libraries/haskell/GLUT/default.nix create mode 100644 pkgs/development/libraries/haskell/OpenAL/default.nix diff --git a/pkgs/development/libraries/haskell/GLUT/default.nix b/pkgs/development/libraries/haskell/GLUT/default.nix new file mode 100644 index 000000000000..0ddbb73f9ff0 --- /dev/null +++ b/pkgs/development/libraries/haskell/GLUT/default.nix @@ -0,0 +1,12 @@ +{cabal, OpenGL, glut}: + +cabal.mkDerivation (self : { + pname = "GLUT"; + version = "2.1.1.2"; # Haskell Platform 2009.0.0 + sha256 = "d5ecf4b6bacc5e68ade00710df04fa158c6ed322c74362954716a0baba6bd3fb"; + propagatedBuildInputs = [OpenGL glut]; + meta = { + description = "A binding for the OpenGL Utility Toolkit"; + }; +}) + diff --git a/pkgs/development/libraries/haskell/OpenAL/default.nix b/pkgs/development/libraries/haskell/OpenAL/default.nix new file mode 100644 index 000000000000..45d2394960dc --- /dev/null +++ b/pkgs/development/libraries/haskell/OpenAL/default.nix @@ -0,0 +1,12 @@ +{cabal, OpenGL, openal}: + +cabal.mkDerivation (self : { + pname = "OpenAL"; + version = "1.3.1.1"; # Haskell Platform 2009.0.0 + sha256 = "4875e015770feb93d5127d4b6f2338eb3957a0c36f64ccb8b3846010619f89b0"; + propagatedBuildInputs = [OpenGL openal]; + meta = { + description = "A binding to the OpenAL cross-platform 3D audio API"; + }; +}) + diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 1df06af4f0ee..404a85507efd 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -51,6 +51,11 @@ rec { ghcPaths = import ../development/libraries/haskell/ghc-paths { inherit cabal; }; + + GLUT = import ../development/libraries/haskell/GLUT { + inherit cabal OpenGL; + glut = pkgs.freeglut; + }; gtk2hs = import ../development/libraries/haskell/gtk2hs { inherit ghc mtl; @@ -115,6 +120,11 @@ rec { inherit cabal parsec; }; + OpenAL = import ../development/libraries/haskell/OpenAL { + inherit cabal OpenGL; + inherit (pkgs) openal; + }; + OpenGL = import ../development/libraries/haskell/OpenGL { inherit cabal; inherit (pkgs) mesa;